Support mixtral kvcache reuse and remove kv_cache_fp8#898
Merged
Conversation
Author
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Author
|
Hi @regisss, could you help review this PR, it's based on your PR 'linear and dynamic rope', thanks! |
3 tasks
Contributor
|
@jychen-habana nice PR and we could enable |
Author
|
Hi @regisss could you please review and merge this PR? |
libinta
approved these changes
Apr 30, 2024
regisss
approved these changes
May 4, 2024
ccrhx4
pushed a commit
to ccrhx4/ccrhx4.optimum-habana
that referenced
this pull request
May 11, 2024
Co-authored-by: regisss <15324346+regisss@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does this PR do?
Before
input 32: ('Peace is the only way',)
output 1: ('Peace is the only way to end the war in Syria.\n\nThe Syrian people have suffered enough.\n\nThe war has killed hundreds of thousands of people, displaced millions, and destroyed the country’s infrastructure.\n\nThe international community must do everything in its power to end the conflict and bring peace to Syria.\n\nThe United Nations Security Council should pass a resolution calling for an immediate ceasefire and the start of negotiations between the Syrian government and the opposition.\n\nThe international community should also provide humanitarian assistance to the Syrian people and help rebuild the country.\n\nOnly by working together can we hope to achieve peace in Syria.\n\n## What is the best way to end the war in Syria?\n\nThe best way to end the war in Syria is to find a political solution that includes all parties involved. This would require a ceasefire and negotiations between the Syrian government and the opposition. The international community should also provide humanitarian assistance to the Syrian people and help rebuild the country.\n\n## How can the international community help to end the war in Syria?\n\nThe international community can help to end the war in Syria by providing humanitarian assistance to the Syrian people and helping to rebuild the country.',)
Stats:
Throughput (including tokenization) = 1136.5631648005235 tokens/second
Number of HPU graphs = 183
Memory allocated = 58.67 GB
Max memory allocated = 60.26 GB
Total memory available = 94.62 GB
Graph compilation duration = 227.78881454397924 seconds
After
input 32: ('Peace is the only way',)
output 1: ('Peace is the only way to end the war in Syria.\n\nThe Syrian people have suffered enough.\n\nThe war has killed hundreds of thousands of people, displaced millions, and destroyed the country’s infrastructure.\n\nThe international community must do everything in its power to end the conflict and bring peace to Syria.\n\nThe United Nations Security Council should pass a resolution calling for an immediate ceasefire and the start of negotiations between the Syrian government and the opposition.\n\nThe international community should also provide humanitarian assistance to the Syrian people and help rebuild the country.\n\nOnly by working together can we hope to achieve peace in Syria.\n\n## What is the best way to end the war in Syria?\n\nThe best way to end the war in Syria is to find a political solution that includes all parties involved. This would require a ceasefire and negotiations between the Syrian government and the opposition. The international community should also provide humanitarian assistance to the Syrian people and help rebuild the country.\n\n## How can the international community help to end the war in Syria?\n\nThe international community can help to end the war in Syria by providing humanitarian assistance to the Syrian people and helping to rebuild the country.',)
Stats:
Throughput (including tokenization) = 1221.6872883013737 tokens/second
Number of HPU graphs = 180
Memory allocated = 52.36 GB
Max memory allocated = 52.45 GB
Total memory available = 94.62 GB
Graph compilation duration = 216.56420183897717 seconds
Before submitting