Downloads · 30 days
0
ocxlabs/FloydNet_TSP_exp
FloydNet_TSP_exp is a machine learning model from ocxlabs. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
FloydNet is a graph reasoning architecture designed to mimic the execution of algorithms via a learned, global Dynamic Programming operator. This checkpoint (exp) is trained to solve the Non-Metric (Explicit) Travelin…
Downloads · 30 days
0
Access
Public
Updated Feb 5, 2026
Repo size
851 MB
Likes
0
Public
Click a slice to open those files.
.pt851 MB · 100%
From the Hugging Face model README
FloydNet is a graph reasoning architecture designed to mimic the execution of algorithms via a learned, global Dynamic Programming operator. This checkpoint (_exp) is trained to solve the Non-Metric (Explicit) Traveling Salesman Problem, where edge weights are generic integers and do not necessarily obey the triangle inequality.
Unlike standard GNNs that rely on local message passing, FloydNet maintains and refines a global all-pairs relationship tensor, achieving 3-WL (2-FWL) expressive power.
ocxlabs/FloydNet_TSP_expOn General TSP instances (N=100-200), FloydNet demonstrates capabilities significantly exceeding strong heuristics:
Reproducing TSP results at full scale is computationally heavy. For convenience, we provide a small demo dataset and pre-trained checkpoints.
Download the demo dataset from Hugging Face. Unzip it and place the extracted folder under example/data/.
Run inference in --test_mode using torchrun. The command below assumes a single-node setup with 8 GPUs. Ensure --subset is set to exp.
source .venv/bin/activate
cd example
torchrun \
--nproc_per_node=8 \
-m TSP.run \
--subset exp \
--output_dir ./outputs/TSP_exp \
--load_checkpoint path/to/TSP_exp/epoch_01000.pt \
--test_mode \
--split_factor 1 \
--sample_count_per_case 10