Upload allenai_Olmo-3-32B-Think_0.txt with huggingface_hub
Browse files
allenai_Olmo-3-32B-Think_0.txt
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
# Use a pipeline as a high-level helper
|
| 3 |
+
from transformers import pipeline
|
| 4 |
+
|
| 5 |
+
pipe = pipeline("text-generation", model="allenai/Olmo-3-32B-Think")
|
| 6 |
+
messages = [
|
| 7 |
+
{"role": "user", "content": "Who are you?"},
|
| 8 |
+
]
|
| 9 |
+
pipe(messages)
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
ERROR:
|
| 13 |
+
Traceback (most recent call last):
|
| 14 |
+
File "/tmp/allenai_Olmo-3-32B-Think_0cd1MTH.py", line 26, in <module>
|
| 15 |
+
pipe = pipeline("text-generation", model="allenai/Olmo-3-32B-Think")
|
| 16 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1229, in pipeline
|
| 17 |
+
return pipeline_class(model=model, framework=framework, task=task, **kwargs)
|
| 18 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 121, in __init__
|
| 19 |
+
super().__init__(*args, **kwargs)
|
| 20 |
+
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
|
| 21 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1044, in __init__
|
| 22 |
+
self.model.to(self.device)
|
| 23 |
+
~~~~~~~~~~~~~^^^^^^^^^^^^^
|
| 24 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4343, in to
|
| 25 |
+
return super().to(*args, **kwargs)
|
| 26 |
+
~~~~~~~~~~^^^^^^^^^^^^^^^^^
|
| 27 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1371, in to
|
| 28 |
+
return self._apply(convert)
|
| 29 |
+
~~~~~~~~~~~^^^^^^^^^
|
| 30 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/torch/nn/modules/module.py", line 930, in _apply
|
| 31 |
+
module._apply(fn)
|
| 32 |
+
~~~~~~~~~~~~~^^^^
|
| 33 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/torch/nn/modules/module.py", line 930, in _apply
|
| 34 |
+
module._apply(fn)
|
| 35 |
+
~~~~~~~~~~~~~^^^^
|
| 36 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/torch/nn/modules/module.py", line 930, in _apply
|
| 37 |
+
module._apply(fn)
|
| 38 |
+
~~~~~~~~~~~~~^^^^
|
| 39 |
+
[Previous line repeated 2 more times]
|
| 40 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/torch/nn/modules/module.py", line 957, in _apply
|
| 41 |
+
param_applied = fn(param)
|
| 42 |
+
File "/tmp/.cache/uv/environments-v2/e308da14b0a7e4b6/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1357, in convert
|
| 43 |
+
return t.to(
|
| 44 |
+
~~~~^
|
| 45 |
+
device,
|
| 46 |
+
^^^^^^^
|
| 47 |
+
dtype if t.is_floating_point() or t.is_complex() else None,
|
| 48 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 49 |
+
non_blocking,
|
| 50 |
+
^^^^^^^^^^^^^
|
| 51 |
+
)
|
| 52 |
+
^
|
| 53 |
+
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 270.00 MiB. GPU 0 has a total capacity of 22.03 GiB of which 267.12 MiB is free. Including non-PyTorch memory, this process has 21.77 GiB memory in use. Of the allocated memory 21.58 GiB is allocated by PyTorch, and 1.30 MiB 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)
|