Image-Text-to-Text
Transformers
Safetensors
Basque
English
Spanish
qwen3_5_moe
basque
latxa
nvfp4
modelopt
Mixture of Experts
vllm
conversational
8-bit precision
Instructions to use CLODEI/Latxa-3-122B-A10B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CLODEI/Latxa-3-122B-A10B-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="CLODEI/Latxa-3-122B-A10B-NVFP4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("CLODEI/Latxa-3-122B-A10B-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("CLODEI/Latxa-3-122B-A10B-NVFP4", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CLODEI/Latxa-3-122B-A10B-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CLODEI/Latxa-3-122B-A10B-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CLODEI/Latxa-3-122B-A10B-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/CLODEI/Latxa-3-122B-A10B-NVFP4
- SGLang
How to use CLODEI/Latxa-3-122B-A10B-NVFP4 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 "CLODEI/Latxa-3-122B-A10B-NVFP4" \ --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": "CLODEI/Latxa-3-122B-A10B-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "CLODEI/Latxa-3-122B-A10B-NVFP4" \ --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": "CLODEI/Latxa-3-122B-A10B-NVFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use CLODEI/Latxa-3-122B-A10B-NVFP4 with Docker Model Runner:
docker model run hf.co/CLODEI/Latxa-3-122B-A10B-NVFP4
Latxa-3-122B-A10B-NVFP4
NVFP4 quantization of HiTZ/Latxa-3-122B-A10B, the Basque language model by HiTZ (UPV/EHU), built on Qwen3.5-122B-A10B. Unofficial: this is not a HiTZ release. All credit for the model goes to HiTZ.
- Size: about 75 GB (BF16 original: 245 GB). Runs on a single 96 GB GPU (e.g. RTX PRO 6000 Blackwell).
- Method: NVIDIA TensorRT Model Optimizer 0.48, recipe
nvfp4_experts_only-kv_fp8, the same layout asnvidia/Qwen3.5-122B-A10B-NVFP4. Only the routed MoE experts are NVFP4 (FP4 E2M1, block 16, FP8 scales). The KV cache is FP8. Attention, linear attention, shared experts, router, embeddings, lm_head and vision stay in BF16. - Calibration: 1024 samples, up to 2048 tokens each:
- 512 from nvidia/Nemotron-Post-Training-Dataset-v2 (chat, stem, math, code; CC-BY-4.0)
- 256 from cnn_dailymail
- 256 Basque documents from the validation split of HiTZ/latxa-corpus-v2
Usage (vLLM)
vllm serve CLODEI/Latxa-3-122B-A10B-NVFP4 --quantization modelopt_fp4 --kv-cache-dtype fp8 \
--max-model-len 65536 --reasoning-parser qwen3
Latxa 3 only supports thinking mode, so allow a large max_tokens.
Measured (1x RTX PRO 6000, vLLM 0.32.0, 64K context)
- About 77 tok/s for 1 user, 57 tok/s per user at 4 users, 46 tok/s per user at 8 users (about 260 tok/s total).
- KV cache: about 715K tokens.
- Quick checks in Basque, Spanish, English, maths and code gave correct answers. No full benchmark suite has been run yet; quality may differ slightly from the BF16 and FP8 versions.
Notes
- Like the official Latxa 3 checkpoints, this model has no MTP (multi-token prediction) head, so MTP speculative decoding is not available.
- License: Apache-2.0, same as the base model.
- Downloads last month
- 62