Quick Start
This is a debug-only end-to-end run of the agent-loop RL pipeline with the smallest possible setup: host deployment + 8 dummy samples + a dummy reward, on Qwen3-0.6B. It verifies that the full path works — data → agent loop → trajectory → reward → GRPO training — and nothing more. It produces no meaningful accuracy or training gains. For real training, use a real dataset, a real reward, and a larger model (seeAgent Reinforcement Learning). The runnable files live under examples/quick_start/.
Prerequisites
Uni-Agent installed (see Installation, “Single-Node Trial”)
A Qwen3-0.6B checkpoint available locally
Python ≥ 3.10
Components
Everything is already in the repo — no files to create:
File |
Purpose |
|---|---|
|
Dummy reward: 1.0 if the agent called |
|
Host-deployment agent loop (bash + submit tools) |
|
Generates 8 dummy training samples |
|
Ray runtime env (packages the repo, sets |
|
Single-node GRPO launcher ( |
The agent config uses tool_parser: hermes so it works with Qwen3’s default
JSON tool-call format (no chat-template change needed).
Generate data & train
cd ~/uni-agent
python examples/quick_start/generate_dummy_data.py --local-save-dir ~/data/swe_agent
ray start --head
export MODEL_PATH=$HOME/models/Qwen3-0.6B
export NGPUS_PER_NODE=1
bash examples/quick_start/train.sh
Verify
grep "STEP 1" ~/logs/agent/*/run.log # agent loop ran
grep "reward_score" ~/logs/agent/*/run.log # reward computed
Troubleshooting
Symptom |
Fix |
|---|---|
|
Check run.log for the real crash; increase |
|
|
|
Set |
|
|
Tool install permission denied |
Set |