Downloads · 30 days
8
20% of all-time downloads
Danau5tin/ai-trains-ai-trainer
ai-trains-ai-trainer is a text generation model from Danau5tin. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
An RL-trained agent whose job is to write RL training jobs for smaller models. This is the LoRA adapter from the ai-trains-ai project — the trainer agent that sits in the outer loop of two nested RL loops.
Downloads · 30 days
8
20% of all-time downloads
All-time downloads
41
Public
Repo size
562 MB
Likes
4
Public
Click a slice to open those files.
.safetensors562 MB · 100%
From the Hugging Face model README
An RL-trained agent whose job is to write RL training jobs for smaller models. This is the LoRA adapter from the ai-trains-ai project — the trainer agent that sits in the outer loop of two nested RL loops.
Derived from Qwen/Qwen3.6-35B-A3B (Apache-2.0). This repository contains only the LoRA adapter weights (rank 8, alpha 32); you need the base model to use it.
Given a task spec ("teach a small model to do X"), the agent works in a sandboxed workspace with file tools and writes a complete prime-rl training job: a verifiers environment + rubric, a dataset, and a hyperparameter config. Each job it submits is validated, then GRPO-trains a small Qwen (0.6B or 1.7B) on real GPUs; the trained model's improvement on a hidden eval flows back as the agent's reward.
It is designed to operate inside the project's harness (workspace layout, file tools, validation probe, task-spec format) — see the GitHub repo to run full episodes. Sampled bare, it is still Qwen3.6-35B-A3B plus a strong prior for writing verifiers environments and prime-rl configs.
This is the step-34 checkpoint of the 54-step pilot-7 arc (end of the pilot-7b leg) — the peak of held-out generalisation:
| Base model | Qwen/Qwen3.6-35B-A3B |
| Method | LoRA (rank 8, alpha 32) + importance-sampling GRPO, async off-policy |
| Stack | Tinker + tinker-cookbook |
| Steps | 34 outer-loop steps (pilot-7 → pilot-7b, warm-started) |
| Reward | validation efficiency + job quality (absolute post-training score + uplift over the best untrained baseline) + a small train-speed tie-breaker |
| Sampling during training | temperature 1.0, Qwen3.5 renderer / chat template |
Full write-ups — including the pilots that failed — are in the repo's retros.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3.6-35B-A3B", torch_dtype="auto", device_map="auto"
)
model = PeftModel.from_pretrained(base, "Danau5tin/ai-trains-ai-trainer")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3.6-35B-A3B")
Or serve with vLLM LoRA support (--enable-lora --lora-modules trainer=<path>). For real episodes, drive it through the harness in the GitHub repo.
evals/), so post-release comparisons of new models against this adapter on those files are contaminated by definition.The adapter weights are released under Apache-2.0 (matching the base model). The harness code in the GitHub repo is MIT.