hf_text-generation-inference/server/text_generation_server/models
Nilabhra Roy Chowdhury 3136f27f36
Add: Support for the Falcon2 11B architecture (#1886)
# 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 -->

Add's support for the Falcon2 11B model architecture.


## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the
other checks if that's the case).
- [x] 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

 -->

---------

Signed-off-by: Raphael Glon <oOraph@users.noreply.github.com>
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
Co-authored-by: OlivierDehaene <olivier@huggingface.co>
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
Co-authored-by: oOraph <13552058+oOraph@users.noreply.github.com>
Co-authored-by: Raphael Glon <oOraph@users.noreply.github.com>
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: OlivierDehaene <23298448+OlivierDehaene@users.noreply.github.com>
Co-authored-by: abhishek thakur <1183441+abhishekkrthakur@users.noreply.github.com>
Co-authored-by: Dong Shin <d0104.shin@gmail.com>
Co-authored-by: Christof Weickhardt <christof@weickhardt.ch>
Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
Co-authored-by: drbh <david.richard.holtz@gmail.com>
Co-authored-by: Lucain <lucain@huggingface.co>
Co-authored-by: fxmarty <9808326+fxmarty@users.noreply.github.com>
Co-authored-by: Moritz Laurer <41862082+MoritzLaurer@users.noreply.github.com>
Co-authored-by: dr3s <dr3s@users.noreply.github.com>
Co-authored-by: Wang, Yi <yi.a.wang@intel.com>
Co-authored-by: Morgan Funtowicz <funtowiczmo@gmail.com>
Co-authored-by: Maziyar Panahi <maziyar.panahi@iscpif.fr>
Co-authored-by: Brandon Royal <2762697+brandonroyal@users.noreply.github.com>
Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>
Co-authored-by: Martin Iglesias Goyanes <martinigoyanes@hotmail.com>
Co-authored-by: martini <martin.iglesiasgoyanes@adyen.com>
2024-05-14 10:06:02 +02:00
..
custom_modeling Add: Support for the Falcon2 11B architecture (#1886) 2024-05-14 10:06:02 +02:00
__init__.py Idefics2. (#1756) 2024-04-23 23:04:44 +02:00
bloom.py Revamp medusa implementation so that every model can benefit. (#1588) 2024-02-26 19:49:28 +01:00
cache_manager.py Refactor layers. (#1866) 2024-05-13 12:44:30 +02:00
causal_lm.py feat: Qwen2 (#1608) 2024-02-28 15:50:31 +01:00
flash_causal_lm.py Refactor layers. (#1866) 2024-05-13 12:44:30 +02:00
flash_cohere.py fix: fix CohereForAI/c4ai-command-r-plus (#1707) 2024-04-10 17:20:25 +02:00
flash_dbrx.py feat: Add dbrx support (#1685) 2024-03-29 18:49:36 +01:00
flash_gemma.py feat: cohere (#1660) 2024-03-22 17:59:25 +01:00
flash_llama.py Refactor layers. (#1866) 2024-05-13 12:44:30 +02:00
flash_mistral.py Refactor layers. (#1866) 2024-05-13 12:44:30 +02:00
flash_mixtral.py Revamp medusa implementation so that every model can benefit. (#1588) 2024-02-26 19:49:28 +01:00
flash_neox.py Refactor layers. (#1866) 2024-05-13 12:44:30 +02:00
flash_phi.py Revamp medusa implementation so that every model can benefit. (#1588) 2024-02-26 19:49:28 +01:00
flash_qwen2.py Fixing qwen2. (#1818) 2024-04-26 19:19:08 +02:00
flash_rw.py Refactor layers. (#1866) 2024-05-13 12:44:30 +02:00
flash_santacoder.py Refactor layers. (#1866) 2024-05-13 12:44:30 +02:00
flash_starcoder2.py feat: Qwen2 (#1608) 2024-02-28 15:50:31 +01:00
galactica.py feat: Qwen2 (#1608) 2024-02-28 15:50:31 +01:00
globals.py Small CI cleanup. (#1801) 2024-04-30 11:39:38 +02:00
gpt_neox.py feat: Qwen2 (#1608) 2024-02-28 15:50:31 +01:00
idefics.py Fix idefics default. (#1614) 2024-02-29 13:16:34 +01:00
idefics2.py Idefics2. (#1756) 2024-04-23 23:04:44 +02:00
idefics_causal_lm.py Adding Llava-Next (Llava 1.6) with full support. (#1709) 2024-04-09 21:32:00 +02:00
llava_next.py Idefics2. (#1756) 2024-04-23 23:04:44 +02:00
mamba.py Make `--cuda-graphs` work as expected (bis) (#1768) 2024-04-22 16:09:19 +02:00
model.py Use the generation config. (#1808) 2024-04-25 19:41:50 +02:00
mpt.py Revamp medusa implementation so that every model can benefit. (#1588) 2024-02-26 19:49:28 +01:00
opt.py Revamp medusa implementation so that every model can benefit. (#1588) 2024-02-26 19:49:28 +01:00
phi.py Revamp medusa implementation so that every model can benefit. (#1588) 2024-02-26 19:49:28 +01:00
rw.py feat: Qwen2 (#1608) 2024-02-28 15:50:31 +01:00
santacoder.py Revamp medusa implementation so that every model can benefit. (#1588) 2024-02-26 19:49:28 +01:00
seq2seq_lm.py feat: Qwen2 (#1608) 2024-02-28 15:50:31 +01:00
t5.py Revamp medusa implementation so that every model can benefit. (#1588) 2024-02-26 19:49:28 +01:00
types.py chore: add pre-commit (#1569) 2024-02-16 11:58:58 +01:00
vlm_causal_lm.py Idefics2. (#1756) 2024-04-23 23:04:44 +02:00