Documentation
¶
Overview ¶
Package tierdocs renders docs/tiers/ from setup/templates/profiles.json.
A hardware tier is the single most load-bearing fact about an install — it sets the served window, the KV type, the backend template, which model stays resident and what media the box can generate — and until now it existed only as a JSON blob inside the installer. Anyone who downloaded the repo had no page to read for their own machine, which is a large part of why collaborators' installs drifted.
The pages are GENERATED so they cannot drift from the profile table they describe: TestTierDocsAreCurrent regenerates in memory and fails if the checked-in tree differs. Edit profiles.json (or this generator), then `go generate ./...`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Profile ¶
type Profile struct {
CtxSize int `json:"ctx_size"`
LongCtxSize int `json:"long_ctx_size"`
KVType string `json:"kv_type"`
AgentCtxTokens int `json:"agent_ctx_tokens"`
ResidentTier string `json:"resident_tier"`
Include26B bool `json:"include_26b"`
MoE26B string `json:"moe_26b"`
FlashAttn string `json:"flash_attn"`
Backend string `json:"backend"`
DualResident bool `json:"dual_resident"`
Notes string `json:"notes"`
// AgentBudgetPolicy is the tier-level marker "loop-default-chosen" (register D-24): the tier keeps
// the loop default completion budget on purpose, a figure chosen and not measured. It is not a
// config_seed key and never reaches a node's config.json.
AgentBudgetPolicy string `json:"agent_budget_policy"`
ConfigSeed map[string]any `json:"config_seed"`
// ConfigSeedMidHigh is the RAM-gated overlay. It was absent here, so a tier whose
// ONLY media binding is RAM-gated (ampere-8, blackwell-8 — one of them the 8 GB
// reference laptop) had its page claim it "ships no media configuration" while the
// installer bound an image seat on any mid/high-RAM box.
ConfigSeedMidHigh map[string]any `json:"config_seed_ram_mid_high"`
// ConfigSeedLowUp is the RAM-gated overlay for the 32 GB class and up (low, mid, high).
// Only its NON-media keys are rendered (the Media section's prose is written around the
// mid/high overlay), which TestLowUpOverlayHoldsNoMediaKeys enforces: a media key added
// here must extend the Media section first.
ConfigSeedLowUp map[string]any `json:"config_seed_ram_low_up"`
// MediaSeats are the ALIAS-backed media capabilities (vision / STT) the tier
// serves. They are a separate axis from ConfigSeed — seats become llama-swap
// models, seed keys become spawn-per-job bindings — and a page that showed only
// the seed would understate what the tier delivers.
MediaSeats []mediaseat.Seat `json:"media_seats"`
VLLMSeat *vllmseat.Spec `json:"vllm_seat"`
// ExtraVLLMSeats are the further vLLM seats served beside VLLMSeat on the same card
// (ADR 0048 Amendment 2): a tier page that showed only the lane seat would hide a seat
// and the layer it backs.
ExtraVLLMSeats []vllmseat.Spec `json:"extra_vllm_seats"`
// Composes and Layers are the composite declaration (ADR 0052): the tiers
// this one is a COMPLETE instance of, and the device layers it routes work
// to. Absent on every ordinary tier, whose page is unchanged.
Composes []string `json:"composes"`
Layers []config.LayerSpec `json:"layers"`
}
Profile mirrors the fields setup/templates/profiles.json defines. Unknown keys A field added to the tier table surfaces here only once it is added to this struct and rendered below — `Extra json.RawMessage` used to claim otherwise and was never populated or read (removed 0.120.0).