Downloads · 30 days
21
21% of all-time downloads
montevive/ALIA-40b-instruct-2601-NVFP4
ALIA-40b-instruct-2601-NVFP4 is a text generation model from montevive. Use it when you need the model to write or continue text. It is set up for vllm. The card lists the license as apache-2.0.
NVFP4 quantization of BSC-LT/ALIA-40b-instruct-2601 packaged in compressed-tensors format for vLLM. 27 GB on disk, ~9 tok/s steady-state generation on a single NVIDIA GB10 (DGX Spark) with native NVFP4 hardware kernel…
Downloads · 30 days
21
21% of all-time downloads
All-time downloads
101
Public
Parameters
24.6B
28.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors28.8 GB · 100%
How the weights are stored.
U818.1B · 74%
From the Hugging Face model README
NVFP4 quantization of BSC-LT/ALIA-40b-instruct-2601 packaged in compressed-tensors format for vLLM. 27 GB on disk, ~9 tok/s steady-state generation on a single NVIDIA GB10 (DGX Spark) with native NVFP4 hardware kernels via FlashInfer + CUTLASS.
For the GGUF / llama.cpp / Ollama version of this model, see montevive/ALIA-40b-instruct-2601-NVFP4-GGUF.
| File | Format | Size | Use case |
|---|---|---|---|
model-0000{1..6}-of-00006.safetensors | NVFP4 (compressed-tensors / nvfp4-pack-quantized) | 26.8 GB | Blackwell GPUs (RTX 50xx, GB10, B-series) via vLLM or TRT-LLM |
HuggingFaceH4/ultrachat_200k at sequence length 2048).config.json with quantization_config: {format: "nvfp4-pack-quantized", quant_method: "compressed-tensors"} — vLLM auto-detects NVFP4 from this and selects the FlashInferCutlassNvFp4LinearKernel.chat_template.jinja — ALIA's training-format chat template (folds the system prompt into the first user turn; see "Chat template" below).recipe.yaml — the llmcompressor recipe used to produce the quant.# Install vLLM with NVFP4 support (requires CUDA 13 toolkit on the host for flashinfer JIT)
pip install vllm # 0.20+
# DGX Spark / Blackwell: ensure CUDA 13 nvcc is in PATH (otherwise flashinfer JIT fails for sm_120)
export CUDA_HOME=/usr/local/cuda-13.0
export PATH=/usr/local/cuda-13.0/bin:$PATH
# Serve via OpenAI-compatible API
vllm serve montevive/ALIA-40b-instruct-2601-NVFP4 \
--dtype bfloat16 \
--max-model-len 4096 \
--gpu-memory-utilization 0.55 \
--served-model-name alia-nvfp4
Or offline:
from vllm import LLM, SamplingParams
llm = LLM(
model="montevive/ALIA-40b-instruct-2601-NVFP4",
dtype="bfloat16",
max_model_len=4096,
gpu_memory_utilization=0.55,
)
sp = SamplingParams(temperature=0.1, top_p=0.9, max_tokens=200)
out = llm.chat(
[[{"role": "user", "content": "La capital de España es"}]],
sp,
)
print(out[0].outputs[0].text)
Recommended sampling (per the base model card): temperature between 0 and 0.2; avoid repetition penalties — they degrade instruction-following on this model.
gpu_memory_utilization=0.55 reserves ~66 GB for vLLM and leaves the rest for OS/page-cache.sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" if vLLM complains "Free memory on device cuda:0 (X/121 GiB) on startup is less than desired GPU memory utilization."~/.cache/flashinfer/ and ~/.cache/vllm/torch_compile_cache/ so subsequent launches drop to ~1 min.Measured with vLLM 0.20.0 + torch 2.11.0+cu130 + flashinfer 0.6.8.post1, single-prompt smoke (no batching):
| Prompt | Tokens generated | Time | Throughput |
|---|---|---|---|
| Spanish (warmup) | 162 | 40 s | 4.0 tok/s |
| Catalan | 200 | 23 s | 8.7 tok/s |
| Basque (system override) | 200 | 23 s | 8.8 tok/s |
Steady-state ~8.7 tok/s; the first run is dominated by cudagraph capture / kernel autotune and is not representative. With continuous batching across multiple users vLLM scales considerably higher.
For comparison: the GGUF version runs at ~10.2 tok/s under llama.cpp --jinja on the same hardware. The slight gap is single-prompt overhead in vLLM; for multi-tenant serving vLLM is typically faster.
ALIA was trained with a non-standard ChatML variant: the system message is folded into the first user turn, separated by \n\n, instead of being emitted as its own <|im_start|>system ... <|im_end|> block (see BSC's PR #1 on the official GGUF).
The chat_template.jinja shipped in this repo encodes this exactly. vLLM (and transformers.AutoTokenizer.apply_chat_template) honor it automatically. For runtimes that ignore embedded Jinja templates (notably Ollama), see the GGUF repo's Modelfile for a Go-template equivalent.
| Runtime | Native NVFP4 on Blackwell | Notes |
|---|---|---|
| vLLM (recommended) | ✅ Yes (FlashInfer + CUTLASS NVFP4 GEMM) | Production-ready. CUDA 13 nvcc required on host for first-run JIT. |
| TensorRT-LLM | ✅ Yes | Same compressed-tensors format. Heavier setup. |
HuggingFace transformers | ❌ No (dequant-to-BF16 at load time) | Loads fine via compressed-tensors library, but resident size jumps to ~76 GB and inference runs at BF16 speed. Useful for compatibility/eval, not production. |
| llama.cpp | ✅ Yes (different format) | Use the GGUF repo — compressed-tensors is not GGUF. |
nvfp4-pack-quantized)lm_headHuggingFaceH4/ultrachat_200k, split train_sft[:512], max_seq_len 2048Calibration used ultrachat_200k — an English-only synthetic conversation dataset. ALIA is BSC's Iberian-multilingual model, so this is suboptimal: the per-tensor and per-block scales were computed against an activation distribution that doesn't fully represent the model's actual use case. Re-quantizing with a multilingual instruction dataset (Iberian languages + code) would likely improve quality on Spanish/Catalan/Basque/Galician outputs. PRs welcome.
This quantized model is released under the same Apache 2.0 license as the source.
Base model: BSC-LT/ALIA-40b-instruct-2601 by Barcelona Supercomputing Center (BSC). Please cite their work if you use this model in research:
@misc{alia-40b-instruct,
author = {Barcelona Supercomputing Center},
title = {ALIA-40b-instruct},
year = {2026},
url = {https://huggingface.co/BSC-LT/ALIA-40b-instruct-2601}
}
NVFP4 quantization: Montevive AI.
Inherits all limitations of the base ALIA-40b-instruct-2601 model. Additionally:
transformers users will fall back to BF16 (no native NVFP4 in stock transformers as of May 2026). Use vLLM or TRT-LLM for the speed/memory benefit.