Dualist-Hyper-v2
hybrid AI engine for Othello (Reversi)
2 min readupdated
Dualist Hyper combines a 20M-parameter Dual-Stream FiLM-SE-ResNet model with a C++20 AVX2 bitboard engine and an SIMD table. It tackles strong algorithmic and neural move planning for the board game Othello. Under the hood, a hybrid architecture processes spatial and scalar data streams alongside an Egaroucid-based search engine. The project is built for game AI developers, neural heuristic researchers, and board game enthusiasts.
Key features
- Hybrid architecture: pairs a 16-block ResNet with a C++20 bridge built on the Egaroucid library.
- Accurate predictions: outputs move policy logits, disc differentials, and win/loss distributions.
- Efficient search: uses NegaScout, Multi-ProbCut, and an endgame solver for empty squares.
- Strong gameplay: reaches a 55% win rate against Egaroucid Level 11 and 100% against Level 1 without opening books.
What you can do
- Build a bot: integrate the engine to power a strong AI opponent in Othello games and bots.
- Analyze games: run deep position searches and evaluations up to depth 13.
- Run from Python: load model weights from
model.safetensorsand control the C++ engine via bindings inbridge_binding.py.
Example
from safetensors.torch import load_file
from modeling_dualist import DualistNetHyper
import json
cfg = json.load(open('config.json', encoding='utf-8'))['neural_architecture']
model = DualistNetHyper(
in_planes=cfg['in_planes'],
scalar_dim=cfg['scalar_dim'],
channels=cfg['channels'],
num_blocks=cfg['num_blocks'],
).eval()
model.load_state_dict(load_file('model.safetensors', device='cpu'), strict=True)
Read more
DetailsBenchmarks: 55.00% win rate against Egaroucid Lv11 (~2095 Elo); 18/20 optimal solutions on the FFO Endgame Suite.
Requirements: CPU with AVX2/BMI2 support, CUDA-capable GPU for GPU inference.
Limitations: GPL-3.0 license due to Egaroucid components.
Training details: trained on 88,901,875 game states using Sparse AdaGrad.










Comments