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 3 support #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tonywang16
Copy link

chat petal llama3

Comment on lines +45 to +53
# ModelConfig(
# ModelBackendConfig(repository="meta-llama/Meta-Llama-3-70B-Instruct"),
# ModelFrontendConfig(
# name="Llama 3 (70B-Instruct)",
# model_card="https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct",
# license="https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct/blob/main/LICENSE",
# ),
# default_chat_config,
# ),
Copy link

Choose a reason for hiding this comment

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

Can you put Llama 3-Instruct as a supported model as well? I figure it would be more useful for the chat case

ModelConfig(
ModelBackendConfig(repository="meta-llama/Meta-Llama-3-70B", aliases=["meta-llama/Meta-Llama-3-70B"]),
ModelFrontendConfig(
name="META LLAMA 3 (70B)",
Copy link

Choose a reason for hiding this comment

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

Suggested change
name="META LLAMA 3 (70B)",
name="Llama 3 (70B)",

@ELigoP
Copy link

ELigoP commented Apr 30, 2024

When I try running flask app with this config, I get

Apr 30 08:56:56.002 [INFO] Loading tokenizer for meta-llama/Meta-Llama-3-70B
Traceback (most recent call last):
  File "/home/user/.local/bin/flask", line 8, in <module>
    sys.exit(main())
  ...
  File "/home/user/.local/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 2032, in from_pretrained
    raise EnvironmentError(
OSError: Can't load tokenizer for 'meta-llama/Meta-Llama-3-70B'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'meta-llama/Meta-Llama-3-70B' is the correct path to a directory containing all relevant files for a LlamaTokenizer tokenizer

I don't know if this is related, but I am also hosting part of GPUs for current public LLama 3 network, so I downloaded at least part of that model. Could that be related?

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.

None yet

3 participants