Space error: Failed to retrieve error logs: SSE is not enabled

#24
by marcellodesales - opened

I used to run tests here and I see now an error

runtime error
Exit code: 1. Reason: 795, in _load_obj_from_str
    return getattr(importlib.import_module(module), obj_name)
  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.10/site-packages/torch/nested/_internal/nested_tensor.py", line 419, in <module>
    ).detach()
  File "/usr/local/lib/python3.10/site-packages/spaces/zero/torch/patching.py", line 195, in __torch_function__
    return transform_subclass(wrapper_tensor, lambda _, t: func(t))
  File "/usr/local/lib/python3.10/site-packages/torch/utils/_python_dispatch.py", line 260, in transform_subclass
    assert sub.shape == outer_size, \
AssertionError: Expected return value from <class 'torch.nested._internal.nested_tensor.NestedTensor'>__tensor_unflatten__() to have shape equal to (1, j0, 3), but got: (1, j1, 3)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/user/app/app.py", line 11, in <module>
    from src.pipeline import FluxPipeline
  File "/home/user/app/src/pipeline.py", line 6, in <module>
    from transformers import CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5TokenizerFast
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1852, in __getattr__
    value = getattr(module, name)
  File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1851, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1865, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback):
Expected return value from <class 'torch.nested._internal.nested_tensor.NestedTensor'>__tensor_unflatten__() to have shape equal to (1, j0, 3), but got: (1, j1, 3)
Container logs:

Failed to retrieve error logs: SSE is not enabled
marcellodesales changed discussion title from This Space has encountered a runtime error that prevents it from running. to Space error: Failed to retrieve error logs: SSE is not enabled

Sign up or log in to comment