Ensure KV cache is not returned as output tensor during decode phase for Falcon #208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR follows the change for llama in https://github.com/HabanaAI/optimum-habana-fork/pull/154/files
This increased the maximum batch size of BF16 falcon180b inference from 250 to 316
updated command (remove --reuse_cache)
python ../gaudi_spawn.py
--use_deepspeed --world_size 8 run_generation.py
--model_name_or_path /root/data/falcon/falcon-180b/snapshots/d2ea5531862d4fe907280234990e6380d2befd97/
--use_hpu_graphs
--use_kv_cache
--bf16
--batch_size 316
--max_new_tokens 128
--max_input_tokens 128
--limit_hpu_graphs
--n_iterations 3
--trim_logits
--bucket_internal
--bucket_size 128
--prompt "I've always managed to dodge the bullet and avoid the addictive pull of Pokemon. Leave it to a button-mashing brawler with plastic figurine accessories to finally get me hooked. At first glance, Pokemon Rumble U isn't much to look at. With its simplistic controls and repetitive gameplay, you might feel inclined to dismiss it as yet another cash-in of the popular Nintendo franchise. But despite its faults, there's actually much more to Rumble U than meets the eye, making this a satisfying and"
Before submitting