DoRA vs LoRA: is DoRA worth using for fine-tuning?
DoRA beat LoRA by 1.0 to 4.4 points in its paper and adds few parameters, but trains and serves slower unmerged. When to try it, with the math.
DoRA beat LoRA by 1.0 to 4.4 points in its paper and adds few parameters, but trains and serves slower unmerged. When to try it, with the math.
About 16 bytes per parameter for full fine-tuning, 2 for LoRA and under 1 for QLoRA, plus activations. Sizes from 1B to 70B and the GPU each needs.
About 20 tokens per parameter to pretrain, billions to adapt a domain, and often under a million to fine-tune. Token math, word counts and costs.
Gradient checkpointing recomputes activations in the backward pass to save GPU memory. How it works, PyTorch and Hugging Face code, and when it pays.
Distill when a big model already does your task well; fine-tune when the right answers only exist in your labels. Cost math, break-even and a decision rule.
From about $2 for an 8B LoRA run to about $21 for a 70B QLoRA run, on 20M training tokens. One formula, six worked examples and the costs people forget.
Fine-tuning has not been debunked: studies show it is weak at adding facts and strong at behavior and narrow tasks. Evidence, a decision rule and cost math.
Ollama cannot train. Fine-tune on a GPU, merge the LoRA, convert to GGUF with llama.cpp, then ollama create with a Modelfile that matches the chat template.
A tested walkthrough of continued pretraining: pack domain text with EOS, mix in replay by tokens, re-warm the learning rate, and checkpoint a multi-day run.
Databricks alternatives for LLM training: one 8 x H100 day priced on six platforms, a break-even speed rule, and when Databricks AI Runtime still wins.
Pick the cheapest GPU whose memory fits the job. A workload table from 8B to 70B, cheapest fitting GPU at Nodus list prices, and when an H100 pays.
Gemma 4 LoRA and QLoRA by model size: VRAM, the GPU each size needs, chat-template and attention traps, and a recipe that survives restarts on Nodus.
A minimal TRL GRPOTrainer script, the Unsloth swap for one GPU, GPU sizing by model size, and checkpoint settings that survive a reclaimed GPU.
Fine-tuning an open model on hourly GPUs costs a few percent of OpenAI's per-token training price. Worked math, serving break-even and OpenAI shutdown dates.
Read what the OOM error says, then cut the biggest consumer: activations, optimizer state or fragmentation. An ordered checklist with GB math and code.
How LLM distillation works (soft labels, teacher outputs, on-policy, hidden states), what each method costs, and a rule for picking one.
Which Qwen3, Qwen3.5 and Qwen3.8 sizes fit LoRA or QLoRA on one GPU, the chat-template traps, and what each size costs per hour on Nodus.
LoRA matches full fine-tuning on most post-training jobs. Memory and cost math for 8B and 32B models, and when full fine-tuning is worth the GPUs.
Nodus vs Fireworks AI for fine-tuning: per-token and per-GPU-hour pricing, the same jobs priced on both, checkpoints, serving, and a decision rule.
Pick the right Llama, accept Meta's license, format your data in the Llama 3 chat template, then run a LoRA job on a cloud GPU with a cost cap.
Shape your data into prompt and answer pairs, hold out a test set, upload it, then fine-tune an open model with a cost cap. Steps, code and costs.
A coding agent can run a whole LoRA fine-tune on Nodus if a platform-enforced dollar cap bounds it and you keep the data, eval and shipping decisions.
A step-by-step Modal to Nodus migration for training jobs: what maps one to one, the code you change, checkpoints, spend caps and what to leave on Modal.
Runpod pricing for training: Pod GPU rates, storage that bills while stopped, Serverless vs Pod break-even, and a month of fine-tuning priced out.
Modal bills GPU, CPU and memory by the second, then applies region and plan rules. A full bill for two fine-tuning runs, and what changes it.
Yes. Most teams should fine-tune an open model for a few dollars. Continued pretraining runs about $1,200 and scratch about $19,000 for an 8B model.
About $1 per million training tokens in GPU time, so $20 to $45 for a 20M-token run. The FLOP math, five GPU setups priced and what doubles it.
Use RAG for facts that change or need citing, fine-tuning for format and behavior. Token math, a $1.54 fine-tune and when a dedicated GPU pays off.
Train a LoRA adapter on the bf16 Mistral 7B on one 48 GB GPU, with memory math, a TrainingJob manifest and the break-even rule for faster GPUs.
Use LoRA when the 16-bit model fits your GPU and QLoRA when it does not. Memory math, a cost break-even rule and the Nodus config for both.
Pick by the signal you have: preference pairs mean DPO, a checker you can run in code means GRPO, a learned reward model means PPO. Memory and cost math inside.
A generated answer can be correct and still add little training value. Audit the target, the available evidence and the decision it teaches before training.
High agreement can hide a judge that approves every answer. Calibrate the decision you need, not just the average score.
Minutes for a small fine-tune, days for a 7B model from scratch, months for a frontier run. The formula, real published runs and wall-clock tables.
Nodus, Modal, RunPod Serverless, Hugging Face, Together AI and Baseten compared with Replicate: H100 rates, a priced 10-hour fine-tune, and when to stay.
Pick the smallest GPU in Unsloth's VRAM table, save Trainer checkpoints where they survive a restart, and run the script as a capped job.
Nodus, Fireworks AI, Modal and RunPod compared with Together AI for fine-tuning, with one job priced per token and per GPU-hour and a decision rule.
Nodus, Together AI, Modal, RunPod and AWS SageMaker compared for fine-tuning open models, with choose-if rules, a priced 8 x H100 run and a break-even rule.
Use the lightest method that fits one H100, checkpoint every few minutes and pay only while the job runs. Memory math, a worked cost and a decision rule.
Continued pretraining teaches a model new domain text. Fine-tuning teaches it behavior from examples. A decision rule, cost math and Nodus configs.
AutoTrain is no longer maintained. Compare Nodus, Together AI, Modal, RunPod, Vertex AI and Axolotl or Unsloth for fine-tuning, with worked costs.
GRPO trains an LLM by scoring groups of sampled answers against each other, with no critic model. How it works, memory math for 8B, and how to run it.
A higher overall score can hide the loss of familiar capabilities. Use a paired retention test to decide whether a fine-tuned model is ready.
A random row split can put the same question in training and validation. Choose the holdout unit that matches the claim you want to test.
Yes: Claude Code, Codex or Cursor can launch a GPU training job if the platform prices it first and enforces a cap. The prompt, the manifest and what to check.
A 70B model needs 40 to 141 GB for weights plus a KV cache to serve, and 50 GB to 1.1 TB to fine-tune. The math, GPU setups and a script to check yours.
Nodus and Modal reached 91.74% accuracy with identical trained weights. We compare successful-run charges, retry costs and delivery time.