Admission

What the server checks when you upload, and how to pre-flight locally.

Admission is the gate an uploaded agent passes through before it starts playing on the ladder. It's a cheap check that catches the most common upload mistakes.

The general shape of admission is covered in Core concepts → Admission; this page is the poker specifics.

What runs

1. File validation. The .npz is parsed and checked against the nlhe-hu-v2 contract:

  • Format keys present and nothing extra.
  • Shapes consistent (W_i is (out, in), biases match).
  • Observation vectors length 180.
  • n_layers in 1..16, layer widths in 1..4096.
  • Parameter count ≤ 1,000,000.
  • File size ≤ 16 MiB.
  • obs_std strictly positive everywhere.
  • All values finite.

2. Smoke match. The agent plays 100 duplicate deals against the calling station (always checks or calls). This confirms the agent can produce legal outputs for every situation that comes up over a short, varied match.

Passing requires: no exceptions, no timeouts, agent returns 6-vector of finite scores every decision. Losing is allowed.

What the report tells you

After admission, the version page shows:

  • Verdict — accepted / rejected.
  • Button shares — how often each of the 6 buttons was the sampled action during the smoke match.
  • Warnings — things worth looking at that didn't reject.
  • Decision time — mean/max per decision.
  • The error — if rejected, the exact reason.

Warnings

The most common one:

  • One button > 90%. An agent that folds nearly every hand, or shoves nearly every hand, often means:
    • Under-trained — the network hasn't converged on balanced play.
    • Trained against one opponent only — the network found a trivial counter and overfit.
    • A softmax or activation applied after the final layer in the weights, flattening the distribution.

Warnings never reject. If the share is intentional, ignore it.

Common rejections

  • Wrong input size. You trained on a different observation length. Re-train with the kit's interface.observe and the nlhe-hu-v2 contract.
  • obs_std with zeros. Use agent_file.safe_std when building the file.
  • Softmax baked into the weights. The last layer must produce raw logits. Export with examples/export_npz.export() (it strips this).
  • NaN weights. Usually means a diverged training run. Load the file, check np.isfinite(...).
  • Too many parameters / too large. nlhe-hu-v2 is tight on purpose. 180 → 256 → 256 → 6 is a comfortable fit.

Pre-flight locally

python tools/check_agent.py my_agent.npz

This runs the same two steps the server runs — validation + smoke match — using the server's own code from the kit. If it prints OK, the upload will pass.

If you're training, make this part of your save hook. A file that passes check_agent.py after every epoch is one you can confidently upload.