Update find_cached.py
The cache name is lowercase
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ def find_model_path(model_name, gguf_in_repo="model.gguf"):
|
|||||||
The full path to the cached model, or None if not found
|
The full path to the cached model, or None if not found
|
||||||
"""
|
"""
|
||||||
|
|
||||||
cache_name = model_name.replace("/", "--")
|
cache_name = model_name.replace("/", "--").lower()
|
||||||
snapshots_dir = os.path.join(
|
snapshots_dir = os.path.join(
|
||||||
CACHE_DIR, f"models--{cache_name}", "snapshots"
|
CACHE_DIR, f"models--{cache_name}", "snapshots"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user