a-throughput-number-belongs-to-the-runtime-not-the-model

Solid

Use at the survey, study design and implementation stages when the task needs a pretrained model, solver or library you must download and run on the machine you were given, and the first configuration you try is too slow to cover the split in the time you have. Covers why the seconds-per-item you just measured is a property of the runtime, the workload and the machine as much as of the component, which field to change before demoting it, re-asking the component question after you fix the runtime, and checking that your fallback still has the property you picked the original for.

AI & Automation 805 stars 25 forks Updated 2 weeks ago NOASSERTION

Install

View on GitHub

Quality Score: 82/100

Stars 20%
97
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# You timed a configuration. Do not record it as a verdict on the component Early in a run you pick a component — a pretrained checkpoint, a solver, a library — load it the first way you find, run one job, and read a number. If the number is bad you write "too slow" and fall back. What you measured is not the component. It is a quadruple: > **component × runtime × workload × machine under this load** Exactly one of those four costs you capability when you change it, and it is the component. It is also the one that gets changed, because *this model is too slow* is a sentence and *the wheel I installed does no vectorised arithmetic on this CPU* is a diagnosis. ## The failure shape, which is not the one you expect The instructive version is not an agent that fails to diagnose. Here is one that diagnosed it correctly and lost the component anyway. It wanted a sparse mixture-of-experts checkpoint for a reason it wrote down: about 3B of its ~30B parameters are active per token, so a large model is affordable on a CPU. It fetched the first distribution format it found — a quantised file for a CPU *generation* server — and measured **78 tokens in 24 seconds**, roughly 20 GFLOP/s against the ~1163 GFLOP/s the same box reached with a plain torch fp32 matmul. Then it got the diagnosis exactly right, in one sentence: no bf16 instruction on this CPU, load average 13.96 on a shared 16-core box, and a generic wheel. It switched runtime, to torch. In the same minute it started a bac...

Details

Author
tangxiangru
Repository
tangxiangru/AutoR
Created
6 months ago
Last Updated
2 weeks ago
Language
Python
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

cost-the-rung-you-need-not-the-cheapest-one-in-the-family

Use at literature survey, hypothesis generation and study design of a task that hands you a training split and an unlabelled test split, scores predictions by a fixed error metric, and has published best numbers for that dataset and metric, when you are about to decide that the kind of model behind those numbers does not fit your clock. Covers which rung of the ladder is worth timing at all, replacing "hours to finish the reference schedule" with "epochs until this passes what I already have", and pricing the first member of another family before the Nth member of this one.

805 Updated 2 weeks ago
tangxiangru
AI & Automation Solid

count-your-hypotheses-not-your-arms

Use at study design, implementation, experimentation and analysis when the run has a hard wall clock, models that take hours to train, and more than one configuration you would like to try in parallel - several seeds, several widths, a warm restart, a variant of the variant. Covers reading the machine you actually have instead of the thread count you typed, measuring the contention tax rather than assuming it, the distinct-hypothesis count that decides whether a launch buys anything, computing `converged` from the log instead of declaring it, reporting a blend of arms the clock cut as the repair it is, and the idle-cores failure at the other end of the run.

805 Updated 2 weeks ago
tangxiangru
AI & Automation Solid

a-model-you-can-audit-is-not-a-model-that-scores

Use at study design and implementation when choosing between a method you can validate quickly and a stronger one you are not sure you can afford. Covers pricing the expensive method with a measurement instead of an impression, the go/no-go that has to be written before the clock is spent, and why the safe choice is only safe on the axes nobody is grading.

805 Updated 2 weeks ago
tangxiangru