Guldo

AI workloads

AI workloads: operation golf

Decode a small transformer with the fewest counted operations. A public, re-verifiable test of speedup claims on small transformer inference; counts operations, not time.

Opens soon · 11 January 2027, 00:00 UTC to 8 February 2027, 23:59 UTC

Status

StatusOpens (UTC)Closes (UTC)
Opens soon11 January 2027, 00:00 UTC8 February 2027, 23:59 UTC
Not open yet. How to submit an entry is announced, with the plan hash and the seed commitment, before it opens.

This status updates from the public ledger when your browser can reach it, and otherwise shows what was true when the page was built. The listed times are the plan: each round is opened by hand once its seed commitments are public, so a round may open a little after its listed time.

The task

A small transformer is generated from a seed: 2 layers, width 128, 4 attention heads, a vocabulary of 64 tokens, and greedy decoding. Your program rebuilds the whole model from the seed and decodes from it, through a function solve(seed, prompt_len, T) that returns the T generated token ids. The feed-forward matrices are products of thin factors, and a program can exploit that. A token is accepted if, given the prompt and your own earlier tokens, its logit is within a tiny tolerance of the model's best. Any exact or equivalent way of computing the same tokens is fine; a shortcut that changes the tokens is not.

The baseline is a key-value cache that multiplies the factors out into dense matrices once. To score, you must need fewer operations than that. A solution that needs about 2.4 times fewer is held back, and published after the close. Whether anyone finds more is what the leaderboard will show.

Scoring

An operation is counted, not timed

The score is how many arithmetic operations your program asked for, counted exactly and identically on every machine, so there is no clock to argue about and anyone can re-run any entry and get the same number. The fewest total operations over the whole ladder wins; the leaderboard also shows the ratio against the baseline at each size. Ties go to the earlier submission.

OperationCost
+ - * /, exp, sqrt, relu, negationthe size of the result
a @ b, a matrix product2 x the size of the result x the shared dimension
tp.einsum with two operands2 x the product of every index's extent
sum, max, mean, argmaxthe size of the input
tp.stream(seed, start, n), the random stream10 per element
tolistthe size of the tensor
reshape, transpose, take, concat, slicing, zeros, constantsfree: data movement
Every Python bytecode instruction in your own code1, so work cannot be hidden in plain-float loops

Rules for your program

  • One file, up to 200 KB, in a restricted subset of Python that allows math, itertools and tensorops only. No files, no numpy, no eval.
  • Official counts need Python 3.14.0 exactly, because bytecode counts depend on the interpreter.
  • At most 100 counted seconds per instance (one counted second is 10 million operations).
  • An entry is disqualified, with the reason published, if it breaks the subset or the size limit, returns a wrong token or no answer on any instance, goes over the budget, is not deterministic, or has an invalid handle.

Fairness

Every entry is run on a committed “ladder” of questions: the task, sizes, number of instances and budget are fixed in a plan whose hash is published before the competition opens. The seed stays secret until the competition closes, and its hash is published up front. After the close, the plan, the revealed seed, every entry and every saved ladder are published, and anyone on Python 3.14.0 can re-execute every record with opgolf.py verify. The only thing taken on trust is that the plan hash and the seed hash were published before the entries were run.

How to enter

The window is four weeks from opening, and it closes at a fixed UTC time announced with the plan hash. The round is open to anyone, with one handle per person or team. A handle can be a pseudonym, and nothing else about you is collected. You may resubmit as often as you like before the close: the latest file counts, and the earlier ones are kept. There is no prize.

Submitting means consent to publish your file, its hash and its score after the close. You keep the copyright in your code; do not submit what you cannot publish.

How to submit is not settled yet. The competition tool is not in the installable package today, so the way to check an entry and the channel to send it through will be announced with the plan before the round opens. Until then, you can read how the counting works in the AI section of the Domains page.

What this does and does not show

  • It measures the arithmetic a program asks for, not how fast it runs. A faster kernel, lower precision or a better memory layout is invisible to it. It can show that an idea needs N times fewer operations; it cannot show that the idea is faster on any machine.
  • The model is small, and the costs depend only on shapes, so they are the same for every instance of one size. A fresh seed tests that your tokens are correct, not the cost model.
  • Entries run on the evaluation machine, inside a restricted subset of Python and a memory watchdog. That contains honest mistakes and casual tricks. It is not a proof against a determined attack on the interpreter, so scoring runs as an unprivileged throwaway user.
  • The baseline was left with room to improve on purpose, and the held-back solution uses that room. So a gain over the baseline shows you found a better method; it does not show that no better method exists.