大模型训练和推理显存用量计算方法 #59
Valdanitooooo
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
方法一: 直接在线计算
https://huggingface.co/spaces/hf-accelerate/model-memory-usage

方法二: 使用accelerate命令行计算
install
usage
方法三
根据经验
方法一, 方法二只是个理论值, 实际值会有偏差, 尤其是transformers 源码中没有支持的模型, 偏差会更大一些
Beta Was this translation helpful? Give feedback.
All reactions