Skip to content

Overview

Turion fine-tunes a small open model on your data, serves it behind an OpenAI-compatible API that scales to zero, and runs agents on it. The turion CLI is the main interface. Everything it does is also available from the Python SDK and the REST API.

  • Training. LoRA, QLoRA or full fine-tunes of a catalog base (turion bases) or a public Hugging Face model. Each job scores the base and the tuned model on your eval cases, so you see whether the fine-tune helped before you serve it.
  • Serving. turion deploy puts the result behind POST /v1/chat/completions. It scales to zero by default, and the OpenAI SDKs work against it with a different base_url.
  • One gateway. The same endpoint reaches your fine-tunes and frontier models through your own provider keys (openai/…, anthropic/…). Every call leaves a trace you can read back.
  • Agents. Start from the template, give it instructions and skills, deploy it, and distil its traces into a small fine-tune. See Agents below.
  1. Install the CLI (Python 3.11+):

    Terminal window
    uv tool install turion
    # or: pipx install turion
  2. Log in with a tk_ key:

    Terminal window
    turion login
  3. Train a base model on a JSONL file of chat examples. The file is validated on your machine and uploaded, a tenth of it is held out as the eval set, and the command follows the job and prints the eval result:

    Terminal window
    turion train --base gemma-4-e4b --data tickets.jsonl \
    --eval-split 0.1 --name tickets-v1
  4. Deploy the fine-tune. It scales to zero when idle:

    Terminal window
    turion deploy acme/tickets-v1
  5. Chat with it from the CLI, or from any OpenAI client:

    Terminal window
    turion chat acme/tickets-v1 "I was charged twice for March"

The Quickstart runs this end to end with a small example dataset you can download, in about half an hour.

An agent calls the gateway as agent:<name>, so its calls are traced. A new one starts from the template: instructions and skills that Turion runs for you, on Turion’s shared model. Once there is enough traffic, the traces become a dataset for a small fine-tune, and you choose what share of the agent’s calls goes to it:

Terminal window
turion agent new my-agent && cd my-agent
# write what it does in instructions.md and skills/
turion agent deploy
turion agent run my-agent -i "What can you help me with?"
turion agent distil my-agent --base gemma-4-e4b # after ~1,000 usable traces

Agents covers the template, agents with their own code and deploy; Evaluate, distil & route covers the rest.

Turion also runs Cog models through the predictions API: Civitai checkpoints, Replicate imports and your own Cog projects. Start with Deploy a Cog model.