ONNX Model Zoo

GambitFlow/Nexus-Core

By GambitFlow · ↓ 0 · ♥ 0 · Updated 2026-01-08

What's in this repo

This page lists the files in GambitFlow/Nexus-Core, including nexus-core.onnx, resnet_pro_v2.onnx.

  • 2 ONNX models (.onnx files)
  • 4 files, including 2 .onnx, 1 .md
  • Last updated 2026-01-08

ONNX files

File Size Download
nexus-core.onnx — Download
resnet_pro_v2.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

♟️ GambitFlow Nexus-core

GambitFlow Banner

License: GPL v3 Architecture Parameters Format Type

Live Engine Demo • Dataset Card

📖 Model Overview

Nexus-core (Core Edition) is the primary engine of the GambitFlow project. It is a deep Residual Neural Network designed to evaluate chess positions with high-level human-like intuition. Unlike traditional engines that use manual "if-then" logic, Nexus-core learned chess strategy by analyzing over 5 million positions played by elite grandmaster-level players.

It serves as the static evaluation function (the "Brain") for the GambitFlow search algorithm, providing a numeric advantage score for any given board state.

🧠 Technical Architecture

The model is built using a Residual Neural Network (ResNet) architecture, inspired by the AlphaZero research but highly optimized for efficient inference in web browsers and low-power devices.

Specification Table

Component Specification Description
Input Layer (1, 12, 8, 8) 12-channel bitboard representation (6 for White, 6 for Black pieces).
Convolutional Stem 128 Filters, 3x3 Initial spatial feature extraction from the 8x8 grid.
Residual Tower 10 Blocks A stack of 10 ResBlocks using Skip-Connections to prevent gradient vanishing and capture deep strategy.
Value Head Dense / Tanh Compresses 8192 high-level features into a single scalar evaluation.
Output Range [-1.0, 1.0] Positive favors White, negative favors Black.
Params ~3.5 Million Balanced for high depth-to-speed ratio.

📊 Training Methodology

Nexus-core was trained using a professional-grade pipeline designed for robustness and strategic depth.

1. The Elite Dataset

We utilized the gambitflow-elite-data corpus:

  • Filtering: Only games where both players had ELO > 2000.
  • Stage: Focused on the first 20 moves to master opening and middlegame transition.
  • Volume: ~5,000,000 unique positions.

2. Training Protocol

  • Mixed Precision: Trained using torch.amp (FP16) for 2x faster convergence and memory efficiency.
  • Optimizer: AdamW with a weight decay of 1e-4 to prevent overfitting.
  • Loss: MSE (Mean Squared Error) between the predicted value and the actual game result.

3. ONNX Optimization

  • Exported with Opset 17.
  • Constant Folding and Graph Optimization enabled to reduce latency during real-time play.

💻 Implementation (JavaScript)

Designed for seamless integration with onnxruntime-web.

import * as ort from 'onnxruntime-web';

// 1. Load the Brain
const session = await ort.InferenceSession.create('./chess_model_v2.onnx');

// 2. Prepare 12x8x8 Tensor (Encoded from FEN)
const inputTensor = new ort.Tensor('float32', boardData, [1, 12, 8, 8]);

// 3. Get Evaluation
const results = await session.run({ board_state: inputTensor });
const score = results.evaluation.data[0];

console.log("Nexus-core Evaluation:", score);

🛡️ License & Ethics

This model is shared under the GPL v3 (GNU General Public License Version 3) license.


Developed by Rafsan @ GambitFlow

Model info

onnx chess deep-learning pytorch resnet strategy game-ai gambitflow Chess engine reinforcement-learning en dataset:GambitFlow/Elite-Data
↓ 0 ♥ 0

Created: 2025-12-10

Updated: 2026-01-08

View on Hugging Face

Files (4)

.gitattributes
README.md
nexus-core.onnx ONNX
resnet_pro_v2.onnx ONNX

Related models