Spaces:
Running
on
Zero
Running
on
Zero
update instance
Browse files
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.
|