Text Generation
Transformers
Safetensors
nemotron_h
code
Mixture of Experts
pruning
space
conversational
custom_code
🇪🇺 Region: EU
Instructions to use locailabs/Juno-N-Coder-25B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use locailabs/Juno-N-Coder-25B-A3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="locailabs/Juno-N-Coder-25B-A3B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("locailabs/Juno-N-Coder-25B-A3B", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("locailabs/Juno-N-Coder-25B-A3B", trust_remote_code=True, 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use locailabs/Juno-N-Coder-25B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "locailabs/Juno-N-Coder-25B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "locailabs/Juno-N-Coder-25B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/locailabs/Juno-N-Coder-25B-A3B
- SGLang
How to use locailabs/Juno-N-Coder-25B-A3B 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 "locailabs/Juno-N-Coder-25B-A3B" \ --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": "locailabs/Juno-N-Coder-25B-A3B", "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 "locailabs/Juno-N-Coder-25B-A3B" \ --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": "locailabs/Juno-N-Coder-25B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use locailabs/Juno-N-Coder-25B-A3B with Docker Model Runner:
docker model run hf.co/locailabs/Juno-N-Coder-25B-A3B
Create README.md
Browse files
README.md
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: nvidia-open-model-license
|
| 4 |
+
license_link: https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
|
| 5 |
+
base_model: nvidia/NVIDIA-Nemotron-3.5-Lightning-30B
|
| 6 |
+
library_name: transformers
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
tags:
|
| 9 |
+
- code
|
| 10 |
+
- moe
|
| 11 |
+
- pruning
|
| 12 |
+
- space
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
|
| 17 |
+
# Juno-N-Coder-25B
|
| 18 |
+
|
| 19 |
+
**Juno-N-Coder-25B** is a coding-specialised derivative of
|
| 20 |
+
[NVIDIA Nemotron 3.5 Lightning 30B](https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B), produced by
|
| 21 |
+
structured expert pruning with our **SPACE** algorithm (Specialisation Pruning Algorithm for
|
| 22 |
+
Compression of Experts). This is the first model in the Juno series developed to run on-prem on the [Locai One](https://locailabs.com/locai-one/).
|
| 23 |
+
|
| 24 |
+
Locai Labs was one of NVIDIA's early-access partners for Nemotron 3.5 Lightning, and we want to thank the NVIDIA team for giving us early access to the model and supporting our work.
|
| 25 |
+
|
| 26 |
+
The goal with Juno-N-Coder was to create a coding-specialised version of Nemotron 3.5 Lightning purely through pruning and without any recovery fine-tuning. Using SPACE, we evaluated each expert's contribution to the target capability, in this case software development, removing the bottom 25% and renormalising the router so that the gate distribution remains correctly scaled.
|
| 27 |
+
|
| 28 |
+
The results are summarised in the model's performance profile below. Juno-N retains performance across four software engineering benchmarks, while degrading in general knowledge and factual recall as measured by MMLU Redux and SimpleQA.
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
|
| 32 |
+
| Benchmark | Juno-N-Coder-25B | Nemotron 3.5 Lightning 30B |
|
| 33 |
+
|---|---|---|
|
| 34 |
+
| LiveCodeBench v6 (`test_v6_2408_2505`) | 77.09 | **77.97** |
|
| 35 |
+
| HumanEval+ | **90.55** | 89.33 |
|
| 36 |
+
| MBPP+ | 80.29 | **81.49** |
|
| 37 |
+
| SciCode (subtask) | **36.98** | 36.09 |
|
| 38 |
+
| MMLU Redux | 82.18 | **90.00** |
|
| 39 |
+
| SimpleQA (rubric) | 37.88 | **47.95** |
|
| 40 |
+
|
| 41 |
+
| MMLU Redux subject group | Juno-N-Coder-25B | Base | Δ |
|
| 42 |
+
|---|---|---|---|
|
| 43 |
+
| Maths & CS | 94.6 | 94.9 | **-0.3** |
|
| 44 |
+
| Physical sciences | 88.3 | 94.4 | -6.1 |
|
| 45 |
+
| Economics | 78.7 | 87.4 | -8.7 |
|
| 46 |
+
| Medicine | 72.7 | 84.4 | -11.7 |
|
| 47 |
+
| World facts | 71.7 | 84.0 | -12.3 |
|
| 48 |
+
| Humanities | 75.9 | 88.5 | -12.6 |
|
| 49 |
+
|
| 50 |
+
All models were evaluated using **NVIDIA NeMo Evaluator** at identical settings for both models:
|
| 51 |
+
temperature 1.0, top_p 0.95, a 65,536-token generation limit, BF16 weights, and
|
| 52 |
+
reasoning traces separated from the response before scoring.
|
| 53 |
+
|
| 54 |
+
## Usage
|
| 55 |
+
|
| 56 |
+
```bash
|
| 57 |
+
vllm serve locailabs/Juno-N-Coder-25B \
|
| 58 |
+
--trust-remote-code \
|
| 59 |
+
--max-model-len 131072 \
|
| 60 |
+
--reasoning-parser ultra_v3 \
|
| 61 |
+
--reasoning-parser-plugin "$PARSER" \
|
| 62 |
+
--tool-call-parser qwen3_coder \
|
| 63 |
+
--enable-auto-tool-choice \
|
| 64 |
+
--enable-prefix-caching
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## Citation
|
| 68 |
+
|
| 69 |
+
```bibtex
|
| 70 |
+
@misc{juno-n-coder-25b,
|
| 71 |
+
title = {Juno-N-Coder-25B: Specialisation Pruning for Compression of Experts},
|
| 72 |
+
author = {Locai Labs},
|
| 73 |
+
year = {2026},
|
| 74 |
+
url = {https://huggingface.co/locailabs/Juno-N-Coder-25B}
|
| 75 |
+
}
|
| 76 |
+
```
|