Upload ServiceNow-AI_Apriel-1.6-15b-Thinker_0.txt with huggingface_hub
Browse files1Everything was good in ServiceNow-AI_Apriel-1.6-15b-Thinker_0.txt1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859```CODE:# Use a pipeline as a high-level helperfrom transformers import pipelinepipe = pipeline("image-text-to-text", model="ServiceNow-AI/Apriel-1.6-15b-Thinker")messages = [{"role": "user","content": [{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},{"type": "text", "text": "What animal is on the candy?"}]},]pipe(text=messages)```ERROR:Traceback (most recent call last):File "/tmp/ServiceNow-AI_Apriel-1.6-15b-Thinker_0RmGtKg.py", line 26, in <module>pipe = pipeline("image-text-to-text", model="ServiceNow-AI/Apriel-1.6-15b-Thinker")File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1229, in pipelinereturn pipeline_class(model=model, framework=framework, task=task, **kwargs)File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/transformers/pipelines/image_text_to_text.py", line 191, in __init__super().__init__(*args, **kwargs)~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1044, in __init__self.model.to(self.device)~~~~~~~~~~~~~^^^^^^^^^^^^^File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4343, in toreturn super().to(*args, **kwargs)~~~~~~~~~~^^^^^^^^^^^^^^^^^File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1371, in toreturn self._apply(convert)~~~~~~~~~~~^^^^^^^^^File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/torch/nn/modules/module.py", line 930, in _applymodule._apply(fn)~~~~~~~~~~~~~^^^^File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/torch/nn/modules/module.py", line 930, in _applymodule._apply(fn)~~~~~~~~~~~~~^^^^File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/torch/nn/modules/module.py", line 930, in _applymodule._apply(fn)~~~~~~~~~~~~~^^^^[Previous line repeated 3 more times]File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/torch/nn/modules/module.py", line 957, in _applyparam_applied = fn(param)File "/tmp/.cache/uv/environments-v2/10e48a7117c25b66/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1357, in convertreturn t.to(~~~~^device,^^^^^^^dtype if t.is_floating_point() or t.is_complex() else None,^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^non_blocking,^^^^^^^^^^^^^)^torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 140.00 MiB. GPU 0 has a total capacity of 22.30 GiB of which 88.69 MiB is free. Process 26244 has 22.21 GiB memory in use. Of the allocated memory 21.96 GiB is allocated by PyTorch, and 126.00 KiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
ServiceNow-AI_Apriel-1.6-15b-Thinker_0.txt+59-1