Spaces:
Runtime error
Runtime error
A10G --> A100
Browse files
app.py
CHANGED
@@ -345,7 +345,7 @@ git+https://github.com/huggingface/datasets.git@3f149204a2a5948287adcade5e90707a
|
|
345 |
# The subprocess call for autotrain spacerunner
|
346 |
api = HfApi(token=token)
|
347 |
username = api.whoami()["name"]
|
348 |
-
subprocess_command = ["autotrain", "spacerunner", "--project-name", slugged_lora_name, "--script-path", spacerunner_folder, "--username", username, "--token", token, "--backend", "spaces-
|
349 |
outcome = subprocess.run(subprocess_command)
|
350 |
if(outcome.returncode == 0):
|
351 |
return f"""# Your training has started.
|
@@ -363,7 +363,7 @@ def calculate_price(iterations, with_prior_preservation):
|
|
363 |
total_seconds = (iterations * seconds_per_iteration) + 210
|
364 |
cost_per_second = 1.05/60/60
|
365 |
cost = round(cost_per_second * total_seconds, 2)
|
366 |
-
return f'''To train this LoRA, we will duplicate the space and hook an
|
367 |
## Estimated to cost <b>< US$ {str(cost)}</b> for {round(int(total_seconds)/60, 2)} minutes with your current train settings <small>({int(iterations)} iterations at {seconds_per_iteration}s/it)</small>
|
368 |
#### ↓ to continue, grab you <b>write</b> token [here](https://huggingface.co/settings/tokens) and enter it below ↓'''
|
369 |
|
|
|
345 |
# The subprocess call for autotrain spacerunner
|
346 |
api = HfApi(token=token)
|
347 |
username = api.whoami()["name"]
|
348 |
+
subprocess_command = ["autotrain", "spacerunner", "--project-name", slugged_lora_name, "--script-path", spacerunner_folder, "--username", username, "--token", token, "--backend", "spaces-a100-large", "--env",f"HF_TOKEN={token};HF_HUB_ENABLE_HF_TRANSFER=1", "--args", spacerunner_args]
|
349 |
outcome = subprocess.run(subprocess_command)
|
350 |
if(outcome.returncode == 0):
|
351 |
return f"""# Your training has started.
|
|
|
363 |
total_seconds = (iterations * seconds_per_iteration) + 210
|
364 |
cost_per_second = 1.05/60/60
|
365 |
cost = round(cost_per_second * total_seconds, 2)
|
366 |
+
return f'''To train this LoRA, we will duplicate the space and hook an A100 GPU under the hood.
|
367 |
## Estimated to cost <b>< US$ {str(cost)}</b> for {round(int(total_seconds)/60, 2)} minutes with your current train settings <small>({int(iterations)} iterations at {seconds_per_iteration}s/it)</small>
|
368 |
#### ↓ to continue, grab you <b>write</b> token [here](https://huggingface.co/settings/tokens) and enter it below ↓'''
|
369 |
|