Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
27c12cb
1
Parent(s):
c286df5
update instance (#19)
Browse files- update instance (30a744f84e9149b5c5ebff858e17621825e73b23)
Co-authored-by: Abhishek Thakur <[email protected]>
app.py
CHANGED
@@ -333,7 +333,7 @@ git+https://github.com/huggingface/datasets.git@3f149204a2a5948287adcade5e90707a
|
|
333 |
# The subprocess call for autotrain spacerunner
|
334 |
api = HfApi(token=token)
|
335 |
username = api.whoami()["name"]
|
336 |
-
subprocess_command = ["autotrain", "spacerunner", "--project-name", slugged_lora_name, "--script-path", spacerunner_folder, "--username", username, "--token", token, "--backend", "spaces-
|
337 |
outcome = subprocess.run(subprocess_command)
|
338 |
if(outcome.returncode == 0):
|
339 |
return f"""# Your training has started.
|
|
|
333 |
# The subprocess call for autotrain spacerunner
|
334 |
api = HfApi(token=token)
|
335 |
username = api.whoami()["name"]
|
336 |
+
subprocess_command = ["autotrain", "spacerunner", "--project-name", slugged_lora_name, "--script-path", spacerunner_folder, "--username", username, "--token", token, "--backend", "spaces-a10g-small", "--env",f"HF_TOKEN={token};HF_HUB_ENABLE_HF_TRANSFER=1", "--args", spacerunner_args]
|
337 |
outcome = subprocess.run(subprocess_command)
|
338 |
if(outcome.returncode == 0):
|
339 |
return f"""# Your training has started.
|