runtime error

Exit code: 1. Reason: 237, in _untyped_storage_new_register if (device := kwargs.get('device')) is not None and device.type == 'cuda': AttributeError: 'str' object has no attribute 'type' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 600, in load_state_dict if f.read(7) == "version": File "/usr/local/lib/python3.10/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 128: invalid start byte During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 82, in <module> model = AutoModelForCausalLM.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 564, in from_pretrained return model_class.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 273, in _wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4444, in from_pretrained ) = cls._load_pretrained_model( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4993, in _load_pretrained_model state_dict = load_state_dict( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 612, in load_state_dict raise OSError( OSError: Unable to load weights from pytorch checkpoint file for '/home/user/.cache/huggingface/hub/models--baconnier--Napoleon_4B_V0.0/snapshots/030e4b55b0242280af99b5da67234984e3959dc9/pytorch_model-00001-of-00002.bin' at '/home/user/.cache/huggingface/hub/models--baconnier--Napoleon_4B_V0.0/snapshots/030e4b55b0242280af99b5da67234984e3959dc9/pytorch_model-00001-of-00002.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

Container logs:

Fetching error logs...