Skip to content

Commit

Permalink
Add Llama3.1-8B support for vLLM and use KIND_MODEL for vLLM config b…
Browse files Browse the repository at this point in the history
…y default (#82)
  • Loading branch information
rmccorm4 authored Aug 19, 2024
1 parent a050ec1 commit dda4ca8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/triton_cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
"llama-2-7b-chat": "hf:meta-llama/Llama-2-7b-chat-hf",
"llama-3-8b": "hf:meta-llama/Meta-Llama-3-8B",
"llama-3-8b-instruct": "hf:meta-llama/Meta-Llama-3-8B-Instruct",
"llama-3.1-8b": "hf:meta-llama/Meta-Llama-3.1-8B",
"llama-3.1-8b-instruct": "hf:meta-llama/Meta-Llama-3.1-8B-Instruct",
# Public
"gpt2": "hf:gpt2",
"opt125m": "hf:facebook/opt-125m",
Expand Down
6 changes: 5 additions & 1 deletion src/triton_cli/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
# that can be fully autocompleted for a simple deployment.
MODEL_CONFIG_TEMPLATE = """
backend: "{backend}"
instance_group {instance_group}
"""

NGC_CONFIG_TEMPLATE = """
Expand Down Expand Up @@ -318,7 +319,10 @@ def __download_hf_model(

def __generate_vllm_model(self, huggingface_id: str):
backend = "vllm"
model_config = MODEL_CONFIG_TEMPLATE.format(backend=backend)
instance_group = "[{kind: KIND_MODEL}]"
model_config = MODEL_CONFIG_TEMPLATE.format(
backend=backend, instance_group=instance_group
).strip()
model_contents = json.dumps(
{
"model": huggingface_id,
Expand Down

0 comments on commit dda4ca8

Please sign in to comment.