Instructions to use NagusameCS/ultratensor-models 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 NagusameCS/ultratensor-models 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 NagusameCS/ultratensor-models # Run inference directly in the terminal: llama cli -hf NagusameCS/ultratensor-models
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf NagusameCS/ultratensor-models # Run inference directly in the terminal: llama cli -hf NagusameCS/ultratensor-models
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf NagusameCS/ultratensor-models # Run inference directly in the terminal: ./llama-cli -hf NagusameCS/ultratensor-models
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf NagusameCS/ultratensor-models # Run inference directly in the terminal: ./build/bin/llama-cli -hf NagusameCS/ultratensor-models
Use Docker
docker model run hf.co/NagusameCS/ultratensor-models
- LM Studio
- Jan
- Ollama
How to use NagusameCS/ultratensor-models with Ollama:
ollama run hf.co/NagusameCS/ultratensor-models
- Unsloth Studio
How to use NagusameCS/ultratensor-models with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for NagusameCS/ultratensor-models to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for NagusameCS/ultratensor-models to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for NagusameCS/ultratensor-models to start chatting
- Docker Model Runner
How to use NagusameCS/ultratensor-models with Docker Model Runner:
docker model run hf.co/NagusameCS/ultratensor-models
- Lemonade
How to use NagusameCS/ultratensor-models with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NagusameCS/ultratensor-models
Run and chat with the model
lemonade run user.ultratensor-models-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
UltraTensor Models — Splices of DeepSeek-V4-Coder
This page describes the spliced GGUFs published alongside UltraTensor, how to download them, and how to serve them correctly.
Model hub: https://huggingface.co/NagusameCS/ultratensor-models
(model card auto-synced from this page by
.github/workflows/hf-modelcard-sync.yml).
What these models are
They are "keep-N" expert splices of the public BatiAI DeepSeek-V4-Pro Q3_K_M
GGUF (697.3 GB, 17 shards), built with ultratensor/gguf_keep.py. A splice
keeps only the expert subset a domain actually uses:
- keep64 — 64 dense experts / 384 hash experts (156.1 GiB). Holds 97.66 %
of code routing mass on the first dense layer. MIXED-E: dense layers keep
64 of 384 experts behind a full-width gate, so stock llama.cpp refuses to
load it (check_tensor_dims). Requires the UltraTensor fork
(
ultratensor-factored, commit b4c34be) which derives per-layer expert counts from the stored tensors and routes out-of-range dense selections to fallback expert 0 (same convention as the hash-layer tid2eid remap). - keep16u / keep12u / keep8u — uniform 16/12/8-expert ladder splices (39.3 / 32.2 / 25.0 GiB).
- IQ2_XS requants of the ladder (24.7 / 20.3 / 16.0 GiB, 2.36-2.38 BPW) for 8 GB GPUs.
All files are single-file GGUFs (split count patched), with the MTP metadata
defect fixed (nextn_predict_layers = 0). They load natively in llama.cpp
builds with DeepSeek-V4 support (b10424 line), except keep64/keep64-iq2xs
which require the UltraTensor fork (>= b4c34be) for mixed-E loading.
keep64 smoke (2026-08-22, node2 CPU): prefill 31 tokens in 291s, decode 8 tokens in 42.8s (0.16 t/s, NFS-bound); clean completion.
Licensing: verified 2026-08-21 — upstream
deepseek-ai/DeepSeek-V4-Pro is MIT, and the BatiAI GGUF distribution
explicitly "inherits the source model license: MIT". Redistribution of these
splices is permitted under MIT with the attribution in the model card.
Download
pip install huggingface_hub
huggingface-cli login # once
python scripts/download_models.py --dest models
python scripts/download_models.py --model keep16u-iq2xs --dest models
python scripts/download_models.py --include-keep64 --dest models # 156 GiB
Serving
--no-op-offload is mandatory on every Q3_K tier. The engine's default
op-offload places Q3_K dequant kernels of CPU-resident tensors on the GPU,
which crashes at >=36 prompt tokens and silently corrupts short-prompt
outputs. The IQ2_XS GPU tiers are also served with --no-op-offload.
CPU quality tier (Q3_K_M):
llama-server -m models\DeepSeek-V4-Coder-keep16u.gguf --host 127.0.0.1 --port 8780 -ngl 0 -c 512 --no-op-offload
GPU speed tier (IQ2_XS, 8 GB VRAM):
llama-server -m models\DeepSeek-V4-Coder-keep16u-iq2xs.gguf --host 127.0.0.1 --port 8791 -ngl 12 -c 512 --no-op-offload
Long-sequence GPU decode (>45 tokens) requires the UltraTensor llama.cpp fork
(the MMQ broadcast bypass + the cuBLAS fallback fix, commit 95fcdad); stock
b10424 builds serve short prompts and CPU fine.
Measured quality (PPL battery, temperature 0)
| Tier | Mean PPL | Notes |
|---|---|---|
| keep16u Q3_K_M, CPU | 2.653 | code 3.000, math 2.887, multilingual 2.629, rare 2.536, needle 2.215 (8 tokens) |
| keep16u IQ2_XS, GPU | 8.540 | code 8.528, math 8.631, multilingual 8.458, rare 8.568, needle 8.517 (16 tokens); degenerate token loops on every domain |
The IQ2_XS ladder is a speed tier (1.2-1.5 tok/s on 8 GB VRAM), not a
quality tier. CPU Q3_K remains the quality baseline. See the paper
(docs/paper/ultratensor.tex) and docs/PREPRINT.md for the full story.
Catalog
The machine-readable catalog is ultratensor/model_catalog.json. The
download_models.py and upload_models.py scripts share it.
- Downloads last month
- 105
We're not able to determine the quantization variants.