modelparams 0.0.13__tar.gz → 0.0.14__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.
Files changed (33) hide show
  1. {modelparams-0.0.13 → modelparams-0.0.14}/PKG-INFO +1 -1
  2. {modelparams-0.0.13 → modelparams-0.0.14}/pyproject.toml +1 -1
  3. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/_generated/catalog.json +75 -0
  4. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/_generated/model_ids.py +2 -0
  5. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/_generated/registry.py +1 -0
  6. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/alibaba.py +15 -0
  7. {modelparams-0.0.13 → modelparams-0.0.14}/.gitignore +0 -0
  8. {modelparams-0.0.13 → modelparams-0.0.14}/LICENSE +0 -0
  9. {modelparams-0.0.13 → modelparams-0.0.14}/README.md +0 -0
  10. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/__init__.py +0 -0
  11. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/_generated/__init__.py +0 -0
  12. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/catalog.py +0 -0
  13. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/models.py +0 -0
  14. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/py.typed +0 -0
  15. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/__init__.py +0 -0
  16. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/anthropic.py +0 -0
  17. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/cerebras.py +0 -0
  18. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/cohere.py +0 -0
  19. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/deepseek.py +0 -0
  20. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/google.py +0 -0
  21. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/groq.py +0 -0
  22. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/meta.py +0 -0
  23. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/minimax.py +0 -0
  24. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/mistral.py +0 -0
  25. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/moonshot.py +0 -0
  26. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/nvidia.py +0 -0
  27. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/openai.py +0 -0
  28. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/perplexity.py +0 -0
  29. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/thinking_machines.py +0 -0
  30. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/xai.py +0 -0
  31. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/xiaomi.py +0 -0
  32. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/types/z_ai.py +0 -0
  33. {modelparams-0.0.13 → modelparams-0.0.14}/src/modelparams/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: modelparams
3
- Version: 0.0.13
3
+ Version: 0.0.14
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "modelparams"
7
- version = "0.0.13"
7
+ version = "0.0.14"
8
8
  description = "Typed model parameters for Python, generated from the modelparams.dev catalog."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -628,6 +628,81 @@
628
628
  }
629
629
  ]
630
630
  },
631
+ {
632
+ "provider": "alibaba",
633
+ "authType": "api_key",
634
+ "model": "qwen3.8-2.4t-a95b",
635
+ "params": [
636
+ {
637
+ "path": "max_completion_tokens",
638
+ "label": "Max tokens",
639
+ "description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
640
+ "group": "generation_length",
641
+ "type": "integer",
642
+ "range": {
643
+ "min": 1
644
+ }
645
+ },
646
+ {
647
+ "path": "temperature",
648
+ "label": "Temperature",
649
+ "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
650
+ "group": "sampling",
651
+ "type": "number",
652
+ "range": {
653
+ "min": 0,
654
+ "max": 2,
655
+ "step": 0.1
656
+ }
657
+ },
658
+ {
659
+ "path": "top_p",
660
+ "label": "Top P",
661
+ "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
662
+ "group": "sampling",
663
+ "type": "number",
664
+ "range": {
665
+ "min": 0,
666
+ "max": 1,
667
+ "step": 0.01
668
+ }
669
+ },
670
+ {
671
+ "path": "extra_body.top_k",
672
+ "label": "Top K",
673
+ "description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
674
+ "group": "sampling",
675
+ "type": "integer",
676
+ "default": 20,
677
+ "range": {
678
+ "min": 0
679
+ }
680
+ },
681
+ {
682
+ "path": "extra_body.enable_thinking",
683
+ "label": "Enable thinking",
684
+ "description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
685
+ "group": "reasoning",
686
+ "type": "boolean",
687
+ "default": true
688
+ },
689
+ {
690
+ "path": "extra_body.thinking_budget",
691
+ "label": "Thinking budget",
692
+ "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.",
693
+ "group": "reasoning",
694
+ "applicability": {
695
+ "only": {
696
+ "extra_body.enable_thinking": true
697
+ }
698
+ },
699
+ "type": "integer",
700
+ "range": {
701
+ "min": 1
702
+ }
703
+ }
704
+ ]
705
+ },
631
706
  {
632
707
  "provider": "alibaba",
633
708
  "authType": "api_key",
@@ -14,6 +14,7 @@ ModelId = Literal[
14
14
  "alibaba/qwen3.6-flash",
15
15
  "alibaba/qwen3.7-max",
16
16
  "alibaba/qwen3.7-plus",
17
+ "alibaba/qwen3.8-2.4t-a95b",
17
18
  "alibaba/qwen3.8-max",
18
19
  "alibaba/qwq-plus",
19
20
  "anthropic/claude-3-5-haiku-20241022",
@@ -272,6 +273,7 @@ MODEL_IDS: tuple[ModelId, ...] = (
272
273
  "alibaba/qwen3.6-flash",
273
274
  "alibaba/qwen3.7-max",
274
275
  "alibaba/qwen3.7-plus",
276
+ "alibaba/qwen3.8-2.4t-a95b",
275
277
  "alibaba/qwen3.8-max",
276
278
  "alibaba/qwq-plus",
277
279
  "anthropic/claude-3-5-haiku-20241022",
@@ -35,6 +35,7 @@ PARAM_TYPES: dict[ModelId, Any] = {
35
35
  "alibaba/qwen3.6-flash": alibaba.Qwen3_6_FlashParams,
36
36
  "alibaba/qwen3.7-max": alibaba.Qwen3_7_MaxParams,
37
37
  "alibaba/qwen3.7-plus": alibaba.Qwen3_7_PlusParams,
38
+ "alibaba/qwen3.8-2.4t-a95b": alibaba.Qwen3_8_2_4t_A95bParams,
38
39
  "alibaba/qwen3.8-max": alibaba.Qwen3_8_MaxParams,
39
40
  "alibaba/qwq-plus": alibaba.Qwq_PlusParams,
40
41
  "anthropic/claude-3-5-haiku-20241022": anthropic.Claude_3_5_Haiku_20241022Params,
@@ -141,6 +141,20 @@ Qwen3_7_PlusParams = TypedDict(
141
141
  )
142
142
  setattr(Qwen3_7_PlusParams, "__pydantic_config__", _PARAMS_CONFIG)
143
143
 
144
+ Qwen3_8_2_4t_A95bParams = TypedDict(
145
+ "Qwen3_8_2_4t_A95bParams",
146
+ {
147
+ "max_completion_tokens": Annotated[int, Field(ge=1)],
148
+ "temperature": Annotated[float, Field(ge=0, le=2)],
149
+ "top_p": Annotated[float, Field(ge=0, le=1)],
150
+ "extra_body.top_k": Annotated[int, Field(ge=0)],
151
+ "extra_body.enable_thinking": bool,
152
+ "extra_body.thinking_budget": Annotated[int, Field(ge=1)],
153
+ },
154
+ total=False,
155
+ )
156
+ setattr(Qwen3_8_2_4t_A95bParams, "__pydantic_config__", _PARAMS_CONFIG)
157
+
144
158
  Qwen3_8_MaxParams = TypedDict(
145
159
  "Qwen3_8_MaxParams",
146
160
  {
@@ -178,6 +192,7 @@ __all__ = [
178
192
  "Qwen3_6_FlashParams",
179
193
  "Qwen3_7_MaxParams",
180
194
  "Qwen3_7_PlusParams",
195
+ "Qwen3_8_2_4t_A95bParams",
181
196
  "Qwen3_8_MaxParams",
182
197
  "Qwq_PlusParams",
183
198
  ]
File without changes
File without changes
File without changes