text-generation-inference/server/text_generation_server/models
Nicolas Patry 5a54d915ae Fix mistral with length > window_size for long prefills (rotary doesn't create long enough cos, sin). (#1571)
# What does this PR do?

<!--
Congratulations! You've made it this far! You're not quite done yet
though.

Once merged, your PR is going to appear in the release notes with the
title you set, so make sure it's a great title that fully reflects the
extent of your awesome contribution.

Then, please replace this with a description of the change and which
issue is fixed (if applicable). Please also include relevant motivation
and context. List any dependencies (if any) that are required for this
change.

Once you're done, someone will review your PR shortly (see the section
"Who can review?" below to tag some potential reviewers). They may
suggest changes to make the code even better. If no one reviewed your PR
after a week has passed, don't hesitate to post a new comment
@-mentioning the same persons---sometimes notifications get lost.
-->

<!-- Remove if not applicable -->

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 read the [contributor
guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#start-contributing-pull-requests),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the
[forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes?
Here are the
[documentation
guidelines](https://github.com/huggingface/transformers/tree/main/docs),
and
[here are tips on formatting
docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?

Anyone in the community is free to review the PR once the tests have
passed. Feel free to tag
members/contributors who may be interested in your PR.

<!-- Your PR will be replied to more quickly if you can figure out the
right person to tag with @


@OlivierDehaene OR @Narsil

 -->
2024-04-24 18:05:34 +03:00
..
custom_modeling chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
__init__.py chore: formatting 2024-04-18 16:26:00 +03:00
bloom.py Add Habana copyright header (#122) 2024-04-08 18:06:21 +02:00
cache_manager.py feat: add mistral model (#1071) 2023-09-28 09:55:47 +02:00
causal_lm.py Outlines guided generation (#1539) 2024-04-24 14:57:37 +03:00
flash_causal_lm.py chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
flash_llama.py v1.4.0 (#1494) 2024-04-22 15:47:42 +03:00
flash_mistral.py Fix mistral with length > window_size for long prefills (rotary doesn't create long enough cos, sin). (#1571) 2024-04-24 18:05:34 +03:00
flash_mixtral.py chore: formatting 2024-04-18 16:26:00 +03:00
flash_neox.py fix: fix gpt-q params loading 2024-04-19 12:12:50 +03:00
flash_phi.py v1.4.0 (#1494) 2024-04-22 15:47:42 +03:00
flash_rw.py fix: fix gpt-q params loading 2024-04-19 12:12:50 +03:00
flash_santacoder.py fix: fix gpt-q params loading 2024-04-19 12:12:50 +03:00
galactica.py chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
globals.py Small cleanup. (#1560) 2024-04-24 14:42:35 +03:00
gpt_neox.py fix: fix gpt-q params loading 2024-04-19 12:12:50 +03:00
idefics_causal_lm.py chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
idefics.py enable bfloat16 for cpu (#1034) 2023-09-19 17:19:28 +02:00
mamba.py chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
model.py feat: add more latency metrics in forward (#1346) 2024-04-19 13:41:34 +03:00
mpt.py fix: fix gpt-q params loading 2024-04-19 12:12:50 +03:00
opt.py fix: fix gpt-q params loading 2024-04-19 12:12:50 +03:00
phi.py v1.4.0 (#1494) 2024-04-22 15:47:42 +03:00
rw.py chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
santacoder.py Add changes from Optimum Habana's TGI folder 2023-12-05 11:12:16 +01:00
seq2seq_lm.py chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00
t5.py enable bfloat16 for cpu (#1034) 2023-09-19 17:19:28 +02:00
types.py chore: add pre-commit (#1569) 2024-04-24 15:32:02 +03:00