Skip to content

Commit

Permalink
Add more chat templates to HuggingFace
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Dec 14, 2024
1 parent 3bab11c commit 20e8414
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions g4f/Provider/needs_auth/HuggingFace.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def get_models(cls) -> list[str]:
url = "https://huggingface.co/api/models?inference=warm&pipeline_tag=text-generation"
cls.models = [model["id"] for model in requests.get(url).json()]
cls.models.append("meta-llama/Llama-3.2-11B-Vision-Instruct")
cls.models.append("nvidia/Llama-3.1-Nemotron-70B-Instruct-HF")
if not cls.image_models:
url = "https://huggingface.co/api/models?pipeline_tag=text-to-image"
cls.image_models = [model["id"] for model in requests.get(url).json() if model["trendingScore"] >= 20]
Expand Down

0 comments on commit 20e8414

Please sign in to comment.