---
title: "Factory · Techtree · Docs"
description: "The steps before a first run on Prime Intellect's Model Factory, and where Techtree helps."
canonical: "https://staging.regents.sh/docs/techtree/factory"
---
# Factory

The steps before a first run on Prime Intellect's Model Factory, and where Techtree helps.

Own your agent intelligence instead of renting slow, expensive frontier reasoning calls on the workflows your business repeats every day.

Prime Intellect's Model Factory gives companies the GPU infrastructure and control plane frontier labs run: train a custom open-weight model on your tasks, deploy it, and use production failures to train the next version. **Techtree is the applied uplift and verification team built natively on Prime Intellect's open stack (`Verifiers`, `Harbor`, and `prime-rl`)** — so you get non-leaky evals, hack-free Docker environments, model-tuned Skills, and proven 3B–14B open-weight specialists fast, with **100% artifact ownership and zero vendor lock-in**. Techtree is independent of Prime Intellect.

## 1. Qualify first (Gate 0)

Owning a model pays when one workflow repeats at volume, has clear pass/fail criteria, and hurts today in API cost, latency, or control. Before any training, we lock a blind held-out test and check whether a cheaper existing model, Thinking toggle, or model-tuned Skill already hits your bar. If that gets you there, we say so and stop. Techtree: [Skills](https://staging.regents.sh/techtree/services/skills) and the Gate 0 qualification step of [Models](https://staging.regents.sh/techtree/services/models).

## 2. Build a test you can trust

Single-pass evals ship noise (we measured 14.1 percentage-point swings on the exact same prompt and 34.2-point 14B model ranking reversals across tasks). Write and review the test before changing anything: set aside held-out cases the optimization never sees, validate that the scorer passes known-good work and rejects plausible mistakes, and score across multiple repeats. That `Verifiers` suite becomes your permanent release gate. Techtree: [Evals](https://staging.regents.sh/techtree/services/evals).

## 3. Verify sealed tasks

Agentic evaluation and RL need resettable environments with honest rewards. Static task checks alone missed 42 of 43 broken tasks in our stress test — including `nop = 1.0` reward hacks. We package tasks as `Verifiers` or `Harbor` environments and verify every single task inside sealed offline Docker (`network_mode=none`) so `oracle` passes (`1.0`), empty or wrong attempts fail (`0.0`), and zero reward hacks slip through. Techtree: [Environments](https://staging.regents.sh/techtree/services/environments).

## 4. Baseline

Measure your current production setup and the candidate open model on the exact same held-out test across multiple repeats. The gap between them — in accuracy, latency, and cost per accepted outcome — sets the target before any GPU spend starts.

## 5. Train with `prime-rl`

Start with LoRA supervised fine-tuning on accepted examples (or zero-leakage frontier synthetic distillation when examples are sparse), then add verifiable-reward single-turn or multi-turn RL once scoring is verified. Agree a hard compute cap upfront.

In our [16,126-trial four-lane proof](https://staging.regents.sh/techtree/blog/uplift-factory-four-lanes-proof) (9 live `prime-rl v0.11.0` runs), frontier-distilled 4B specialists beat 8× larger `Qwen3-32B-AWQ (Thinking)` on two benchmarks (`98.4%` vs `97.4%` and `82.5%` vs `78.1%`) with zero Skill prompt, `12×` fewer tokens, and `23×` lower latency, while pure single-turn GRPO RL with zero gold labels lifted held-out accuracy `+21.9 pp` (`p = 1.22e-4`).

In our follow-up **Campaign 4 GPU proofs** on single GPUs:
- **14B scale-up on one 22.5 GiB L4 (`Qwen/Qwen3-14B`, `no_skill`):** hit **`91.23%`** (`104/114`, `p = 9.04e-27` vs Base `+Skill`, `+13.1 pp` above `Qwen3-32B-AWQ Thinking`, `11.1×` faster, `28.7×` fewer prompt tokens; `94.74%` greedy) on `dependabot`, and **`76.58%`** (`85/111`, `+18.92 pp` vs Base `no_skill`, `p = 3.04e-05`, `+10.8 pp` over 4B SFT; `81.08%` greedy matching Base `+Skill` at `10.8×` fewer prompt tokens) on `react-best-practices`.
- **Multi-turn tool-using coding/ops RL (`Qwen/Qwen3-4B`, `multi-turn-ops-v1`, verified `nop = 0/72`, `gold = 72/72`):** native `prime-rl v0.11.0` IPO + Dr. GRPO + `max_staleness = 1` lifted 72 unseen 10-turn episodes **`7.5×`** from **`2.78%` → `20.83%`** (`+18.05 pp`, paired CMH `p = 2.97e-04`, `-18.3%` completion tokens; `rate_limiter` `0/12 → 12/12 = 100%`) in 7.5 minutes on a single G4 GPU.

Techtree: [Models](https://staging.regents.sh/techtree/services/models).

## 6. Deploy anywhere (zero lock-in)

You keep the PEFT LoRA weights (`uplift-package/2` with SHA-256 verification and explicit `inference_prompt_mode` so your serving prompt always matches training), the bundled `serve/` deploy pack (`vllm.sh`, `merge_lora.py`, `prime_deploy.toml`, and `check_prompt_mode.py`), the `prime-rl` `.toml` recipe, and the 1-command rerun test. Serve Monday morning on your own vLLM / Modal / Ollama stack, or deploy directly onto Prime Intellect's Inference / Model Factory endpoints. We report two numbers separately: **Training** (small model before vs. after) and **Replacement** (full running cost per accepted outcome vs. what you run today).

## 7. Compound in production

Once in service, log real failures and edge cases. Turn reviewed failures into new `Verifiers` or `Harbor` tasks, rerun the exact same release gate, and ship the next Skill or adapter version — compounding your domain edge every cycle.

## 8. Scale to dedicated clusters

When training becomes routine or you scale past single-GPU 3B–14B specialists to 32B+ or multi-GPU RL clusters, Prime Intellect's hosted training and dedicated Model Factory deployments run the exact same `Verifiers` environments and `prime-rl` recipes we hand over — zero rewrite required.

## Start

Bring one repeated workflow and 20–100 sanitized examples of good and bad work. [Book a call or contact us](https://staging.regents.sh/techtree/app#begin) · [Read the 16,126-trial proof](https://staging.regents.sh/techtree/blog/uplift-factory-four-lanes-proof) · [Model Factory](https://www.primeintellect.ai/model-factory) · [Hosted training](https://docs.primeintellect.ai/hosted-training/getting-started)