tierdocs

package
v0.209.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Render

func Render(root string) (map[string]string, error)

Render builds every tier page in memory. Exported so the staleness test can compare against the checked-in tree without running the binary.

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL