Instructions to use Xylolabs/Cosmos3-Nano-Text-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Xylolabs/Cosmos3-Nano-Text-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS # Run inference directly in the terminal: llama cli -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS # Run inference directly in the terminal: llama cli -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
Use Docker
docker model run hf.co/Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/Cosmos3-Nano-Text-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xylolabs/Cosmos3-Nano-Text-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xylolabs/Cosmos3-Nano-Text-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
- Ollama
How to use Xylolabs/Cosmos3-Nano-Text-GGUF with Ollama:
ollama run hf.co/Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
- Unsloth Desktop
- Pi
How to use Xylolabs/Cosmos3-Nano-Text-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Xylolabs/Cosmos3-Nano-Text-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
- Lemonade
How to use Xylolabs/Cosmos3-Nano-Text-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
Run and chat with the model
lemonade run user.Cosmos3-Nano-Text-GGUF-IQ4_XS
List all available models
lemonade list
- Hermes Agent
How to use Xylolabs/Cosmos3-Nano-Text-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/Cosmos3-Nano-Text-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "Xylolabs/Cosmos3-Nano-Text-GGUF:IQ4_XS" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
GGUF quants of nvidia/Cosmos3-Nano for llama.cpp, on CUDA, Metal or CPU.
Files
Cosmos3-Nano-Text-<QUANT>.ggufis one file per quant.- Contents: Each file holds the full language model plus the original tokenizer and chat template.
Cosmos3-Nano-Text.imatrixis an importance matrix (10.70 MB).
-imat in a file name marks a quant made with an importance matrix.
| Quant | Size | Mean KL vs BF16 | Same top-1 vs BF16 |
|---|---|---|---|
| Q8_0 | 8.71 GB | 0.0013 | 97.84% |
| Q6_K | 6.73 GB | 0.0044 | 96.10% |
| Q5_K_M | 5.85 GB | 0.0090 | 94.79% |
| IQ4_XS | 4.59 GB | 0.0386 | 90.27% |
| IQ4_XS-imat | 4.56 GB | 0.0222 | 92.26% |
The reference is our BF16 pass in transformers. KL and top-1 cover 16,272 positions of English and Korean text.
Tensor types
| Quant | Tensor types and counts |
|---|---|
| IQ4_XS-imat | F32: 145, IQ4_XS: 217, Q5_K: 36, Q6_K: 1 |
| IQ4_XS | F32: 145, IQ4_XS: 213, Q5_K: 40, Q6_K: 1 |
| Q5_K_M | F32: 145, Q5_K: 217, Q6_K: 37 |
| Q6_K | F32: 145, Q6_K: 254 |
| Q8_0 | F32: 145, Q8_0: 254 |
How to run
Use llama.cpp commit cd959bae99ff4bed22bef2604f45241c09bbb8c8 or later.
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git checkout cd959bae99ff4bed22bef2604f45241c09bbb8c8
cmake -B build -DCMAKE_BUILD_TYPE=Release # add -DGGML_CUDA=ON for NVIDIA GPUs
cmake --build build -j --target llama-cli llama-server
./build/bin/llama-cli -m Cosmos3-Nano-Text-Q8_0.gguf --jinja -c 8192 -ngl 99
llama-server takes the same flags.
Which file for your hardware
| Hardware | Memory | File | Context |
|---|---|---|---|
| RTX 4090 / RTX 3090 | 24 GB | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
64K |
| RTX 5090 | 32 GB | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
64K |
| RTX 6000 Ada, or 2 x 24 GB | 48 GB | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
128K |
| One H100 | 80 GB | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
| RTX PRO 6000 Blackwell (GDDR7) | 96 GB | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
| DGX Spark | 128 GB unified | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
| Mac Studio M5 Max | 128 GB unified | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
| One H200 (HBM3e) | 141 GB | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
| One B200 | 192 GB | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
| Mac Studio M5 Ultra | 256 GB unified | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
| Mac Studio M5 Ultra | 512 GB unified | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
| One B300 (HBM3e) | 288 GB | Cosmos3-Nano-Text-Q8_0.gguf (8.7 GB) |
256K |
License and notices
OpenMDW-1.1, copied in LICENSE, and the Qwen Team's Apache License 2.0 in APACHE_LICENSE (the model starts from Qwen3-VL-8B). We extracted the text tower, converted it to GGUF and quantized it.
Citation
Cite the original Cosmos3-Nano model card and its linked Cosmos 3 technical report.
Updates
- 2026-11-29: Added the importance matrix
Cosmos3-Nano-Text.imatrixused for the quantized levels. - 2026-11-23: Added a hardware recommendation table.
- 2026-11-15: First release of
Cosmos3-Nano-Text-IQ4_XS-imat.gguf,Cosmos3-Nano-Text-IQ4_XS.gguf,Cosmos3-Nano-Text-Q5_K_M.gguf,Cosmos3-Nano-Text-Q6_K.gguf,Cosmos3-Nano-Text-Q8_0.gguf.
- Downloads last month
- 2,146
4-bit
5-bit
6-bit
8-bit
Model tree for Xylolabs/Cosmos3-Nano-Text-GGUF
Base model
nvidia/Cosmos3-Nano
docker model run hf.co/Xylolabs/Cosmos3-Nano-Text-GGUF: