Skip to content
Verso
Articles
Thoughts
Projects
Archive
About
Loading…
Tags
Distributed
1 entry
Timeline
Categories
Tags
Series
All content
2025
Jan 5
分布式训练
模型的大小直接影响显存的需求 每个模型参数(如权重和偏置)都占用一定的显存 模型参数显存占用=模型参数数量×每个参数所占字节数 如果是单精度浮点数(FP32),每个参数占用4字节 如果使用半精度浮动点数(FP16),每个参数占用2字节 假设模型有1B个参数,使用FP32,则所需的显存为:…