Skip to content

Commit

Permalink
should fix most inference endpoints issues of version config (#226)
Browse files Browse the repository at this point in the history
Updates version + allow trust remote code to launch Qwen 2 models with TGI (see slack for a bug that @meg-huggingface encountered)
  • Loading branch information
clefourrier authored Jul 16, 2024
1 parent 66e6aae commit 733257f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lighteval/models/endpoint_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ def __init__(
"MAX_INPUT_LENGTH": "2047",
"MAX_TOTAL_TOKENS": "2048",
"MODEL_ID": "/repository",
"HF_MODEL_TRUST_REMOTE_CODE": "true",
**config.get_dtype_args(),
**config.get_custom_env_vars(),
},
"url": (config.image_url or "ghcr.io/huggingface/text-generation-inference:1.1.0"),
"url": (config.image_url or "ghcr.io/huggingface/text-generation-inference:latest"),
},
)
hlog("Deploying your endpoint. Please wait.")
Expand Down

0 comments on commit 733257f

Please sign in to comment.