text
stringlengths
0
3.84k
ImportError: This modeling file requires the following packages that were not found in your environment: einops. Run `pip install einops`
Traceback (most recent call last):
File "/tmp/jet-ai_Jet-Nemotron-4B_1kO9dTs.py", line 15, in <module>
model = AutoModelForCausalLM.from_pretrained("jet-ai/Jet-Nemotron-4B", trust_remote_code=True, torch_dtype="auto")
File "/tmp/.cache/uv/environments-v2/a715d814b0fd3d5f/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/a715d814b0fd3d5f/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/a715d814b0fd3d5f/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 467, in get_cached_module_file
get_cached_module_file(
~~~~~~~~~~~~~~~~~~~~~~^
pretrained_model_name_or_path,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<8 lines>...
_commit_hash=commit_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/tmp/.cache/uv/environments-v2/a715d814b0fd3d5f/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 427, in get_cached_module_file
modules_needed = check_imports(resolved_module_file)
File "/tmp/.cache/uv/environments-v2/a715d814b0fd3d5f/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 260, in check_imports
raise ImportError(
...<2 lines>...
)
ImportError: This modeling file requires the following packages that were not found in your environment: einops. Run `pip install einops`
Traceback (most recent call last):
File "/tmp/jina-embeddings-v4_0sguDsi.py", line 12, in <module>
model = AutoModel.from_pretrained("jinaai/jina-embeddings-v4", trust_remote_code=True)
File "/tmp/.cache/uv/environments-v2/3dff24d90291b0dd/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/3dff24d90291b0dd/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/3dff24d90291b0dd/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/3dff24d90291b0dd/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: PIL, peft. Run `pip install PIL peft`
Traceback (most recent call last):
File "/tmp/jinaai_jina-embeddings-v4_0iXrdAS.py", line 12, in <module>
model = AutoModel.from_pretrained("jinaai/jina-embeddings-v4", trust_remote_code=True, torch_dtype="auto"),
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/6bac373a2ba13a07/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/6bac373a2ba13a07/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/6bac373a2ba13a07/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/6bac373a2ba13a07/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: PIL, peft. Run `pip install PIL peft`
Traceback (most recent call last):
File "/tmp/kakaocorp_kanana-1.5-v-3b-instruct_0nMiV4j.py", line 13, in <module>
pipe = pipeline("image-text-to-text", model="kakaocorp/kanana-1.5-v-3b-instruct", trust_remote_code=True)
File "/tmp/.cache/uv/environments-v2/5826d58e4a076461/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/5826d58e4a076461/lib/python3.13/site-packages/transformers/pipelines/base.py", line 332, in infer_framework_load_model
raise ValueError(
f"Could not load model {model} with any of the following classes: {class_tuple}. See the original errors:\n\n{error}\n"
)
ValueError: Could not load model kakaocorp/kanana-1.5-v-3b-instruct with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForImageTextToText'>,). See the original errors:
while loading with AutoModelForImageTextToText, an error is thrown:
Traceback (most recent call last):
File "/tmp/.cache/uv/environments-v2/5826d58e4a076461/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/5826d58e4a076461/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 603, in from_pretrained
raise ValueError(
...<2 lines>...
)
ValueError: Unrecognized configuration class <class 'transformers_modules.kakaocorp.kanana-1.5-v-3b-instruct.5dc44a339df77ebc6107411826db82820ef0f36a.configuration.KananaVConfig'> for this kind of AutoModel: AutoModelForImageTextToText.