text
stringlengths 5
175
|
---|
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/980726e6baa30c58/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/980726e6baa30c58/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/980726e6baa30c58/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/openbmb_MiniCPM4-0.5B_0N54NuB.py", line 17, in <module>
|
pipe(messages)
|
~~~~^^^^^^^^^^
|
File "/tmp/.cache/uv/environments-v2/aae8c6a2cd877ed6/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 295, in __call__
|
return super().__call__(Chat(text_inputs), **kwargs)
|
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
File "/tmp/.cache/uv/environments-v2/aae8c6a2cd877ed6/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1431, in __call__
|
return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)
|
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
File "/tmp/.cache/uv/environments-v2/aae8c6a2cd877ed6/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1437, in run_single
|
model_inputs = self.preprocess(inputs, **preprocess_params)
|
File "/tmp/.cache/uv/environments-v2/aae8c6a2cd877ed6/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 331, in preprocess
|
inputs = self.tokenizer.apply_chat_template(
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
AttributeError: 'NoneType' object has no attribute 'apply_chat_template'
|
Traceback (most recent call last):
|
File "/tmp/openbmb_MiniCPM4-0.5B_0DzE7Y5.py", line 17, in <module>
|
pipe(messages)
|
~~~~^^^^^^^^^^
|
File "/tmp/.cache/uv/environments-v2/51060ff1fc6c0ad6/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 295, in __call__
|
return super().__call__(Chat(text_inputs), **kwargs)
|
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
File "/tmp/.cache/uv/environments-v2/51060ff1fc6c0ad6/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1431, in __call__
|
return self.run_single(inputs, preprocess_params, forward_params, postprocess_params)
|
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
File "/tmp/.cache/uv/environments-v2/51060ff1fc6c0ad6/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1437, in run_single
|
model_inputs = self.preprocess(inputs, **preprocess_params)
|
File "/tmp/.cache/uv/environments-v2/51060ff1fc6c0ad6/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 331, in preprocess
|
inputs = self.tokenizer.apply_chat_template(
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
AttributeError: 'NoneType' object has no attribute 'apply_chat_template'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.