Update app.py (#91)
Browse files- Update app.py (5524dcdfffbd55b86a98ec207cee49820bf52944)
app.py
CHANGED
@@ -51,7 +51,7 @@ def split_upload_model(model_path, repo_id, oauth_token: gr.OAuthToken | None, s
|
|
51 |
if oauth_token.token is None:
|
52 |
raise ValueError("You have to be logged in.")
|
53 |
|
54 |
-
split_cmd = f"llama.cpp/gguf-split --split --split-max-tensors {split_max_tensors}"
|
55 |
if split_max_size:
|
56 |
split_cmd += f" --split-max-size {split_max_size}"
|
57 |
split_cmd += f" {model_path} {model_path.split('.')[0]}"
|
|
|
51 |
if oauth_token.token is None:
|
52 |
raise ValueError("You have to be logged in.")
|
53 |
|
54 |
+
split_cmd = f"llama.cpp/llama-gguf-split --split --split-max-tensors {split_max_tensors}"
|
55 |
if split_max_size:
|
56 |
split_cmd += f" --split-max-size {split_max_size}"
|
57 |
split_cmd += f" {model_path} {model_path.split('.')[0]}"
|