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

[CodeLlama] Add support for CodeLlama #25740

Merged
merged 57 commits into from
Aug 25, 2023

Conversation

ArthurZucker
Copy link
Collaborator

What does this PR do?

Adds support for LlamaCode

@ArthurZucker ArthurZucker changed the title Add llama code [LlamaCode] Add support for the LlamaCodeTokenizer` Aug 24, 2023
@ArthurZucker ArthurZucker changed the title [LlamaCode] Add support for the LlamaCodeTokenizer` [LlamaCode] Add support for LlamaCode Aug 24, 2023
@ArthurZucker ArthurZucker changed the title [LlamaCode] Add support for LlamaCode [CodeLlama] Add support for CodeLlama Aug 25, 2023
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for adding this model! Left a few comments.

README.md Outdated Show resolved Hide resolved
docs/source/en/model_doc/code_llama.md Outdated Show resolved Hide resolved
docs/source/en/model_doc/code_llama.md Outdated Show resolved Hide resolved
src/transformers/pipelines/text_generation.py Show resolved Hide resolved
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 25, 2023

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

@ArthurZucker ArthurZucker merged commit 015f8e1 into huggingface:main Aug 25, 2023
21 checks passed
@gante gante mentioned this pull request Aug 30, 2023
ChieloNewctle added a commit to ModelTC/lightllm that referenced this pull request Sep 4, 2023
According to [Huggingface Transformers CodeLlama PR](huggingface/transformers#25740),
an additional parameter `rope_theta` is added to llama models,
which is the base of position embedding.
hiworldwzj pushed a commit to ModelTC/lightllm that referenced this pull request Sep 8, 2023
According to [Huggingface Transformers CodeLlama
PR](huggingface/transformers#25740), an
additional parameter `rope_theta` is added to llama models, which is the
base of position embedding.
REIGN12 added a commit to REIGN12/transformers that referenced this pull request Sep 17, 2023
parambharat pushed a commit to parambharat/transformers that referenced this pull request Sep 26, 2023
* add all

* Revert "Delete .github directory"

This reverts commit 9b0ff7b.

* make conversion script backward compatible

* fixup

* more styling

* copy to llama changes

* fix repo consistency

* nits

* document correct classes

* updates

* more fixes

* nits

* update auto mappings

* add readmes

* smallupdates

* llama-code replace with llama_code

* make fixup

* updates to the testsing suite

* fix fast nits

* more small fixes

* fix decode

* fix template processing

* properly reset the normalizer

* nits processor

* tokenization tests pass

* styling

* last tests

* additional nits

* one test is left

* nits

Co-authored-by faabian <faabian@users.noreply.github.com>

* update failing test

* fixup

* remove decode infilling users should handle it on their onw after generation, padding can be a problem

* update

* make test slow and more meaningfull

* fixup

* doc update

* fixup

* Apply suggestions from code review

* add kwargs doc

* tokenizer requires `requires_backend`

* type requires_backends

* CodeLlama instead of LlamaCode

* more name cahnges

* nits

* make doctests happy

* small pipeline nits

* last nit

* Apply suggestions from code review

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* update

* add codellama to toctree

---------

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
@ArthurZucker ArthurZucker deleted the add-llama-code branch September 27, 2023 09:21
njhill added a commit to IBM/text-generation-inference that referenced this pull request Sep 28, 2023
Don't load inv_freq tensor, add rope_theta config parameter

Based on huggingface/transformers#24998 and huggingface/transformers#25740
blbadger pushed a commit to blbadger/transformers that referenced this pull request Nov 8, 2023
* add all

* Revert "Delete .github directory"

This reverts commit 9b0ff7b.

* make conversion script backward compatible

* fixup

* more styling

* copy to llama changes

* fix repo consistency

* nits

* document correct classes

* updates

* more fixes

* nits

* update auto mappings

* add readmes

* smallupdates

* llama-code replace with llama_code

* make fixup

* updates to the testsing suite

* fix fast nits

* more small fixes

* fix decode

* fix template processing

* properly reset the normalizer

* nits processor

* tokenization tests pass

* styling

* last tests

* additional nits

* one test is left

* nits

Co-authored-by faabian <faabian@users.noreply.github.com>

* update failing test

* fixup

* remove decode infilling users should handle it on their onw after generation, padding can be a problem

* update

* make test slow and more meaningfull

* fixup

* doc update

* fixup

* Apply suggestions from code review

* add kwargs doc

* tokenizer requires `requires_backend`

* type requires_backends

* CodeLlama instead of LlamaCode

* more name cahnges

* nits

* make doctests happy

* small pipeline nits

* last nit

* Apply suggestions from code review

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* update

* add codellama to toctree

---------

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 18, 2023
* add all

* Revert "Delete .github directory"

This reverts commit 9b0ff7b.

* make conversion script backward compatible

* fixup

* more styling

* copy to llama changes

* fix repo consistency

* nits

* document correct classes

* updates

* more fixes

* nits

* update auto mappings

* add readmes

* smallupdates

* llama-code replace with llama_code

* make fixup

* updates to the testsing suite

* fix fast nits

* more small fixes

* fix decode

* fix template processing

* properly reset the normalizer

* nits processor

* tokenization tests pass

* styling

* last tests

* additional nits

* one test is left

* nits

Co-authored-by faabian <faabian@users.noreply.github.com>

* update failing test

* fixup

* remove decode infilling users should handle it on their onw after generation, padding can be a problem

* update

* make test slow and more meaningfull

* fixup

* doc update

* fixup

* Apply suggestions from code review

* add kwargs doc

* tokenizer requires `requires_backend`

* type requires_backends

* CodeLlama instead of LlamaCode

* more name cahnges

* nits

* make doctests happy

* small pipeline nits

* last nit

* Apply suggestions from code review

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* update

* add codellama to toctree

---------

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants