From d30726e006b2708d4fbfead120985bc23c935541 Mon Sep 17 00:00:00 2001 From: ascorb12 Date: Mon, 24 Aug 2026 02:27:19 -0400 Subject: [PATCH] fix(download): include json files (esp. safetensors index) when fetching weights model.safetensors.index.json never downloaded because download_hf_weight only allow-listed *.safetensors. NVFP4's bank loader requires that file and fails with FileNotFoundError; other formats happened not to need it. Co-Authored-By: Claude Fable 5 --- python/freetoken/utils/hf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/freetoken/utils/hf.py b/python/freetoken/utils/hf.py index 5a6a31f2..ee403be2 100644 --- a/python/freetoken/utils/hf.py +++ b/python/freetoken/utils/hf.py @@ -210,7 +210,7 @@ def download_hf_weight(model_path: str) -> str: try: return snapshot_download( model_path, - allow_patterns=["*.safetensors"], + allow_patterns=["*.safetensors", "*.json"], tqdm_class=DisabledTqdm, ) except Exception as e: