CoolFace
Modelpublic

aerialblancaservices/v2rmp-routing-ml

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes36downloads
Model Card

v2rmp Routing ML Models

A collection of lightweight neural models for route optimization (VRP/CPP), built with Candle (pure Rust ML) and trained on synthetic + real-world VRP instances.

Part of the v2rmp project — a Rust TUI/CLI for road network extraction, compilation, and multi-vehicle route optimization.

Models

ModelFileArchitecturePurpose
AutoML Predictorautoml_v2.safetensors28 → 64 → 5 MLPPredict instance-aware solver hyperparameters (max iterations, temperature, tabu tenure, cooling rate, neighbourhood radius)
Solver Selectorsolver_selector_v2.safetensors28 → 128 → 64 → 6 MLPClassify VRP instances to the best algorithm among 6 solvers (default, Clarke-Wright, sweep, Or-Opt, 2-Opt, neural-guided)
Quality Predictorquality_predictor_v2.safetensors28 → 64 → 32 → 2 MLPPredict gap-to-optimal (%) and tour length (km) before solving
Move Scorermove_scorer_v2.safetensors16 → 32 → 16 → 1 MLPScore candidate 2-Opt / Or-Opt moves for neural-guided local search
Graph Embeddergraph_embed.safetensors2-layer GraphSAGE (10 → 64 → 64)Produce 64-dim learned embeddings for road network edges

Input Features

All MLP models share the same 28-dim normalized instance feature vector derived from VRP instance statistics (stop count, vehicle count, bounding box spread, demand statistics, distance matrix stats, etc.).

Model Loading (Rust / Candle)

rust
use candle_core::{Device, DType};
use candle_nn::{linear, Linear, Module, VarBuilder};

// Load safetensors
let tensors = candle_core::safetensors::load("solver_selector_v2.safetensors", &device)?;
let vb = VarBuilder::from_tensors(tensors, DType::F32, &device);

// Build layers
let lin1 = linear(28, 128, vb.pp("lin1"))?;
let lin2 = linear(128, 64, vb.pp("lin2"))?;
let lin3 = linear(64, 6, vb.pp("lin3"))?;

See the v2rmp source for full loading code.

License

MIT OR Apache-2.0 (same as v2rmp crate).

<!-- ml-intern-provenance -->

Generated by ML Intern

This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.

  • —Try ML Intern: https://smolagents-ml-intern.hf.space
  • —Source code: https://github.com/huggingface/ml-intern

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = 'aerialblancaservices/v2rmp-routing-ml'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.