File size: 1,962 Bytes
eb7394e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Traceback (most recent call last):
  File "/tmp/LiquidAI_LFM2-8B-A1B_0wIkn8Q.py", line 16, in <module>
    pipe = pipeline("text-generation", model="LiquidAI/LFM2-8B-A1B", trust_remote_code=True)
  File "/tmp/.cache/uv/environments-v2/1b57f0f089e40716/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 922, in pipeline
    config = AutoConfig.from_pretrained(
        model, _from_pipeline=task, code_revision=code_revision, **hub_kwargs, **model_kwargs
    )
  File "/tmp/.cache/uv/environments-v2/1b57f0f089e40716/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/1b57f0f089e40716/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/1b57f0f089e40716/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/1b57f0f089e40716/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/1b57f0f089e40716/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.