| Traceback (most recent call last): |
| File "/tmp/LiquidAI_LFM2-8B-A1B_1wsNwgk.py", line 17, in <module> |
| model = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM2-8B-A1B", trust_remote_code=True) |
| File "/tmp/.cache/uv/environments-v2/dcce77d1c9c002ff/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 549, in from_pretrained |
| config, kwargs = AutoConfig.from_pretrained( |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^ |
| pretrained_model_name_or_path, |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ...<4 lines>... |
| **kwargs, |
| ^^^^^^^^^ |
| ) |
| ^ |
| File "/tmp/.cache/uv/environments-v2/dcce77d1c9c002ff/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1347, in from_pretrained |
| config_class = get_class_from_dynamic_module( |
| class_ref, pretrained_model_name_or_path, code_revision=code_revision, **kwargs |
| ) |
| File "/tmp/.cache/uv/environments-v2/dcce77d1c9c002ff/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 604, in get_class_from_dynamic_module |
| final_module = get_cached_module_file( |
| repo_id, |
| ...<8 lines>... |
| repo_type=repo_type, |
| ) |
| File "/tmp/.cache/uv/environments-v2/dcce77d1c9c002ff/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 406, in get_cached_module_file |
| resolved_module_file = cached_file( |
| pretrained_model_name_or_path, |
| ...<9 lines>... |
| _commit_hash=_commit_hash, |
| ) |
| File "/tmp/.cache/uv/environments-v2/dcce77d1c9c002ff/lib/python3.13/site-packages/transformers/utils/hub.py", line 322, in cached_file |
| file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) |
| File "/tmp/.cache/uv/environments-v2/dcce77d1c9c002ff/lib/python3.13/site-packages/transformers/utils/hub.py", line 583, in cached_files |
| raise OSError( |
| ...<2 lines>... |
| ) |
| OSError: LiquidAI/LFM2-8B-A1B does not appear to have a file named configuration_lfm2_moe.py. Checkout 'https://huggingface.co/LiquidAI/LFM2-8B-A1B/tree/main' for available files. |
|
|