Upload inclusionAI_LLaDA2.0-mini-preview_0.txt with huggingface_hub
Browse files
inclusionAI_LLaDA2.0-mini-preview_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="inclusionAI/LLaDA2.0-mini-preview", trust_remote_code=True)
|
| 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/inclusionAI_LLaDA2.0-mini-preview_0vyRPYs.py", line 17, in <module>
|
| 15 |
+
pipe = pipeline("text-generation", model="inclusionAI/LLaDA2.0-mini-preview", trust_remote_code=True)
|
| 16 |
+
File "/tmp/.cache/uv/environments-v2/afeb664fc354421a/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/afeb664fc354421a/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/afeb664fc354421a/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/afeb664fc354421a/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/afeb664fc354421a/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/afeb664fc354421a/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/afeb664fc354421a/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/afeb664fc354421a/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/afeb664fc354421a/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/afeb664fc354421a/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 12.00 MiB. GPU 0 has a total capacity of 22.30 GiB of which 4.69 MiB is free. Process 25385 has 22.29 GiB memory in use. Of the allocated memory 22.05 GiB is allocated by PyTorch, and 1.86 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)
|