Skip to content
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

Merged
merged 3 commits into from
Oct 3, 2023
Merged

Add LLaMAv2-70B text generation #441

merged 3 commits into from
Oct 3, 2023

Conversation

dvarshney-habana
Copy link
Collaborator

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

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

Update README with performance optimal command for LLaMAv2-70B
text generation using deepspeed
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 3, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Collaborator

@regisss regisss left a 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

@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

examples/text-generation/README.md Outdated Show resolved Hide resolved
@regisss regisss added the run-test Run CI for PRs from external contributors label Oct 3, 2023
@regisss regisss added run-test Run CI for PRs from external contributors and removed run-test Run CI for PRs from external contributors labels Oct 3, 2023
Copy link
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@regisss regisss merged commit 4ba07ce into huggingface:main Oct 3, 2023
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-test Run CI for PRs from external contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants