runtime error

ror: Weights only load failed. Re-running `torch.load` with `weights_only` set to `False` will likely succeed, but it can result in arbitrary code execution.Do it only if you get the file from a trusted source. WeightsUnpickler error: Unsupported operand 149 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 542, 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 0xf4 in position 66: invalid continuation byte During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 21, in <module> model = AutoModelForCausalLM.from_pretrained("mehrdad-es/legalLLM-hf", torch_dtype=torch.float16) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 563, in from_pretrained return model_class.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3677, in from_pretrained ) = cls._load_pretrained_model( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4084, in _load_pretrained_model state_dict = load_state_dict(shard_file, is_quantized=is_quantized) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 554, in load_state_dict raise OSError( OSError: Unable to load weights from pytorch checkpoint file for '/home/user/.cache/huggingface/hub/models--mehrdad-es--legalLLM-hf/snapshots/543b10d058600500e094619a3636bfef6b5bfaa6/legalLLM.bin' at '/home/user/.cache/huggingface/hub/models--mehrdad-es--legalLLM-hf/snapshots/543b10d058600500e094619a3636bfef6b5bfaa6/legalLLM.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...