Spaces:
Paused
Paused
File size: 456 Bytes
d2b58f8 c3fb598 d2b58f8 6999e27 d2b58f8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
import gradio as gr
api_key = os.getenv("HF_TOKEN")
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
def start_training():
os.system("python quickstart.py --model_name_or_path Qwen/Qwen3-0.6B --train_data_dir trl-lib/Capybara --api_key HF_TOKEN" )
return "Evaluation completed!"
iface = gr.Interface(
fn=start_training,
inputs=[],
outputs="text",
live=True,
allow_flagging='never'
)
iface.launch() |