Downloads · 30 days
0
htdy7703/safetensors-handle-api-local-read-poc
safetensors-handle-api-local-read-poc is a machine learning model from htdy7703. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This PoC demonstrates that the shipped importable safeopenhandle(...) API in safetensors 0.8.0 ignores the supplied file-like object's bytes and reopens its .name path instead.
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 50%
From the Hugging Face model README
This PoC demonstrates that the shipped importable _safe_open_handle(...) API in safetensors 0.8.0 ignores the supplied file-like object's bytes and reopens its .name path instead.
What this PoC shows:
safetensors._safe_open_handle(...).safetensors file named by .nameWhat this PoC does not show:
safe_open(path, ...) APIVerified runtime:
safetensors 0.8.0numpy 2.5.1