Downloads · 30 days
0
certen/Sudoku-Solver-Pro-9x9
Sudoku-Solver-Pro-9x9 is a machine learning model from certen. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for coreml. The card lists the license as mit.
A powerful transformer-based Sudoku solver designed for high-performance inference on Apple Silicon (via Core ML) and PyTorch. This is the Pro version of the SudoGPT architecture, featuring a deeper 6-layer transformer.
Downloads · 30 days
0
Access
Public
Updated Mar 24, 2026
Repo size
36.8 MB
Likes
0
Public
Click a slice to open those files.
.pt19.1 MB · 52%
From the Hugging Face model README
A powerful transformer-based Sudoku solver designed for high-performance inference on Apple Silicon (via Core ML) and PyTorch. This is the Pro version of the SudoGPT architecture, featuring a deeper 6-layer transformer.
.pt) and Compiled Core ML (.mlmodelc)Evaluated at 170,000 training steps:
SudoGPT9x9_Pro_Standalone.pt: Standalone TorchScript model. This can be loaded by pyTorchNeuralSudoku9x9.mlmodelc: Compiled Core ML model for direct use in iOS/macOS apps.SudoGPT9x9.mlpackage: Core ML Model Package for Editing in Xcode.import torch
# Load model (No original source code required)
model = torch.jit.load("SudoGPT9x9_Pro_Standalone.pt")
model.eval()
# Inference
# input_tensor: [1, 81] int tensor of Sudoku cells (0-9)
with torch.no_grad():
logits = model(input_tensor)
predictions = torch.argmax(logits, dim=-1) + 1
import CoreML
let config = MLModelConfiguration()
let solver = try NeuralSudoku9x9(configuration: config)
This model was trained on millions of synthetic Sudoku puzzles using geometric transformations of seed boards to ensure high variety and validity.
MIT