Upload allenai_Bolmo-7B_1.txt with huggingface_hub
Browse files12345678910111213141516171819202122232425262728293031```CODE: # Load model directlyfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("allenai/Bolmo-7B", trust_remote_code=True, dtype="auto")```
ERROR: Traceback (most recent call last): File "/tmp/.cache/huggingface/modules/transformers_modules/allenai/Bolmo_hyphen_7B/2d3a0870a376aef45190b453773fa5fc5c5f6eed/modeling_bolmo.py", line 31, in <module> from xlstm.xlstm_large.model import mLSTMLayer, mLSTMLayerConfig, mLSTMLayerStateType, soft_cap, mLSTMBackendConfigModuleNotFoundError: No module named 'xlstm'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/allenai_Bolmo-7B_1XQBrwI.py", line 25, in <module> model = AutoModelForCausalLM.from_pretrained("allenai/Bolmo-7B", trust_remote_code=True, dtype="auto") File "/tmp/.cache/uv/environments-v2/c418429f17577771/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 586, in from_pretrained model_class = get_class_from_dynamic_module( class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs ) File "/tmp/.cache/uv/environments-v2/c418429f17577771/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 616, in get_class_from_dynamic_module return get_class_in_module(class_name, final_module, force_reload=force_download) File "/tmp/.cache/uv/environments-v2/c418429f17577771/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 311, in get_class_in_module module_spec.loader.exec_module(module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "<frozen importlib._bootstrap_external>", line 1026, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/tmp/.cache/huggingface/modules/transformers_modules/allenai/Bolmo_hyphen_7B/2d3a0870a376aef45190b453773fa5fc5c5f6eed/modeling_bolmo.py", line 33, in <module> raise ImportError("The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.")ImportError: The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.allenai_Bolmo-7B_1.txtAdded+31