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

Add llama 31 support updated #92

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Bihan
Copy link

@Bihan Bihan commented Sep 10, 2024

What does this PR do?

This PR is an updated version closed PR. This includes recent updates made in main branch.

Bihan Rana and others added 3 commits September 10, 2024 21:53
Add Llama 3.1 in test_decode.py

Set generation_config._eos_token_tensor to None
@Bihan Bihan mentioned this pull request Sep 10, 2024
7 tasks
@@ -118,6 +118,7 @@ def create(
)
generation_config.max_length = max_seq_length

generation_config._eos_token_tensor = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

As said here, could you replace this by this snippet?

Suggested change
generation_config._eos_token_tensor = None
generation_config._eos_token_tensor = getattr(generation_config, "_eos_token_tensor", None)

Copy link
Author

Choose a reason for hiding this comment

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

@tengomucho Above is review is from the old PR. It is already updated. 10f857c. I have replaced the snippet in here

Copy link
Collaborator

Choose a reason for hiding this comment

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

sorry, I somehow missed it, it's fine then!

@HuggingFaceDocBuilderDev

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.

Bihan Rana and others added 2 commits September 11, 2024 18:46
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