1 Star 0 Fork 0

lengyanju8/Megatron-LM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
report_theoretical_memory.py 530 Bytes
一键复制 编辑 原始数据 按行查看 历史
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
"""Computes theoretical memory footprint for model training without instantiating
a model and running training iterations on GPU(s)."""
from megatron import get_args
from megatron.initialize import initialize_megatron
from megatron.theoretical_memory_usage import report_theoretical_memory
if __name__ == "__main__":
initialize_megatron(allow_no_cuda=True, skip_mpu_initialization=True)
args = get_args()
report_theoretical_memory(args, verbose=True)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lengyanju8/Megatron-LM.git
git@gitee.com:lengyanju8/Megatron-LM.git
lengyanju8
Megatron-LM
Megatron-LM
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385