Skip to content

Commit

Permalink
Update g4f/models.py g4f/Provider/needs_auth/HuggingChat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kqlio67 committed Dec 3, 2024
1 parent 8193daa commit b346510
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions g4f/Provider/needs_auth/HuggingChat.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
'Qwen/Qwen2.5-72B-Instruct',
'meta-llama/Meta-Llama-3.1-70B-Instruct',
'CohereForAI/c4ai-command-r-plus-08-2024',
'Qwen/QwQ-32B-Preview',
'nvidia/Llama-3.1-Nemotron-70B-Instruct-HF',
'Qwen/Qwen2.5-Coder-32B-Instruct',
'meta-llama/Llama-3.2-11B-Vision-Instruct',
Expand All @@ -37,6 +38,7 @@ class HuggingChat(AbstractProvider, ProviderModelMixin):
"qwen-2.5-72b": "Qwen/Qwen2.5-72B-Instruct",
"llama-3.1-70b": "meta-llama/Meta-Llama-3.1-70B-Instruct",
"command-r-plus": "CohereForAI/c4ai-command-r-plus-08-2024",
"qwq-32b": "Qwen/QwQ-32B-Preview",
"nemotron-70b": "nvidia/Llama-3.1-Nemotron-70B-Instruct-HF",
"qwen-2.5-coder-32b": "Qwen/Qwen2.5-Coder-32B-Instruct",
"llama-3.2-11b": "meta-llama/Llama-3.2-11B-Vision-Instruct",
Expand Down
7 changes: 7 additions & 0 deletions g4f/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ def __all__() -> list[str]:
best_provider = IterListProvider([DeepInfraChat, HuggingChat, HuggingFace])
)

qwq_32b = Model(
name = 'qwq-32b',
base_provider = 'Qwen',
best_provider = IterListProvider([HuggingChat, HuggingFace])
)

### Upstage ###
solar_mini = Model(
name = 'solar-mini',
Expand Down Expand Up @@ -762,6 +768,7 @@ class ModelUtils:
# qwen 2.5
'qwen-2.5-72b': qwen_2_5_72b,
'qwen-2.5-coder-32b': qwen_2_5_coder_32b,
'qwq-32b': qwq_32b,

### Upstage ###
'solar-mini': solar_mini,
Expand Down

0 comments on commit b346510

Please sign in to comment.