Downloads · 30 days
0
Cochon123/ai-tsp-problem-v2
ai-tsp-problem-v2 is a machine learning model from Cochon123. 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 pytorch.
This repository contains the best V2 checkpoint from the AI-TSP-Problem project:
Downloads · 30 days
0
Access
Public
Updated Apr 3, 2026
Repo size
399 MB
Likes
1
Public
Click a slice to open those files.
.pt398 MB · 100%
From the Hugging Face model README
This repository contains the best V2 checkpoint from the AI-TSP-Problem project:
The task is a fixed-start / fixed-end Euclidean TSP path problem:
This is a geometry-aware pointer-style Transformer trained on exact Rust-generated labels for small Euclidean TSP-path instances up to 20 nodes.
The model is useful in two ways:
AI only
It predicts a very strong approximate route quickly.Hybrid AI + exact search
It provides warm starts and search guidance for an exact branch-and-bound solver.Exactness does not come from the model itself. Exactness comes from the classical solver.
The published file is:
best_score.ptIt is the best V2 checkpoint selected by the project scoring metric.
d_model = 38484815360.05train_v2val, val_hardUniform benchmark:
91.63%0.0496%n=17..20: 88.09%n=17..20: 0.0688%Hard benchmark:
93.55%0.0240%Hybrid exact-search benchmark:
n=17..20, the AI-guided hybrid solver reached about 1.60x speedup over the plain branch-and-bound baselineThis checkpoint is tied to the project codebase and is not packaged as a standalone Hugging Face transformers model.
Use it from the GitHub repository:
git clone https://github.com/cochon123/AI-TSP-Problem.git
cd AI-TSP-Problem
PYTHONPATH=python/src python -m aifindpath.eval --checkpoint best_score.pt --data data/pilot_v2 --split test --beam 32
If you download the checkpoint from Hugging Face, point the project scripts at the local file path.
This model page also includes:




AI only can already be a reasonable operating mode.