Merge pull request #1 from aparmar2000/patch-1
automatically convert path to 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
|
||||
"""
|
||||
|
||||
cache_name = model_name.replace("/", "--")
|
||||
cache_name = model_name.replace("/", "--").lower()
|
||||
snapshots_dir = os.path.join(
|
||||
CACHE_DIR, f"models--{cache_name}", "snapshots"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user