modelparams 0.0.14__tar.gz → 0.0.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {modelparams-0.0.14 → modelparams-0.0.15}/PKG-INFO +1 -1
- {modelparams-0.0.14 → modelparams-0.0.15}/pyproject.toml +1 -1
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/_generated/catalog.json +120 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/_generated/model_ids.py +4 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/_generated/registry.py +2 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/alibaba.py +28 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/.gitignore +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/LICENSE +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/README.md +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/__init__.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/_generated/__init__.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/catalog.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/models.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/py.typed +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/__init__.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/anthropic.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/cerebras.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/cohere.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/deepseek.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/google.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/groq.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/meta.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/minimax.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/mistral.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/moonshot.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/nvidia.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/openai.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/perplexity.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/thinking_machines.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/xai.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/xiaomi.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/types/z_ai.py +0 -0
- {modelparams-0.0.14 → modelparams-0.0.15}/src/modelparams/validation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: modelparams
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.15
|
|
4
4
|
Summary: Typed model parameters for Python, generated from the modelparams.dev catalog.
|
|
5
5
|
Project-URL: Homepage, https://modelparams.dev
|
|
6
6
|
Project-URL: Repository, https://github.com/mnfst/modelparameters.dev
|
|
@@ -59,6 +59,66 @@
|
|
|
59
59
|
}
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"provider": "alibaba",
|
|
64
|
+
"authType": "api_key",
|
|
65
|
+
"model": "qwen-max",
|
|
66
|
+
"params": [
|
|
67
|
+
{
|
|
68
|
+
"path": "max_tokens",
|
|
69
|
+
"label": "Max tokens",
|
|
70
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
71
|
+
"group": "generation_length",
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"range": {
|
|
74
|
+
"min": 1
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "temperature",
|
|
79
|
+
"label": "Temperature",
|
|
80
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
81
|
+
"group": "sampling",
|
|
82
|
+
"type": "number",
|
|
83
|
+
"range": {
|
|
84
|
+
"min": 0,
|
|
85
|
+
"max": 1.9,
|
|
86
|
+
"step": 0.1
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "top_p",
|
|
91
|
+
"label": "Top P",
|
|
92
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
93
|
+
"group": "sampling",
|
|
94
|
+
"type": "number",
|
|
95
|
+
"range": {
|
|
96
|
+
"min": 0,
|
|
97
|
+
"max": 1,
|
|
98
|
+
"step": 0.01
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"path": "extra_body.top_k",
|
|
103
|
+
"label": "Top K",
|
|
104
|
+
"description": "Limits generation to the selected number of highest-probability tokens.",
|
|
105
|
+
"group": "sampling",
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"default": 20,
|
|
108
|
+
"range": {
|
|
109
|
+
"min": 1
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"path": "extra_body.chat_template_kwargs.enable_thinking",
|
|
114
|
+
"label": "Enable thinking",
|
|
115
|
+
"description": "Controls Qwen3 thinking mode when using OpenAI-compatible clients that pass provider-specific extra body fields.",
|
|
116
|
+
"group": "reasoning",
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"default": true
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
62
122
|
{
|
|
63
123
|
"provider": "alibaba",
|
|
64
124
|
"authType": "api_key",
|
|
@@ -119,6 +179,66 @@
|
|
|
119
179
|
}
|
|
120
180
|
]
|
|
121
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"provider": "alibaba",
|
|
184
|
+
"authType": "api_key",
|
|
185
|
+
"model": "qwen-turbo",
|
|
186
|
+
"params": [
|
|
187
|
+
{
|
|
188
|
+
"path": "max_tokens",
|
|
189
|
+
"label": "Max tokens",
|
|
190
|
+
"description": "Maximum number of output tokens the model may generate.",
|
|
191
|
+
"group": "generation_length",
|
|
192
|
+
"type": "integer",
|
|
193
|
+
"range": {
|
|
194
|
+
"min": 1
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"path": "temperature",
|
|
199
|
+
"label": "Temperature",
|
|
200
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
201
|
+
"group": "sampling",
|
|
202
|
+
"type": "number",
|
|
203
|
+
"range": {
|
|
204
|
+
"min": 0,
|
|
205
|
+
"max": 1.9,
|
|
206
|
+
"step": 0.1
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"path": "top_p",
|
|
211
|
+
"label": "Top P",
|
|
212
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
213
|
+
"group": "sampling",
|
|
214
|
+
"type": "number",
|
|
215
|
+
"range": {
|
|
216
|
+
"min": 0,
|
|
217
|
+
"max": 1,
|
|
218
|
+
"step": 0.01
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"path": "extra_body.top_k",
|
|
223
|
+
"label": "Top K",
|
|
224
|
+
"description": "Limits generation to the selected number of highest-probability tokens.",
|
|
225
|
+
"group": "sampling",
|
|
226
|
+
"type": "integer",
|
|
227
|
+
"default": 20,
|
|
228
|
+
"range": {
|
|
229
|
+
"min": 1
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"path": "extra_body.chat_template_kwargs.enable_thinking",
|
|
234
|
+
"label": "Enable thinking",
|
|
235
|
+
"description": "Controls Qwen3 thinking mode when using OpenAI-compatible clients that pass provider-specific extra body fields.",
|
|
236
|
+
"group": "reasoning",
|
|
237
|
+
"type": "boolean",
|
|
238
|
+
"default": true
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
122
242
|
{
|
|
123
243
|
"provider": "alibaba",
|
|
124
244
|
"authType": "api_key",
|
|
@@ -5,7 +5,9 @@ from typing import Literal
|
|
|
5
5
|
|
|
6
6
|
ModelId = Literal[
|
|
7
7
|
"alibaba/qwen-flash",
|
|
8
|
+
"alibaba/qwen-max",
|
|
8
9
|
"alibaba/qwen-plus",
|
|
10
|
+
"alibaba/qwen-turbo",
|
|
9
11
|
"alibaba/qwen3-coder-flash",
|
|
10
12
|
"alibaba/qwen3-coder-plus",
|
|
11
13
|
"alibaba/qwen3-max",
|
|
@@ -264,7 +266,9 @@ ModelId = Literal[
|
|
|
264
266
|
|
|
265
267
|
MODEL_IDS: tuple[ModelId, ...] = (
|
|
266
268
|
"alibaba/qwen-flash",
|
|
269
|
+
"alibaba/qwen-max",
|
|
267
270
|
"alibaba/qwen-plus",
|
|
271
|
+
"alibaba/qwen-turbo",
|
|
268
272
|
"alibaba/qwen3-coder-flash",
|
|
269
273
|
"alibaba/qwen3-coder-plus",
|
|
270
274
|
"alibaba/qwen3-max",
|
|
@@ -26,7 +26,9 @@ from .model_ids import ModelId
|
|
|
26
26
|
|
|
27
27
|
PARAM_TYPES: dict[ModelId, Any] = {
|
|
28
28
|
"alibaba/qwen-flash": alibaba.Qwen_FlashParams,
|
|
29
|
+
"alibaba/qwen-max": alibaba.Qwen_MaxParams,
|
|
29
30
|
"alibaba/qwen-plus": alibaba.Qwen_PlusParams,
|
|
31
|
+
"alibaba/qwen-turbo": alibaba.Qwen_TurboParams,
|
|
30
32
|
"alibaba/qwen3-coder-flash": alibaba.Qwen3_Coder_FlashParams,
|
|
31
33
|
"alibaba/qwen3-coder-plus": alibaba.Qwen3_Coder_PlusParams,
|
|
32
34
|
"alibaba/qwen3-max": alibaba.Qwen3_MaxParams,
|
|
@@ -23,6 +23,19 @@ Qwen_FlashParams = TypedDict(
|
|
|
23
23
|
)
|
|
24
24
|
setattr(Qwen_FlashParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
25
25
|
|
|
26
|
+
Qwen_MaxParams = TypedDict(
|
|
27
|
+
"Qwen_MaxParams",
|
|
28
|
+
{
|
|
29
|
+
"max_tokens": Annotated[int, Field(ge=1)],
|
|
30
|
+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
|
|
31
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
32
|
+
"extra_body.top_k": Annotated[int, Field(ge=1)],
|
|
33
|
+
"extra_body.chat_template_kwargs.enable_thinking": bool,
|
|
34
|
+
},
|
|
35
|
+
total=False,
|
|
36
|
+
)
|
|
37
|
+
setattr(Qwen_MaxParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
38
|
+
|
|
26
39
|
Qwen_PlusParams = TypedDict(
|
|
27
40
|
"Qwen_PlusParams",
|
|
28
41
|
{
|
|
@@ -36,6 +49,19 @@ Qwen_PlusParams = TypedDict(
|
|
|
36
49
|
)
|
|
37
50
|
setattr(Qwen_PlusParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
38
51
|
|
|
52
|
+
Qwen_TurboParams = TypedDict(
|
|
53
|
+
"Qwen_TurboParams",
|
|
54
|
+
{
|
|
55
|
+
"max_tokens": Annotated[int, Field(ge=1)],
|
|
56
|
+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
|
|
57
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
58
|
+
"extra_body.top_k": Annotated[int, Field(ge=1)],
|
|
59
|
+
"extra_body.chat_template_kwargs.enable_thinking": bool,
|
|
60
|
+
},
|
|
61
|
+
total=False,
|
|
62
|
+
)
|
|
63
|
+
setattr(Qwen_TurboParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
64
|
+
|
|
39
65
|
Qwen3_Coder_FlashParams = TypedDict(
|
|
40
66
|
"Qwen3_Coder_FlashParams",
|
|
41
67
|
{
|
|
@@ -183,7 +209,9 @@ setattr(Qwq_PlusParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
|
183
209
|
|
|
184
210
|
__all__ = [
|
|
185
211
|
"Qwen_FlashParams",
|
|
212
|
+
"Qwen_MaxParams",
|
|
186
213
|
"Qwen_PlusParams",
|
|
214
|
+
"Qwen_TurboParams",
|
|
187
215
|
"Qwen3_Coder_FlashParams",
|
|
188
216
|
"Qwen3_Coder_PlusParams",
|
|
189
217
|
"Qwen3_MaxParams",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|