text
stringlengths
0
3.84k
class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs
)
File "/tmp/.cache/uv/environments-v2/c31913f5168f1709/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 570, in get_class_from_dynamic_module
final_module = get_cached_module_file(
repo_id,
...<8 lines>...
repo_type=repo_type,
)
File "/tmp/.cache/uv/environments-v2/c31913f5168f1709/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 393, in get_cached_module_file
modules_needed = check_imports(resolved_module_file)
File "/tmp/.cache/uv/environments-v2/c31913f5168f1709/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 225, in check_imports
raise ImportError(
...<2 lines>...
)
ImportError: This modeling file requires the following packages that were not found in your environment: einops, fla. Run `pip install einops fla`
Traceback (most recent call last):
File "/tmp/inclusionAI_Ring-lite-linear-preview_14e73Zn.py", line 12, in <module>
model = AutoModelForCausalLM.from_pretrained("inclusionAI/Ring-lite-linear-preview", trust_remote_code=True, torch_dtype="auto"),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/614a7b9ecb1bc306/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 582, in from_pretrained
model_class = get_class_from_dynamic_module(
class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs
)
File "/tmp/.cache/uv/environments-v2/614a7b9ecb1bc306/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 570, in get_class_from_dynamic_module
final_module = get_cached_module_file(
repo_id,
...<8 lines>...
repo_type=repo_type,
)
File "/tmp/.cache/uv/environments-v2/614a7b9ecb1bc306/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 393, in get_cached_module_file
modules_needed = check_imports(resolved_module_file)
File "/tmp/.cache/uv/environments-v2/614a7b9ecb1bc306/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 225, in check_imports
raise ImportError(
...<2 lines>...
)
ImportError: This modeling file requires the following packages that were not found in your environment: einops, fla. Run `pip install einops fla`
Traceback (most recent call last):
File "/tmp/inclusionAI_Ring-lite_0yCgc2s.py", line 13, in <module>
pipe = pipeline("text-generation", model="inclusionAI/Ring-lite", trust_remote_code=True)
File "/tmp/.cache/uv/environments-v2/aa0219f0434fef73/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/aa0219f0434fef73/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 121, in __init__
super().__init__(*args, **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/aa0219f0434fef73/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1043, in __init__
self.model.to(self.device)
~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/aa0219f0434fef73/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4341, in to
return super().to(*args, **kwargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/aa0219f0434fef73/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1369, in to
return self._apply(convert)
~~~~~~~~~~~^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/aa0219f0434fef73/lib/python3.13/site-packages/torch/nn/modules/module.py", line 928, in _apply
module._apply(fn)
~~~~~~~~~~~~~^^^^
File "/tmp/.cache/uv/environments-v2/aa0219f0434fef73/lib/python3.13/site-packages/torch/nn/modules/module.py", line 928, in _apply
module._apply(fn)
~~~~~~~~~~~~~^^^^
File "/tmp/.cache/uv/environments-v2/aa0219f0434fef73/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/aa0219f0434fef73/lib/python3.13/site-packages/torch/nn/modules/module.py", line 955, in _apply
param_applied = fn(param)
File "/tmp/.cache/uv/environments-v2/aa0219f0434fef73/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 14.69 MiB is free. Process 25495 has 22.28 GiB memory in use. Of the allocated memory 18.42 GiB is allocated by PyTorch, and 3.62 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)
Everything was good in inclusionAI_Ring-lite_1.txt
Traceback (most recent call last):
File "/tmp/inclusionAI_Ring-mini-2.0_03aNqWp.py", line 16, in <module>
pipe = pipeline("text-generation", model="inclusionAI/Ring-mini-2.0", trust_remote_code=True)
File "/tmp/.cache/uv/environments-v2/c55f2438beac7672/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1230, in pipeline
return pipeline_class(model=model, framework=framework, task=task, **kwargs)
File "/tmp/.cache/uv/environments-v2/c55f2438beac7672/lib/python3.13/site-packages/transformers/pipelines/text_generation.py", line 121, in __init__
super().__init__(*args, **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/c55f2438beac7672/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1044, in __init__
self.model.to(self.device)
~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/c55f2438beac7672/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4462, in to
return super().to(*args, **kwargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/c55f2438beac7672/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1369, in to
return self._apply(convert)
~~~~~~~~~~~^^^^^^^^^
File "/tmp/.cache/uv/environments-v2/c55f2438beac7672/lib/python3.13/site-packages/torch/nn/modules/module.py", line 928, in _apply
module._apply(fn)
~~~~~~~~~~~~~^^^^
File "/tmp/.cache/uv/environments-v2/c55f2438beac7672/lib/python3.13/site-packages/torch/nn/modules/module.py", line 928, in _apply
module._apply(fn)