Upload inclusionAI_Ling-Coder-lite_0.txt with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041Traceback (most recent call last): File "/tmp/inclusionAI_Ling-Coder-lite_00C9BJY.py", line 13, in <module> pipe = pipeline("text-generation", model="inclusionAI/Ling-Coder-lite", trust_remote_code=True) File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1210, in pipeline return pipeline_class(model=model, framework=framework, task=task, **kwargs) File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 121, in __init__ super().__init__(*args, **kwargs) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1043, in __init__ self.model.to(self.device) ~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4341, in to return super().to(*args, **kwargs) ~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1369, in to return self._apply(convert) ~~~~~~~~~~~^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 928, in _apply module._apply(fn) ~~~~~~~~~~~~~^^^^ File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 928, in _apply module._apply(fn) ~~~~~~~~~~~~~^^^^ File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 928, in _apply module._apply(fn) ~~~~~~~~~~~~~^^^^ [Previous line repeated 4 more times] File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 955, in _apply param_applied = fn(param) File "/tmp/.cache/uv/environments-v2/81bd7a78e7a9c12d/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1355, in convert return 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 20.00 MiB. GPU 0 has a total capacity of 22.30 GiB of which 704.00 KiB is free. Process 25834 has 22.29 GiB memory in use. Of the allocated memory 18.44 GiB is allocated by PyTorch, and 3.61 GiB 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)inclusionAI_Ling-Coder-lite_0.txtAdded+41