alea-runs / logs /temp_cal.log
Akahsizrr's picture
Upload logs/temp_cal.log with huggingface_hub
abf85c5 verified
Raw History Blame Contribute Delete
2.17 kB
`torch_dtype` is deprecated! Use `dtype` instead!
/root/temp_cal.py:48: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
c=torch.load(ckpt,map_location="cpu")
choice: n=3237 base_brier=0.4570 tau=2.45 brier=0.4114
noul: n=1464 base_brier=0.0297 tau=0.95 brier=0.0297
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/torch/serialization.py", line 652, in save
_save(obj, opened_zipfile, pickle_module, pickle_protocol, _disable_byteorder_record)
File "/usr/local/lib/python3.11/dist-packages/torch/serialization.py", line 886, in _save
zip_file.write_record(name, storage, num_bytes)
RuntimeError: [enforce fail at inline_container.cc:778] . PytorchStreamWriter failed writing file data/393: file write failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/temp_cal.py", line 56, in <module>
torch.save(c,out); print("saved",out)
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/torch/serialization.py", line 651, in save
with _open_zipfile_writer(f) as opened_zipfile:
File "/usr/local/lib/python3.11/dist-packages/torch/serialization.py", line 499, in __exit__
self.file_like.write_end_of_file()
RuntimeError: [enforce fail at inline_container.cc:603] . unexpected pos 895905024 vs 895904916