-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Hello, how to accurately calculate memory usage based on operating parameters? #597
Labels
stale
No activity in 60 days on issue or PR
Comments
#482 |
Thank you very much. |
We also now have a You can use like this: CUDA_DEVICE_MAX_CONNECTIONS=1 WORLD_SIZE=<WORLD_SIZE> python -u report_theoretical_memory.py ${options} |
Marking as stale. No activity in 60 days. |
Going to close this. Feel free to re-open if you are still running into issues. |
XZQshiyu
pushed a commit
to XZQshiyu/Megatron-DeepSpeed
that referenced
this issue
Jan 15, 2025
* fix gitignore * add local dataset dir * add ignore * add local dataset support * add some about local dataset in README.md * fix some * add some in README * remove data dir * add line to gitignore * fix some following good advices * fix some about format * reformat code using yapf --------- Co-authored-by: 宋超 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, how to accurately calculate memory usage based on operating parameters ?
For example,
TP_SIZE=1
PP_SIZE=1
WORLD_SIZE=8
MICRO_BATCH_SIZE=2
GLOBAL_BATCH_SIZE=128
--finetune
--sequence-parallel
--num-layers 32
--hidden-size 4096
--num-attention-heads 32
--seq-length 4096
--max-position-embeddings 4096
--no-position-embedding
--use-rotary-position-embeddings
--swiglu
--ffn-hidden-size 11008
--disable-bias-linear
--RMSNorm
--layernorm-epsilon 1e-6
--causal-lm
--distributed-optimizer
--use-flash-attn
The text was updated successfully, but these errors were encountered: