Skip to content
Other

Olifant IGTree GGUF

деревья решений для быстрого драфта в llama.cpp

2 min readupdated

Новая разработка позволяет ускорить генерацию текста в llama.cpp без использования второй большой нейросети в роли драфтера. Вместо этого применяются компактные деревья решений (TiMBL IGTree), которые предсказывают следующие токены на основе истории из четырёх предыдущих токенов путем простого поиска по памяти. Модели переведены в формат GGUF и работают с помощью специального патча для llama.cpp, обеспечивая прирост скорости на формулированных текстах вроде юридических документов.

Ключевые особенности

  • Без нейросети: Предсказания токенов выполняются через поиск по дереву решений без использования тяжелых вычислений.
  • Спекулятивное декодирование: Дерево предлагает до пяти токенов за раз, а основная большая модель проверяет их за один проход.
  • Учёт частотности: Версии файлов с counts содержат статистику встречаемости токенов, что позволяет отсекать ненадёжные варианты.
  • Совместимость с Mistral: Деревья используют словарь модели Mistral-7B-v0.1 и требуют совместимых по токенизатору языковых моделей.

Что можно сделать

  • Ускорить генерацию юридического текста: Применить модель olifant-eurlex.gguf для работы с текстами EU Law в сервере llama.cpp и поднять скорость на 11–25%.
  • Собрать сервер с патчем: Скомпилировать llama-server с применением прилагаемого патча для поддержки спекулятивного декодирования через деревья.
  • Провести эксперименты: Сравнить производительность вариантов с подсчетом частотности и без него на собственных задачах.
  • Конвертировать свои деревья: Использовать скрипт ibase_to_gguf.py для перевода собственных обученных TiMBL IGTree в поддерживаемый GGUF-формат.

Пример

Запуск сервера llama.cpp с подключенной моделью-драфтером из дерева решений:

build/bin/llama-server -m mistral-7b-v0.1.Q4_K_M.gguf \
    --spec-igtree-model olifant-eurlex.gguf \
    --spec-igtree-n-max 5 --spec-igtree-p-min 0.8 --spec-igtree-min-count 2
Подробнее• Архитектура: IGTree (memory-based decision tree) с контекстом в 4 токена
• Доступные варианты: файлы для юридических (EurLex), медицинских (PubMed) и общих (FineWeb-Edu, WikiText) текстов
• Размеры файлов: от 159 MB до 4.9 GB (в зависимости от объёма дерева и наличия счетчиков)
• Лицензия: Apache 2.0 для моделей, код патча и скриптов под MIT
Discuss TelegramReport 0 323

Will it run?

Runs in GGUF

The most precise of the ready quantised files fits.

  • GGUFweights 9.8 GB · ready files11 GB

What to get for this model

Massed ComputeOpen Massed Compute

Your own GPU: GGUF — from RTX 5070

Massed Compute hourly prices, November 2026. The discounted price applies with the coupon at checkout.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # antalvdb/olifant-igtree-gguf
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download antalvdb/olifant-igtree-gguf --local-dir ~/models/olifant-igtree-gguf
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to olifant-igtree-gguf
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b42from December 2, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of olifant-igtree-gguf (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

antalvdb/olifant-igtree-gguf
Author
antalvdb
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

3230

Ask AI about this model

Generated by external AI (Google Gemini) · chat stays only in this tab · Privacy Policy

Comments

Other

HORAI

HORAI
Other

FlashVSR+

FlashVSR+