Downloads · 30 days
0
ocxlabs/FloydNet_TSP_euc
FloydNet_TSP_euc 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 (euc) is trained to solve the Metric (Euclidean) Traveling S…
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 (_euc) is trained to solve the Metric (Euclidean) Traveling Salesman Problem, where edge weights are defined by Euclidean distances between 2D coordinates.
FloydNet operates directly on the pairwise relationship tensor (distance matrix), learning to refine global dependencies without explicit geometric engineering.
ocxlabs/FloydNet_TSP_eucOn Metric TSP instances (N=100-200), FloydNet matches the performance of specialized geometric heuristics:
Download the demo dataset from Hugging Face. Unzip it and place the extracted folder under example/data/.
Run inference in --test_mode using torchrun. Ensure --subset is set to euc and the checkpoint path matches.
source .venv/bin/activate
cd example
torchrun \
--nproc_per_node=8 \
-m TSP.run \
--subset euc \
--output_dir ./outputs/TSP_euc \
--load_checkpoint path/to/TSP_euc/epoch_01000.pt \
--test_mode \
--split_factor 1 \
--sample_count_per_case 10