Spaces:
Paused
Paused
Commit
·
c3fb598
1
Parent(s):
64d1cf6
Modifying memory allocation
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import gradio as gr
|
3 |
|
4 |
api_key = os.getenv("HF_TOKEN")
|
5 |
-
|
6 |
def start_training():
|
7 |
os.system("python quickstart.py --model_name_or_path Qwen/Qwen3-0.6B --train_data_dir trl-lib/Capybara --api_key HF_TOKEN" )
|
8 |
return "Evaluation completed!"
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
api_key = os.getenv("HF_TOKEN")
|
5 |
+
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
|
6 |
def start_training():
|
7 |
os.system("python quickstart.py --model_name_or_path Qwen/Qwen3-0.6B --train_data_dir trl-lib/Capybara --api_key HF_TOKEN" )
|
8 |
return "Evaluation completed!"
|