File size: 2,196 Bytes
ff19152
564cc4a
ff19152
298defa
ff19152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
Traceback (most recent call last):
  File "/tmp/microsoft_Phi-4-mini-flash-reasoning_0WYtVxq.py", line 13, in <module>
    pipe = pipeline("text-generation", model="microsoft/Phi-4-mini-flash-reasoning", trust_remote_code=True)
  File "/tmp/.cache/uv/environments-v2/4926ae9e86f11c3f/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1008, in pipeline
    framework, model = infer_framework_load_model(
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^
        adapter_path if adapter_path is not None else model,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
        **model_kwargs,
        ^^^^^^^^^^^^^^^
    )
    ^
  File "/tmp/.cache/uv/environments-v2/4926ae9e86f11c3f/lib/python3.13/site-packages/transformers/pipelines/base.py", line 292, in infer_framework_load_model
    model = model_class.from_pretrained(model, **kwargs)
  File "/tmp/.cache/uv/environments-v2/4926ae9e86f11c3f/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 582, 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/4926ae9e86f11c3f/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 570, 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/4926ae9e86f11c3f/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 393, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
  File "/tmp/.cache/uv/environments-v2/4926ae9e86f11c3f/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 225, in check_imports
    raise ImportError(
    ...<2 lines>...
    )
ImportError: This modeling file requires the following packages that were not found in your environment: causal_conv1d, causal_conv1d_cuda, einops, flash_attn, mamba_ssm, selective_scan_cuda. Run `pip install causal_conv1d causal_conv1d_cuda einops flash_attn mamba_ssm selective_scan_cuda`