modelparams 0.0.27__tar.gz → 0.0.29__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.27 → modelparams-0.0.29}/PKG-INFO +1 -1
- {modelparams-0.0.27 → modelparams-0.0.29}/pyproject.toml +1 -1
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/_generated/catalog.json +150 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/_generated/model_ids.py +4 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/_generated/registry.py +2 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/alibaba.py +30 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/.gitignore +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/LICENSE +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/README.md +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/__init__.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/_generated/__init__.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/catalog.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/models.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/py.typed +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/__init__.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/anthropic.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/cerebras.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/cohere.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/deepseek.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/google.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/groq.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/meta.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/minimax.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/mistral.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/moonshot.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/nvidia.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/openai.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/perplexity.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/thinking_machines.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/xai.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/xiaomi.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/src/modelparams/types/z_ai.py +0 -0
- {modelparams-0.0.27 → modelparams-0.0.29}/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.29
|
|
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
|
|
@@ -1,4 +1,79 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"provider": "alibaba",
|
|
4
|
+
"authType": "api_key",
|
|
5
|
+
"model": "deepseek-v3.2",
|
|
6
|
+
"params": [
|
|
7
|
+
{
|
|
8
|
+
"path": "max_completion_tokens",
|
|
9
|
+
"label": "Max tokens",
|
|
10
|
+
"description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
|
|
11
|
+
"group": "generation_length",
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"range": {
|
|
14
|
+
"min": 1
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"path": "temperature",
|
|
19
|
+
"label": "Temperature",
|
|
20
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
21
|
+
"group": "sampling",
|
|
22
|
+
"type": "number",
|
|
23
|
+
"range": {
|
|
24
|
+
"min": 0,
|
|
25
|
+
"max": 1.9,
|
|
26
|
+
"step": 0.1
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "top_p",
|
|
31
|
+
"label": "Top P",
|
|
32
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
33
|
+
"group": "sampling",
|
|
34
|
+
"type": "number",
|
|
35
|
+
"range": {
|
|
36
|
+
"min": 0,
|
|
37
|
+
"max": 1,
|
|
38
|
+
"step": 0.01
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "extra_body.top_k",
|
|
43
|
+
"label": "Top K",
|
|
44
|
+
"description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
|
|
45
|
+
"group": "sampling",
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"default": 20,
|
|
48
|
+
"range": {
|
|
49
|
+
"min": 0
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"path": "extra_body.enable_thinking",
|
|
54
|
+
"label": "Enable thinking",
|
|
55
|
+
"description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
|
|
56
|
+
"group": "reasoning",
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"default": true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"path": "extra_body.thinking_budget",
|
|
62
|
+
"label": "Thinking budget",
|
|
63
|
+
"description": "Maximum number of tokens the model may spend on reasoning before it starts the final answer; defaults to the model's maximum reasoning length.",
|
|
64
|
+
"group": "reasoning",
|
|
65
|
+
"applicability": {
|
|
66
|
+
"only": {
|
|
67
|
+
"extra_body.enable_thinking": true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"range": {
|
|
72
|
+
"min": 1
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
2
77
|
{
|
|
3
78
|
"provider": "alibaba",
|
|
4
79
|
"authType": "api_key",
|
|
@@ -149,6 +224,81 @@
|
|
|
149
224
|
}
|
|
150
225
|
]
|
|
151
226
|
},
|
|
227
|
+
{
|
|
228
|
+
"provider": "alibaba",
|
|
229
|
+
"authType": "api_key",
|
|
230
|
+
"model": "kimi-k2.7-code",
|
|
231
|
+
"params": [
|
|
232
|
+
{
|
|
233
|
+
"path": "max_completion_tokens",
|
|
234
|
+
"label": "Max tokens",
|
|
235
|
+
"description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
|
|
236
|
+
"group": "generation_length",
|
|
237
|
+
"type": "integer",
|
|
238
|
+
"range": {
|
|
239
|
+
"min": 1
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"path": "temperature",
|
|
244
|
+
"label": "Temperature",
|
|
245
|
+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
|
|
246
|
+
"group": "sampling",
|
|
247
|
+
"type": "number",
|
|
248
|
+
"range": {
|
|
249
|
+
"min": 0,
|
|
250
|
+
"max": 1.9,
|
|
251
|
+
"step": 0.1
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"path": "top_p",
|
|
256
|
+
"label": "Top P",
|
|
257
|
+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
|
|
258
|
+
"group": "sampling",
|
|
259
|
+
"type": "number",
|
|
260
|
+
"range": {
|
|
261
|
+
"min": 0,
|
|
262
|
+
"max": 1,
|
|
263
|
+
"step": 0.01
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"path": "extra_body.top_k",
|
|
268
|
+
"label": "Top K",
|
|
269
|
+
"description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
|
|
270
|
+
"group": "sampling",
|
|
271
|
+
"type": "integer",
|
|
272
|
+
"default": 20,
|
|
273
|
+
"range": {
|
|
274
|
+
"min": 0
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"path": "extra_body.enable_thinking",
|
|
279
|
+
"label": "Enable thinking",
|
|
280
|
+
"description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
|
|
281
|
+
"group": "reasoning",
|
|
282
|
+
"type": "boolean",
|
|
283
|
+
"default": true
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"path": "extra_body.thinking_budget",
|
|
287
|
+
"label": "Thinking budget",
|
|
288
|
+
"description": "Maximum number of tokens the model may spend on reasoning before it starts the final answer; defaults to the model's maximum reasoning length.",
|
|
289
|
+
"group": "reasoning",
|
|
290
|
+
"applicability": {
|
|
291
|
+
"only": {
|
|
292
|
+
"extra_body.enable_thinking": true
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"type": "integer",
|
|
296
|
+
"range": {
|
|
297
|
+
"min": 1
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
152
302
|
{
|
|
153
303
|
"provider": "alibaba",
|
|
154
304
|
"authType": "api_key",
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
from typing import Literal
|
|
5
5
|
|
|
6
6
|
ModelId = Literal[
|
|
7
|
+
"alibaba/deepseek-v3.2",
|
|
7
8
|
"alibaba/deepseek-v4-flash-0731",
|
|
8
9
|
"alibaba/deepseek-v4-pro-0813",
|
|
10
|
+
"alibaba/kimi-k2.7-code",
|
|
9
11
|
"alibaba/qwen-flash",
|
|
10
12
|
"alibaba/qwen-max",
|
|
11
13
|
"alibaba/qwen-plus",
|
|
@@ -290,8 +292,10 @@ ModelId = Literal[
|
|
|
290
292
|
]
|
|
291
293
|
|
|
292
294
|
MODEL_IDS: tuple[ModelId, ...] = (
|
|
295
|
+
"alibaba/deepseek-v3.2",
|
|
293
296
|
"alibaba/deepseek-v4-flash-0731",
|
|
294
297
|
"alibaba/deepseek-v4-pro-0813",
|
|
298
|
+
"alibaba/kimi-k2.7-code",
|
|
295
299
|
"alibaba/qwen-flash",
|
|
296
300
|
"alibaba/qwen-max",
|
|
297
301
|
"alibaba/qwen-plus",
|
|
@@ -25,8 +25,10 @@ from modelparams.types import z_ai
|
|
|
25
25
|
from .model_ids import ModelId
|
|
26
26
|
|
|
27
27
|
PARAM_TYPES: dict[ModelId, Any] = {
|
|
28
|
+
"alibaba/deepseek-v3.2": alibaba.Deepseek_V3_2Params,
|
|
28
29
|
"alibaba/deepseek-v4-flash-0731": alibaba.Deepseek_V4_Flash_0731Params,
|
|
29
30
|
"alibaba/deepseek-v4-pro-0813": alibaba.Deepseek_V4_Pro_0813Params,
|
|
31
|
+
"alibaba/kimi-k2.7-code": alibaba.Kimi_K2_7_CodeParams,
|
|
30
32
|
"alibaba/qwen-flash": alibaba.Qwen_FlashParams,
|
|
31
33
|
"alibaba/qwen-max": alibaba.Qwen_MaxParams,
|
|
32
34
|
"alibaba/qwen-plus": alibaba.Qwen_PlusParams,
|
|
@@ -10,6 +10,20 @@ from typing_extensions import TypedDict
|
|
|
10
10
|
|
|
11
11
|
_PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid")
|
|
12
12
|
|
|
13
|
+
Deepseek_V3_2Params = TypedDict(
|
|
14
|
+
"Deepseek_V3_2Params",
|
|
15
|
+
{
|
|
16
|
+
"max_completion_tokens": Annotated[int, Field(ge=1)],
|
|
17
|
+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
|
|
18
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
19
|
+
"extra_body.top_k": Annotated[int, Field(ge=0)],
|
|
20
|
+
"extra_body.enable_thinking": bool,
|
|
21
|
+
"extra_body.thinking_budget": Annotated[int, Field(ge=1)],
|
|
22
|
+
},
|
|
23
|
+
total=False,
|
|
24
|
+
)
|
|
25
|
+
setattr(Deepseek_V3_2Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
26
|
+
|
|
13
27
|
Deepseek_V4_Flash_0731Params = TypedDict(
|
|
14
28
|
"Deepseek_V4_Flash_0731Params",
|
|
15
29
|
{
|
|
@@ -38,6 +52,20 @@ Deepseek_V4_Pro_0813Params = TypedDict(
|
|
|
38
52
|
)
|
|
39
53
|
setattr(Deepseek_V4_Pro_0813Params, "__pydantic_config__", _PARAMS_CONFIG)
|
|
40
54
|
|
|
55
|
+
Kimi_K2_7_CodeParams = TypedDict(
|
|
56
|
+
"Kimi_K2_7_CodeParams",
|
|
57
|
+
{
|
|
58
|
+
"max_completion_tokens": Annotated[int, Field(ge=1)],
|
|
59
|
+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
|
|
60
|
+
"top_p": Annotated[float, Field(ge=0, le=1)],
|
|
61
|
+
"extra_body.top_k": Annotated[int, Field(ge=0)],
|
|
62
|
+
"extra_body.enable_thinking": bool,
|
|
63
|
+
"extra_body.thinking_budget": Annotated[int, Field(ge=1)],
|
|
64
|
+
},
|
|
65
|
+
total=False,
|
|
66
|
+
)
|
|
67
|
+
setattr(Kimi_K2_7_CodeParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
68
|
+
|
|
41
69
|
Qwen_FlashParams = TypedDict(
|
|
42
70
|
"Qwen_FlashParams",
|
|
43
71
|
{
|
|
@@ -447,8 +475,10 @@ Qwq_PlusParams = TypedDict(
|
|
|
447
475
|
setattr(Qwq_PlusParams, "__pydantic_config__", _PARAMS_CONFIG)
|
|
448
476
|
|
|
449
477
|
__all__ = [
|
|
478
|
+
"Deepseek_V3_2Params",
|
|
450
479
|
"Deepseek_V4_Flash_0731Params",
|
|
451
480
|
"Deepseek_V4_Pro_0813Params",
|
|
481
|
+
"Kimi_K2_7_CodeParams",
|
|
452
482
|
"Qwen_FlashParams",
|
|
453
483
|
"Qwen_MaxParams",
|
|
454
484
|
"Qwen_PlusParams",
|
|
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
|