Lattice
Skip to content

Adapt open weights to my data

A fine-tuned model stack.

Fine-tuned model · 100,000 req/mo. At the default case — 100k requests a month, no further constraints — drawn from the 112 tools already in the index. Each pick is a tool whose own skip-when is stated, because a stack built on tools it does not know how to overcommit to is a guess. Describe your case to change it.

The picks

  • LoRA fine-tuning on a single GPU, with memory and time roughly halved.

    Watch out: You need a training stack you can audit line by line.

    Consider Megatron-LM instead when tensor and pipeline parallel pretraining at cluster scale

  • Near-GPU throughput from 4-bit weights, as a kernel inside another runtime.

    Watch out: You need a scheduler and a server as well as a kernel.

    Consider llama.cpp instead when the constraint is hardware, not throughput: no GPU, or an edge box

  • Open-source prompt management with a playground and versioning.

    Watch out: You need eval depth rather than prompt ergonomics.

    Consider DSPy instead when compiling prompts into optimised programs from labelled examples

  • OpenTelemetry-native evaluation you can run yourself.

    Watch out: You want a vendor support contract behind it.

    Consider Braintrust instead when making evaluation, rather than tracing, the primary workflow

The costs and the risks

Estimated cost
$40–$220
per month
A heuristic band from query volume, not a vendor quote.
Confidence
87%
Lower when constraints narrow the field, higher when the workload has a well-worn default.

Biggest risk at the default case: Fine-tuning teaches behaviour, not facts. If the answer changes monthly, it belongs in retrieval instead.

Rules of thumb

  • Fine-tuning teaches behaviour, not facts. If the answer changes monthly, it belongs in retrieval instead.
  • Benchmark at your concurrency, not at batch size one. A runtime that wins a single-stream demo can lose badly at fifty concurrent users.
  • Prompt changes without evals are guesses. Version prompts and measure before you ship a wording change.
  • Build the eval set before tuning anything. Every later decision in the stack is only as good as the measurement behind it.

Quick answers

What should you run for the Fine-tuned model stack?
Training: Unsloth. Inference: Marlin. Prompts: Agenta. Evals: Arize Phoenix. Fine-tuning teaches behaviour, not facts. If the answer changes monthly, it belongs in retrieval instead.
What should you use for training in the Fine-tuned model stack?
Unsloth: loRA fine-tuning on a single GPU, with memory and time roughly halved. Watch out: you need a training stack you can audit line by line. Consider Megatron-LM instead when tensor and pipeline parallel pretraining at cluster scale.
What should you use for inference in the Fine-tuned model stack?
Marlin: near-GPU throughput from 4-bit weights, as a kernel inside another runtime. Watch out: you need a scheduler and a server as well as a kernel. Consider llama.cpp instead when the constraint is hardware, not throughput: no GPU, or an edge box.
What should you use for prompts in the Fine-tuned model stack?
Agenta: open-source prompt management with a playground and versioning. Watch out: you need eval depth rather than prompt ergonomics. Consider DSPy instead when compiling prompts into optimised programs from labelled examples.
What should you use for evals in the Fine-tuned model stack?
Arize Phoenix: openTelemetry-native evaluation you can run yourself. Watch out: you want a vendor support contract behind it. Consider Braintrust instead when making evaluation, rather than tracing, the primary workflow.
What does the Fine-tuned model stack cost per month?
$40–$220 a month at the default case: a heuristic band from query volume, not a vendor quote.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.

A starting point, not a prescription. The recommendation at the default case is what the engine would tell a stranger with your workload; the recommendation at your case is what it tells you once it knows the constraints. The Stack Builder holds both — the builder link preselects this workload and starts with your volumes from here.