-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add LLaMAv2-70B text generation #441
Conversation
Update README with performance optimal command for LLaMAv2-70B text generation using deepspeed
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a couple of comments
examples/text-generation/README.md
Outdated
@@ -95,6 +95,11 @@ python ../gaudi_spawn.py --use_deepspeed --world_size 8 run_generation.py \ | |||
--max_new_tokens 100 | |||
``` | |||
|
|||
Text generation with LLaMAv2-70B model(using deepspeed) can be done using the following command: | |||
```bash | |||
python ../gaudi_spawn.py --use_deepspeed --world_size 8 run_generation.py --model_name_or_path <MODEL_PATH>/Llama-2-70b-hf/ --max_new_tokens 4096 --bf16 --use_hpu_graphs --use_kv_cache --batch_size 56 --attn_softmax_bf16 --limit_hpu_graphs --n_iterations 5 --reuse_cache --trim_logits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python ../gaudi_spawn.py --use_deepspeed --world_size 8 run_generation.py --model_name_or_path <MODEL_PATH>/Llama-2-70b-hf/ --max_new_tokens 4096 --bf16 --use_hpu_graphs --use_kv_cache --batch_size 56 --attn_softmax_bf16 --limit_hpu_graphs --n_iterations 5 --reuse_cache --trim_logits | |
python ../gaudi_spawn.py --use_deepspeed --world_size 8 run_generation.py \ | |
--model_name_or_path meta-llama/Llama-2-70b-hf \ | |
--max_new_tokens 4096 \ | |
--bf16 \ | |
--use_hpu_graphs \ | |
--use_kv_cache \ | |
--batch_size 56 \ | |
--attn_softmax_bf16 \ | |
--limit_hpu_graphs \ | |
--reuse_cache \ | |
--trim_logits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Update README with performance optimal command for LLaMAv2-70B text generation using deepspeed
What does this PR do?
Add LLaMAv2-70B text generation commands to README
Fixes # (issue)
Before submitting