Branches
main holds the adapter of exploiter-seed1 at step 80. Each of the six runs from the example's README has its own branch with the step-80 adapter (adapter/), its Trackio logs (trackio/) and the evaluation of every checkpoint (eval.jsonl):
Table with columns: Branch, Setup, Exploitability at step 80 ↓| Branch | Setup | Exploitability at step 80 ↓ |
|---|
plain-seed42 | plain self-play | 0.417 |
plain-seed1 | plain self-play | 0.167 |
plain-seed2 | plain self-play | 0.358 |
exploiter-seed42 | 30% of groups against the exploiter | 0.250 |
exploiter-seed1 | 30% of groups against the exploiter | 0.167 |
exploiter-seed2 | 30% of groups against the exploiter | 0.253 |
Exploitability is how many chips per hand the best response to the strategy wins against it: 0 for a Nash equilibrium, 0.28 for the base model, 0.46 for a player that picks its moves at random. The base model fails to give a legal move in 57% of its replies, the trained adapters in almost none.
The adapter on main plays a pure strategy: it never bets and calls a bet only with the king. That is hard to exploit compared with the base model, but it is not an equilibrium, which mixes its moves. See the example's README for the full results and what they mean.
Training
80 steps, constant learning rate 1e-5, LoRA rank 32, 8 games per group, --micro-batches 8, 768 tokens per reply, thinking off, on two H200 (one for vLLM, one for the trainer), 65 to 75 minutes per run.
python examples/async_grpo_self_play/async_grpo_self_play.py --game kuhn_poker --model Qwen/Qwen3.5-4B \ --lora-r 32 --steps 80 --micro-batches 8 --save-steps 10 --lr 1e-5 --seed 1 \ --exploiter-frac 0.3 --exploiter-steps 5 --exploiter-samples 16 --report-to trackio
Use it
Serve the base model with the adapter and evaluate it with the example's evaluate.py:
vllm serve Qwen/Qwen3.5-4B --port 8000 --max-model-len 16384 --enable-lora --max-lora-rank 32 \ --lora-modules selfplay=trl-lib/Qwen3.5-4B-SelfPlay-Kuhnpython examples/async_grpo_self_play/evaluate.py --game kuhn_poker --model selfplay --games 256 --samples 64