aerialblancaservices/v2rmp-routing-ml
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
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)
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
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.
