How do you test whether an LLM should answer or abstain?
An LLM can look safer by refusing useful questions. Test the decision to answer separately from the correctness of the answer.
An LLM can look safer by refusing useful questions. Test the decision to answer separately from the correctness of the answer.
Skip the server: run vLLM offline on sharded, resumable jobs on interruptible GPUs. Cost math, a batch API vs self-host rule, and resume code.
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.
Pick Q4_K_M by default, Q5_K_M or Q6_K when memory allows, Q8_0 as a reference. Bits per weight, perplexity, 8B and 70B size math and a fit rule.
Production LLM deployment is a checklist: evals, latency targets, replica math, warm capacity, safe rollouts, alerts and cost per 1M tokens.
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.
Start with vLLM. Switch to TensorRT-LLM only when it is measurably faster on your model and traffic and the gain lets you turn off whole GPUs.
Two queries can agree on today's data and disagree tomorrow. Test the requested meaning with contrasting cases, explicit result rules and separate safety checks.
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.
Named open models that fit in 8, 16 and 24 GB of VRAM at real quantizations, how much context each leaves, and when to move up to a bigger GPU on Nodus.
The same request can arrive in different words. Test whether the decision survives the rewrite without rewarding a model for giving the same wrong answer.
Add weights (params x bytes) to the KV cache (2 x layers x KV heads x head size x bytes x tokens), then divide by 0.92. Worked examples and GPU sizes.
How LLM distillation works (soft labels, teacher outputs, on-policy, hidden states), what each method costs, and a rule for picking one.
vLLM is an open-source LLM serving engine. PagedAttention and continuous batching let it fit far more requests per GPU than a plain generate() loop.
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.
Neither engine is faster everywhere. SGLang leads on shared-prefix and structured workloads, vLLM on breadth. A decision rule and cost math.
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.
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.
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.
From about $300 for a 1B model to tens of millions for a frontier run. The GPU-hour formula, real published runs and worked costs at H100 list rates.