Run this model with HF Jobs
Run Droptops/nemotron-3.5-lightning-prune-route-explore on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Droptops/nemotron-3.5-lightning-prune-route-explore. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Droptops/nemotron-3.5-lightning-prune-route-explore on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Droptops/nemotron-3.5-lightning-prune-route-explore. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Droptops/nemotron-3.5-lightning-prune-route-explore. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Droptops/nemotron-3.5-lightning-prune-route-explore with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Droptops/nemotron-3.5-lightning-prune-route-explore with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Droptops/nemotron-3.5-lightning-prune-route-explore") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Droptops/nemotron-3.5-lightning-prune-route-explore") model = AutoModelForCausalLM.from_pretrained("Droptops/nemotron-3.5-lightning-prune-route-explore", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Droptops/nemotron-3.5-lightning-prune-route-explore with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Droptops/nemotron-3.5-lightning-prune-route-explore" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Droptops/nemotron-3.5-lightning-prune-route-explore", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Droptops/nemotron-3.5-lightning-prune-route-explore
- SGLang
How to use Droptops/nemotron-3.5-lightning-prune-route-explore with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Droptops/nemotron-3.5-lightning-prune-route-explore" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Droptops/nemotron-3.5-lightning-prune-route-explore", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Droptops/nemotron-3.5-lightning-prune-route-explore" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Droptops/nemotron-3.5-lightning-prune-route-explore", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Droptops/nemotron-3.5-lightning-prune-route-explore with Docker Model Runner:
docker model run hf.co/Droptops/nemotron-3.5-lightning-prune-route-explore
Nemotron-3.5-Lightning Prune-Route-Explore (System-1 Calibrated Branch Pruner)
Standalone merged bf16 checkpoint of nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 (rev: a9904d24bcc1d289a1950fa9d2b978c47cf903b9) post-trained with Halo 1.3.0 for the White Circle Halo Competition (ft-nemotron track).
Both Stage-1 SFT and Stage-2 Offline GRPO Attention (q_proj, k_proj, v_proj, o_proj) + Mamba-2 (in_proj, out_proj) LoRA adapters are cleanly folded back into standard NemotronHForCausalLM weights via Halo's scripts/after_training/merge_peft_adapters.py --streaming so the model loads out-of-the-box in stock transformers / vLLM with zero custom PEFT patches.
- Interactive Writeup & Cost Explorer: https://huggingface.co/spaces/Droptops/prune-route-explore-nemotron
- Deterministic Zero-Leakage Dataset: https://huggingface.co/datasets/Droptops/prune-route-explore-nemotron-data
What It Does
Acts as the Layer-1 System-1 Branch Pruner in Prune, Route, Explore: given a search or agentic branch state, it runs a single zero-prose forward pass (enable_thinking=False) and emits calibrated probabilities over three single-token decisions:
A(id=1065): KEEP (branch viable)B(id=1066): KILL (branch unreachable, inconsistent, or policy-violating)C(id=1067): UNSURE (abstain and pass to Layer-2Route)
Mean inference latency on 1x H200 (bf16): 14.16 ms / branch (batch_size=16; 16.14 ms / branch at batch_size=8, zero prose tokens generated).
Halo 1.3.0 Training Recipe
- Stage-1 Halo SFT (
180steps, 2 epochs,11,716oracle-labeled train branches,lora_r=32,ep=1,use_grouped_gemm=true): Teaches zero-proseA/B/CSystem-1 classification across Game of 24, strictly deduplicated 5x5 Mini Crosswords, and Tier-2 Agentic side-effect states (eval_loss: 0.8384 -> 0.6954, 13.6 min on 1x H200). - Stage-2 Halo Offline GRPO (
297steps, 1 epoch,5,0003-action groups,lora_r=16,kl_beta=0.05,advantage_method=z_norm,loss_type=dapo): Optimizes calibrated branch decisions under asymmetric false-kill rewards (VIABLE: [+1.0, -2.0, +0.35],DEAD: [-0.5, +1.0, +0.15]), slashing Game of 24 ECE by -23.9% (0.0597 -> 0.0454) and cutting live 100-puzzle Diffusion false kills by -37.9% vs. Stage-1 SFT (29 -> 18, lifting solve rate34% -> 39%). - Standalone bf16 Merge: Folded 70 Attention + Mamba-2 LoRA tensors cleanly into standalone
NemotronHForCausalLMbf16 safetensors (96.88%adapter-vs-merged agreement;98.82%direct-from-HF round-trip agreement).
Audited Benchmark Results (1x H200, bf16)
Pre-registration SHA-256 lock: 7ec823c1e3ed518773c82706202b6461b1e94643c1ce90333f554d81207adf4e
All 49,510 branch decisions across 16 committed ledgers verified against DICE seam-integrity checks (all_ok: true).
1. Held-Out Exact-Oracle Benchmark (n_cal = 2,274, n_test = 2,378, 3 Seeds 42/43/44)
| Model | Headline BalAcc*(1-ECE) |
Calibrated ECE | Adaptive ECE | Brier / BSS | False-Kill f |
Balanced Acc. | Cost Saving S (tok/call) |
Latency |
|---|---|---|---|---|---|---|---|---|
Base Nemotron-3.5-Lightning (C0) |
0.4245 |
0.1424 |
0.1496 |
0.1893 / 0.2414 |
60.87% |
49.50% |
+6.68 |
14.37 ms |
Stage-1 Halo SFT (C1-SFT) |
0.8765 |
0.0282 |
0.0301 |
0.0688 / 0.7243 |
6.87% |
90.19% |
+219.80 |
14.19 ms |
| Stage-2 Halo SFT + Offline GRPO (this model, bs=16) | 0.8806 (+107.5%) |
0.0202 (-85.8%) |
0.0207 |
0.0688 / 0.7244 |
6.85% |
89.88% |
+221.29 (33.1x) |
14.16 ms |
Public HF Round-Trip Verify (bs=8, seed 42) |
0.8841 |
0.0192 |
0.0193 |
0.0683 / 0.7261 |
7.89% |
90.14% |
+221.63 |
16.14 ms |
2. Complete 100-Puzzle Same-Weights google/diffusiongemma-26B-A4B-it H4 2x2 (ranks 901-1000)
- Autoregressive BFS (
Fvs.E): Solve rate20% -> 34%(+14 pts), tokens/solve-55.4%(6,374.1 -> 2,843.1), median tokens-26.8%(95% CI[+21.0%, +35.5%]), wall-clock-25.2%(70.11 s -> 52.43 s). - Diffusion BFS (
H-GRPOvs.G): Solve rate27% -> 39%(+12 pts vs.G, +5 pts vs. live Stage-1H-SFTat34%), tokens/solve-43.7%(3,056.0 -> 1,719.2,-73.0%vs.E), strict median tokens-15.6%(95% CI[+3.41%, +30.80%], H4 PASS), mean tokens-18.7%, wall-clock-20.5%(8.06 s/puzzle,8.7xfaster thanEand faster than single-shot Direct ARAat13.12 s), denoising passes-19.4%, live false kills18 / 1,638(1.10%, -37.9% vs. Stage-1 SFT's29). - Online Bayes Prior-Odds Shift (10 Warmup -> 90 Held-Out Live Puzzles): Cuts live shadow ECE under 92-94% dead-branch shift from
0.2878 -> 0.0325(AR, -88.7%) and0.3149 -> 0.0555(Diffusion, -82.4%).
3. Zero General-Capability Regression, Zero-Shot OOD Transfer & Tier-2B Route Stress
- General-Capability Regression Check:
GSM8Kgeneration92.0% -> 94.0%(n=50,0/50A/B/Ccollapse),ARC-Challenge92.67% -> 90.67%(n=150), open-ended chat100%substantive response rate with bothenable_thinking=Falseandenable_thinking=True(0/20collapse). - Zero-Shot OOD GSM8K Paired Branches (
n=200, 0 GSM8K training):AUROC 0.8416,91.0%pairwise discrimination,73.5%balanced accuracy vs.50.0%Base (+23.5 pts,17.1 ms/branch). - Tier-2B Authority-Separation Stress (
n=100unseen scenarios): Layer-2Routecuts catastrophic failures from29.0%(prune_only) and99.0%(unpruned) to0.0%(H5 Stress PASS) with100.0%authorized solve rate (vs.0.0%BaseC0).
Quick Usage (Single-Forward-Pass Logit Extraction)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Droptops/nemotron-3.5-lightning-prune-route-explore"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto").eval()
abc_ids = [tok.encode(t, add_special_tokens=False)[0] for t in ("A", "B", "C")]
messages = [
{"role": "system", "content": "Judge branch viability. Answer exactly A (KEEP), B (KILL), or C (UNSURE)."},
{"role": "user", "content": "Game of 24 starting [4, 7, 8, 8]. Step: 8 - 4 = 4 -> remaining [4, 7, 8]."},
]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
enc = tok(prompt, return_tensors="pt").to(model.device)
with torch.inference_mode():
logits = model(**enc, use_cache=False).logits[0, -1, abc_ids].float()
probs = torch.softmax(logits / 1.5944, dim=-1).tolist() # calibrated temperature T=1.5944 (frozen tau_kill=0.5920)
print(dict(zip(["KEEP", "KILL", "UNSURE"], probs)))
- Downloads last month
- 62