ariG23498 HF Staff commited on
Commit
4b79202
·
verified ·
1 Parent(s): c8f9000

Upload LiquidAI_LFM2.5-VL-1.6B_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. LiquidAI_LFM2.5-VL-1.6B_0.txt +42 -0
LiquidAI_LFM2.5-VL-1.6B_0.txt ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Use a pipeline as a high-level helper
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline("image-text-to-text", model="LiquidAI/LFM2.5-VL-1.6B")
6
+ messages = [
7
+ {
8
+ "role": "user",
9
+ "content": [
10
+ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
11
+ {"type": "text", "text": "What animal is on the candy?"}
12
+ ]
13
+ },
14
+ ]
15
+ pipe(text=messages)
16
+ ```
17
+
18
+ ERROR:
19
+ Traceback (most recent call last):
20
+ File "/tmp/LiquidAI_LFM2.5-VL-1.6B_0UdM7pr.py", line 26, in <module>
21
+ pipe = pipeline("image-text-to-text", model="LiquidAI/LFM2.5-VL-1.6B")
22
+ File "/tmp/.cache/uv/environments-v2/0145a12032cf2475/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1197, in pipeline
23
+ raise e
24
+ File "/tmp/.cache/uv/environments-v2/0145a12032cf2475/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1188, in pipeline
25
+ processor = AutoProcessor.from_pretrained(processor, _from_pipeline=task, **hub_kwargs, **model_kwargs)
26
+ File "/tmp/.cache/uv/environments-v2/0145a12032cf2475/lib/python3.13/site-packages/transformers/models/auto/processing_auto.py", line 396, in from_pretrained
27
+ return processor_class.from_pretrained(
28
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
29
+ pretrained_model_name_or_path, trust_remote_code=trust_remote_code, **kwargs
30
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
+ )
32
+ ^
33
+ File "/tmp/.cache/uv/environments-v2/0145a12032cf2475/lib/python3.13/site-packages/transformers/processing_utils.py", line 1394, in from_pretrained
34
+ args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, **kwargs)
35
+ File "/tmp/.cache/uv/environments-v2/0145a12032cf2475/lib/python3.13/site-packages/transformers/processing_utils.py", line 1453, in _get_arguments_from_pretrained
36
+ args.append(attribute_class.from_pretrained(pretrained_model_name_or_path, **kwargs))
37
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
+ File "/tmp/.cache/uv/environments-v2/0145a12032cf2475/lib/python3.13/site-packages/transformers/models/auto/tokenization_auto.py", line 1153, in from_pretrained
39
+ raise ValueError(
40
+ f"Tokenizer class {tokenizer_class_candidate} does not exist or is not currently imported."
41
+ )
42
+ ValueError: Tokenizer class TokenizersBackend does not exist or is not currently imported.