Upload allenai_Bolmo-1B_1.txt with huggingface_hub
Browse files- allenai_Bolmo-1B_1.txt +31 -0
allenai_Bolmo-1B_1.txt
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
# Load model directly
|
| 3 |
+
from transformers import AutoModelForCausalLM
|
| 4 |
+
model = AutoModelForCausalLM.from_pretrained("allenai/Bolmo-1B", trust_remote_code=True, dtype="auto")
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
ERROR:
|
| 8 |
+
Traceback (most recent call last):
|
| 9 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/allenai/Bolmo_hyphen_1B/5f3bab9dc6869b8917408fd400ccf40ca8ecf40c/modeling_bolmo.py", line 31, in <module>
|
| 10 |
+
from xlstm.xlstm_large.model import mLSTMLayer, mLSTMLayerConfig, mLSTMLayerStateType, soft_cap, mLSTMBackendConfig
|
| 11 |
+
ModuleNotFoundError: No module named 'xlstm'
|
| 12 |
+
|
| 13 |
+
During handling of the above exception, another exception occurred:
|
| 14 |
+
|
| 15 |
+
Traceback (most recent call last):
|
| 16 |
+
File "/tmp/allenai_Bolmo-1B_13egmQh.py", line 25, in <module>
|
| 17 |
+
model = AutoModelForCausalLM.from_pretrained("allenai/Bolmo-1B", trust_remote_code=True, dtype="auto")
|
| 18 |
+
File "/tmp/.cache/uv/environments-v2/2c79c6ebe6a89f2e/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 586, in from_pretrained
|
| 19 |
+
model_class = get_class_from_dynamic_module(
|
| 20 |
+
class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs
|
| 21 |
+
)
|
| 22 |
+
File "/tmp/.cache/uv/environments-v2/2c79c6ebe6a89f2e/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 616, in get_class_from_dynamic_module
|
| 23 |
+
return get_class_in_module(class_name, final_module, force_reload=force_download)
|
| 24 |
+
File "/tmp/.cache/uv/environments-v2/2c79c6ebe6a89f2e/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 311, in get_class_in_module
|
| 25 |
+
module_spec.loader.exec_module(module)
|
| 26 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
|
| 27 |
+
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
|
| 28 |
+
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
|
| 29 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/allenai/Bolmo_hyphen_1B/5f3bab9dc6869b8917408fd400ccf40ca8ecf40c/modeling_bolmo.py", line 33, in <module>
|
| 30 |
+
raise ImportError("The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.")
|
| 31 |
+
ImportError: The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.
|