CoolFace
Modelpublic

anakin87/LFM2-2.6B-mr-tictactoe

sourceHugging Faceotherupdated 6mo agoView on Hugging Face
1likes15downloads
Model Card

LFM2-2.6B-mr-tictactoe

A 2.6B parameter model that plays near-perfect Tic Tac Toe, outperforming openai/gpt-5-mini on this task.

Built from LiquidAI/LFM2-2.6B through a full training pipeline: Supervised Fine-Tuning on synthetic data, followed by two rounds of Reinforcement Learning (CISPO) in a verifiable Tic Tac Toe environment.

This model was developed as part of ๐ŸŽ“ [LLM RL Environments Lil Course](https://github.com/anakin87/llm-rl-environments-lil-course), a hands-on course on building RL environments for Language Models, where models learn from rewards, not examples. It walks through the full process of turning a small open model into a specialist that outperforms a large proprietary one on a specific task (Tic Tac Toe).

๐Ÿค—๐Ÿ•น๏ธ [Play against Mr. Tic Tac Toe](https://huggingface.co/spaces/anakin87/LFM2-2.6B-mr-tictactoe)

Tic Tac Toe performance

Training pipeline

StepModelMethod
1. SFT warm-upanakin87/LFM2-2.6B-ttt-sftSFT on 174 synthetic games from gpt-5-mini
2. RL round 1anakin87/LFM2-2.6B-ttt-rl + mergedCISPO, 600 steps, opponents at 20-70% random
3. RL round 2anakin87/LFM2-2.6B-ttt-rl-2 + this modelCISPO, 400 steps, opponents at 0-25% random, temp 1.25

Evaluation

100 games per setting. The model plays as X (first mover) against a Minimax-based opponent.

**Model vs random opponent****% Wins****% Draws****% Losses****% Follows format****% Games w invalid moves**
openai/gpt-5-mini90911000
LiquidAI/LFM2-2.6B40114927.840
anakin87/LFM2-2.6B-mr-tictactoe901001000
Model vs optimal opponent% Wins% Draws% Losses% Follows format% Games w invalid moves
openai/gpt-5-mini076241000
LiquidAI/LFM2-2.6B0118924.743
anakin87/LFM2-2.6B-mr-tictactoe097399.80

Training details

  • โ€”Algorithm: CISPO (two rounds), using Verifiers RLTrainer
  • โ€”Environment: anakin87/tictactoe (Verifiers environment)
  • โ€”LoRA rank: 8
  • โ€”Hardware: 2x NVIDIA RTX Pro 6000 (round 1), 2x NVIDIA H200 (round 2)
  • โ€”Training time: ~8 hours per round
  • โ€”W&B project: LFM2-2.6B Tic Tac Toe