Instructions to use yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-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 yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-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 yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
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 yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
Use Docker
docker model run hf.co/yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF with Ollama:
ollama run hf.co/yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
- Unsloth Desktop
- Pi
How to use yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF with Docker Model Runner:
docker model run hf.co/yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
- Lemonade
How to use yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
Run and chat with the model
lemonade run user.Ling-3.0-tiny-UBTree-dflash-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-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 yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
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:8080/v1 hermes config set model.default yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16
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:8080/v1 \ --custom-model-id "yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF:BF16" \ --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"
Ling-3.0-tiny-UBTree โ DFlash draft (GGUF, for llama.cpp)
A GGUF conversion of inclusionAI/Ling-3.0-tiny-UBTree
that runs in llama.cpp as a draft-dflash speculative-decoding draft for
inclusionAI/Ling-3.0-tiny.
The upstream checkpoint is a UBTree draft: a 5-layer DFlash (block-diffusion) backbone
plus a learned bigram ("UBTree") selector for tree drafting. llama.cpp does not
implement UBTree tree drafting/verification, so this conversion keeps the DFlash
backbone and drops the 7 ubtree_selector.* tensors (the selector is not used at
runtime). The result behaves as a plain DFlash block drafter: it proposes a block of
tokens per step (block size 16, anchor-inclusive), which the target model then verifies.
Usage (llama.cpp)
Requires a llama.cpp build with DFlash support (--spec-type draft-dflash,
upstream PR #22105 or newer).
No source modifications are needed for inference โ the GGUF is a standard dflash
architecture file; everything is driven by metadata.
llama-server \
-m Ling-3.0-tiny-Q4_K_M.gguf \
-md Ling-3.0-tiny-UBTree-dflash-bf16.gguf \
--spec-type draft-dflash --spec-draft-n-max 6 \
-fa on -c 32768
Notes:
--spec-draft-n-maxis clamped to the draft's block size (16 โ up to 15 drafted tokens). On MoE targets, smaller blocks (e.g. 6) usually win: each extra drafted token widens the expert union read during verification, so large blocks cost more than they gain.- The draft has its own KV cache, sized like the target context and typed f16 by
default โ on large contexts this can exceed the target's KV. Use
-ctkd/-ctvd(e.g.-ctkd q4_0 -ctvd q4_0) to quantize it. - The draft shares token embeddings and the LM head with the target; they are loaded from the target model at runtime, so the draft GGUF is small (~360 MB).
- Speculative decoding only pays off when the target model fits entirely in GPU memory; with CPU/mmap-resident weights, block verification has no cost advantage.
- To reduce the draft footprint, it can be requantized (
llama-quantize ... q8_0).
Deployment notes (measured)
AMD RX 7600 XT 16 GB, ROCm llama.cpp, target Ling-3.0-tiny-Q8_0,
-fa on -c 131072 -ctk q8_0 -ctv q8_0 -np 8, greedy decoding, 3000-token completions.
Draft: bf16, --spec-type draft-dflash --spec-draft-n-max 6 -ctkd q4_0 -ctvd q4_0.
| Workload | Baseline | + DFlash draft | Gain | Acceptance / mean len |
|---|---|---|---|---|
| Prose generation | 78.8 tok/s | 84.8 tok/s | +8% | 0.28 / 2.7 |
| Code generation (Python) | 79.0 tok/s | 127.2 tok/s | +61% | 0.53 / 4.2 |
VRAM: 9.3 GB baseline, 13.2 GB with draft.
Conversion routine
Uses the stock llama.cpp converter (convert_hf_to_gguf.py, recent master) with a
small micro-patch so it accepts the UBTree checkpoint in DFlash-only mode:
In
conversion/__init__.py, add toTEXT_MODEL_MAP:"Ling3UBTreeModel": "qwen",In
conversion/qwen.py, register the architecture on the existingDFlashModelclass and filter out the selector tensors:@ModelBase.register("DFlashDraftModel", "DFlash2DraftModel", "Ling3UBTreeModel") class DFlashModel(Qwen3Model): ... @classmethod def filter_tensors(cls, item): name, gen = item if name.startswith("ubtree_selector.") or name.startswith("model.ubtree_selector."): return None # UBTree bigram selector: unused in DFlash-only mode ...Convert, pointing at the target model's HF directory (needed for the tokenizer and shared embeddings):
python convert_hf_to_gguf.py inclusionAI/Ling-3.0-tiny-UBTree \ --target-model-dir inclusionAI/Ling-3.0-tiny \ --outtype bf16 --outfile Ling-3.0-tiny-UBTree-dflash-bf16.gguf
The output contains 58 tensors (~362 MB in BF16): 5 transformer layers, the
target-feature fusion projection (fc, target hidden layers 4/8/12/16/22), and norms.
Limitations
- DFlash-only: the UBTree bigram selector and tree verification are not used (not implemented in llama.cpp). Full UBTree serving currently requires the (not yet publicly released) SGLang integration from inclusionAI.
- The draft is tied to Ling-3.0-tiny; it cannot draft for other target models and cannot generate text on its own.
- Ling-3.0-tiny is a MoE model: verifying a block of drafted tokens activates the union of their routed experts, so a verification pass reads more of the model than a single-token decode. End-to-end speedups are therefore smaller than the upstream paper's figures, which were measured with a different serving stack on datacenter GPUs.
Credits
- Target model and UBTree draft: inclusionAI (MIT license)
- UBTree paper: arXiv:2609.39972
- DFlash support in llama.cpp: ggml-org/llama.cpp#22105
- Downloads last month
- 462
8-bit
16-bit
Model tree for yury-kapoyko/Ling-3.0-tiny-UBTree-dflash-GGUF
Base model
inclusionAI/Ling-3.0-tiny