Upload MiniMaxAI_MiniMax-M2.1_0.txt with huggingface_hub
Browse files- MiniMaxAI_MiniMax-M2.1_0.txt +42 -0
MiniMaxAI_MiniMax-M2.1_0.txt
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
# Use a pipeline as a high-level helper
|
| 3 |
+
from transformers import pipeline
|
| 4 |
+
|
| 5 |
+
pipe = pipeline("text-generation", model="MiniMaxAI/MiniMax-M2.1", trust_remote_code=True)
|
| 6 |
+
messages = [
|
| 7 |
+
{"role": "user", "content": "Who are you?"},
|
| 8 |
+
]
|
| 9 |
+
pipe(messages)
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
ERROR:
|
| 13 |
+
Traceback (most recent call last):
|
| 14 |
+
File "/tmp/MiniMaxAI_MiniMax-M2.1_0EtBIoY.py", line 26, in <module>
|
| 15 |
+
pipe = pipeline("text-generation", model="MiniMaxAI/MiniMax-M2.1", trust_remote_code=True)
|
| 16 |
+
File "/tmp/.cache/uv/environments-v2/c677dce89777868a/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 836, in pipeline
|
| 17 |
+
model = load_model(
|
| 18 |
+
adapter_path if adapter_path is not None else model,
|
| 19 |
+
...<4 lines>...
|
| 20 |
+
**model_kwargs,
|
| 21 |
+
)
|
| 22 |
+
File "/tmp/.cache/uv/environments-v2/c677dce89777868a/lib/python3.13/site-packages/transformers/pipelines/base.py", line 232, in load_model
|
| 23 |
+
model = model_class.from_pretrained(model, **kwargs)
|
| 24 |
+
File "/tmp/.cache/uv/environments-v2/c677dce89777868a/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 365, in from_pretrained
|
| 25 |
+
return model_class.from_pretrained(
|
| 26 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|
| 27 |
+
pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs
|
| 28 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 29 |
+
)
|
| 30 |
+
^
|
| 31 |
+
File "/tmp/.cache/uv/environments-v2/c677dce89777868a/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4072, in from_pretrained
|
| 32 |
+
model = cls(config, *model_args, **model_kwargs)
|
| 33 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/MiniMaxAI/MiniMax_hyphen_M2_dot_1/69af3144792884ee6edeb07f465074d1607b92f6/modeling_minimax_m2.py", line 590, in __init__
|
| 34 |
+
self.model = MiniMaxM2Model(config)
|
| 35 |
+
~~~~~~~~~~~~~~^^^^^^^^
|
| 36 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/MiniMaxAI/MiniMax_hyphen_M2_dot_1/69af3144792884ee6edeb07f465074d1607b92f6/modeling_minimax_m2.py", line 429, in __init__
|
| 37 |
+
self.rotary_emb = MiniMaxM2RotaryEmbedding(config=config)
|
| 38 |
+
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
|
| 39 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/MiniMaxAI/MiniMax_hyphen_M2_dot_1/69af3144792884ee6edeb07f465074d1607b92f6/modeling_minimax_m2.py", line 376, in __init__
|
| 40 |
+
self.rope_init_fn = ROPE_INIT_FUNCTIONS[self.rope_type]
|
| 41 |
+
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
|
| 42 |
+
KeyError: 'default'
|