/ Модель

Характеристики

Контекст
4 096 токенов
Размер весов
94,6 МБ
Лицензия
Apache 2.0
Архитектура
ivonar_native_ternary · dense
Библиотека
ivonar-inference
Опубликована
7 сен 2026

ivonar-nano

Генерация текстаТекст → текст3 профессии

Ivonar Nano — компактная англоязычная языковая модель с нативно троичными весами для локального чата, коротких ответов, суммаризации и простого кода.

330скачиваний за 30 дней3лайкавеса обновлены21 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Ivonar Nano — созданная разработчиком Ivonar плотная языковая модель на 349 млн параметров. Она обучалась с нуля на 100 млрд токенов с нативными троичными весами −1, 0 и +1, упакованными в 2-битные коды; это не сжатие готовой модели. Архитектура сочетает 18 блоков state-space и 6 блоков внимания. Для запуска предусмотрен runtime ivonar-inference, который вычисляет непосредственно на упакованных весах; README приводит скорость около 1 430 токенов/с на RTX 4060 Ti и около 130 токенов/с на Ryzen 9 3900X.

Модель предназначена для локального чата и быстрых экспериментов с нативно троичными моделями, а также для коротких ответов, переписывания, суммаризации небольших фрагментов и простого кода. Она обучена для английского языка, принимает текст и генерирует текст, а контекст ограничен 4 096 токенами. По описанным в карточке тестам, ответы часто содержат фактические ошибки, а арифметика даётся слабо; модель может уверенно выдумывать детали, повторяться или отказываться отвечать. Она не поддерживает инструменты и поиск по внешним данным. Лицензия — Apache-2.0.

Сценарии применения

  • локальный чат на компьютере с ограниченными ресурсами
  • суммаризация коротких текстов
  • переписывание и редактирование фрагментов текста
  • получение коротких ответов на вопросы на английском
  • генерация простых примеров кода
  • эксперименты с инференсом нативно троичных моделей

Ограничения

Модель рассчитана только на английский и ограничена контекстом 4 096 токенов; она не использует инструменты или retrieval. В карточке отмечены частые фактические ошибки, слабая арифметика, повторы и необоснованные отказы.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Ivonar Nano

Ivonar Nano is a 349M-parameter language model with natively ternary weights: every large matrix holds only −1, 0 and +1, stored as 2-bit codes with one 16-bit scale per 128 weights. It was trained that way from random initialization on 100 billion tokens, so the ternary weights are what the optimizer produced, not a compressed copy of a larger model. No existing model was used as a starting point, and nothing was quantized after training.

The packed model is 94.6 MB and decodes at about 1,430 tokens per second on an RTX 4060 Ti and about 130 on a Ryzen 9 3900X.

ivonar.com · runtime: github.com/LuisOezdem/ivonar-inference

Benchmarks

Zero-shot multiple choice, full validation splits, one H100. Every option is scored by its summed log probability, the rule the published tables below use, so each column means the same thing. Best per row in bold.

Ivonar NanoTriLM 390MFloatLM 390MQuantLM 4-bitBitNet b1.58LLaMA 700M
Parameters349M390M390M390M700M700M
Training tokens100B300B300B300B100B100B
WeightsternaryternaryFP164-bitternaryFP16
ARC-Easy56.048.651.049.651.854.7
ARC-Challenge24.821.221.321.321.423.0
HellaSwag32.832.035.735.135.137.0
PIQA64.165.068.468.368.168.9
Winogrande51.952.251.853.755.254.8
BoolQ60.855.154.750.858.260.0
Average (6)48.445.747.246.548.349.7
Format size95 MB98 MB785 MB220 MB175 MB1,400 MB

TriLM, FloatLM and QuantLM are the Spectra suite: one lab, one recipe, one 300B-token run, differing only in how the weights are stored. Nano leads TriLM 390M, the only other natively ternary model of its size, by 2.7 points at a third of its training tokens, and it leads QuantLM 390M 4-bit by 1.9, so training in the format beats quantising into it afterwards. It matches BitNet b1.58 700M with half the parameters and stands level with FloatLM 390M. Only LLaMA 700M is ahead, by 1.3 points at twice the parameters.

Format size is parameters × bit width. TriLM and QuantLM ship unpacked in FP16 at 785 MB, BitNet 700M and LLaMA 700M were never released, and Nano's 95 MB is the measured file. Sources: Spectra (arXiv 2407.12327) tables 6 and 7, BitNet b1.58 (arXiv 2402.17764) table 2, raw-accuracy columns.

The supervised pass keeps what pretraining built: under the project's own scoring rule the eight-task mean is 43.8 against 44.0 for the pretrained checkpoint, a 285-question knowledge probe reads 66.0 against 66.3, and validation loss is 1.148. Standard errors run ±1.5 to ±2.6 per task, so differences under 3 points are noise. Both scoring rules sit in nano_sft_base.csv.

Speed and size

Weights on disk94,645,329 bytes, 2.17 bits per parameter: 92.4% packed 2-bit codes, 5.8% FP16 scales, 1.8% FP32 norms
RTX 4060 Ti, ternary kernelsabout 1,430 tokens per second, a 36-token prompt in 7 ms
Ryzen 9 3900X, ternary kernelsabout 130 tokens per second, a 36-token prompt in 0.25 s

On the GPU and on the CPU the kernels compute directly on the packed 2-bit codes, with INT8 activations, integer dot products and one scale multiply per 128 weights.

Quick start

# macOS and Linux
curl -fsSL https://raw.githubusercontent.com/LuisOezdem/ivonar-inference/main/install.sh | sh
# Windows, in PowerShell
irm https://raw.githubusercontent.com/LuisOezdem/ivonar-inference/main/install.ps1 | iex

The installer sets up its own Python and the matching PyTorch build, then opens the chat page; Download Ivonar Nano fetches the model into ~/.ivonar/models. Afterwards ivonar serve starts the chat page and an OpenAI-compatible API on http://127.0.0.1:8000/, and ivonar chat runs in the terminal. An NVIDIA GPU is used when present, otherwise the CPU.

Without a system message the model answers "who are you" with a persona from its training data, since it carries no identity of its own. The runtime ships one by default.

Files

FileSizePurpose
packed_inference_checkpoint.pt94,645,329 bytesthe model
tokenizer.json5.7 MB65,536-token BPE tokenizer, trained for this model
config.jsonarchitecture and packing parameters
attribution_bundle.md, dataset_origin_approvals.jsonevery training source with revision, license and attribution text
nano_sft_base.csv, nano_raw_base.csv, nano_dpo_base.csvthe benchmark rows behind the tables above
SHA256SUMS.txt, LICENSEchecksums; Apache 2.0, copyright 2026 Luis Oezdem

Only the first two are needed to run the model. Keep attribution_bundle.md beside them when you redistribute the weights.

The full training checkpoint, 4.19 GB, sits on the step2100 branch of this repository, for anyone continuing the training:

from huggingface_hub import hf_hub_download
hf_hub_download("Ivonar/ivonar-nano", "checkpoint_step_00002100.pt", revision="step2100")

Architecture

Parameters349M, all active (dense)
Blocks24: 18 state-space, 6 attention, one attention block after every three
Width768 hidden, 12 heads; SwiGLU feed-forward 4,480 wide
State spaceMamba-3 MIMO: causal depthwise convolution of width 4, then an exponential-trapezoidal oscillatory recurrence with a 16-dimensional complex state per head channel
Attentionexact causal multi-head latent attention, 192-dimensional latent, decoupled rotary encoding
Vocabulary65,536 BPE tokens; input embedding and output head share one ternary matrix
Context4,096 tokens
Weightsternary {−1, 0, +1}, 2-bit codes, one FP16 scale per 128 inputs; norms, biases and recurrence stability terms in FP32
ActivationsINT8 per token at every ternary matrix

Training

StageTokensStepsLearning rateResult
Pretraining100.0B678,1683e-4 peak, 2,000 warmup, decay to 10%the pretrained checkpoint
Supervised fine-tuning309.7M2,1002e-5the shipped model
Preference tuning (DPO)6,120 pairs1701e-6, β 0.1trained, evaluated, not shipped

One H100 80GB, 147,456 tokens per optimizer step, FP32 shadow weights and a straight-through estimator. DPO kept the model's knowledge but did not improve its answers at this size, so the supervised checkpoint ships and the preference data never entered the released weights. The supervised checkpoint that produced them, optimizer state included, is on the step2100 branch.

Pretraining mixture by configured weight: FineWeb-Edu 46%, FineWeb-Edu score-2 30%, FineMath 3+ 10%, Cosmopedia 5%, permissively licensed source code 5%, Project Gutenberg 4%. Fine-tuning by realized token share: Magpie-Ultra 62%, OpenCodeInstruct 12%, science answers 7%, summaries 6%, rewrites 4%, persona instructions 3%, OpenThoughts3 3%, system chats 2%, rewriting drills 0.6%, small talk 0.1%. All SmolTalk2 no_think splits apart from OpenCodeInstruct, because a model this size imitates a reasoning trace without being able to carry it.

Training data

Every source carries a permissive license and a pinned revision; exact revisions and required wording are in attribution_bundle.md.

SourceUsed inLicense
HuggingFaceFW/fineweb-edu, fineweb-edu-score-2pretrainingODC-BY, from Common Crawl
HuggingFaceTB/finemath (finemath-3plus)pretrainingODC-BY, from Common Crawl
HuggingFaceTB/cosmopedia (web_samples_v2)pretrainingApache-2.0, generated with Mixtral-8x7B-Instruct
common-pile/project_gutenbergpretrainingpublic domain; the Project Gutenberg trademark implies no endorsement
common-pile/stackv2_edu_filteredpretrainingBlue Oak Council permissive licenses, per-file notices retained upstream
HuggingFaceTB/smoltalk2, nine no_think splitsfine-tuningApache-2.0; Magpie-Ultra generated with Llama-3.1-405B-Instruct (built with Llama), summaries and rewrites with Qwen2.5-72B-Instruct, science answers distilled from DeepSeek-R1, persona instructions from Tulu 3
nvidia/OpenCodeInstructfine-tuningCC-BY-4.0
HuggingFaceH4/ultrafeedback_binarizedpreference stage, not shippedMIT

Benchmark datasets were used for evaluation only.

Intended use and limitations

A reference for native ternary training and a small, fast local chat model: 2-bit inference experiments, on-device demos, short answers, rewriting, summarizing a paragraph, simple code.

  • Facts are right about two thirds of the time and arithmetic about a third, on the runtime's own test suite, and it invents details fluently, so read what it writes before acting on it.
  • English only, 4,096-token context, no tool use, no retrieval.
  • It sometimes declines a question it could answer, and repeats itself at low temperature; the runtime's repetition penalty and system message reduce both.

License

Copyright 2026 Luis Oezdem. The weights, tokenizer and this card are released under the Apache License 2.0 (LICENSE). The training data licenses require attribution when the weights are redistributed: keep attribution_bundle.md with the model. One fine-tuning source, 0.19% of all training tokens, carries conversations generated with Llama 3.1: built with Llama.

Citation

@misc{ivonar-nano-2026,
  title  = {Ivonar Nano: a 349M natively ternary language model},
  author = {Oezdem, Luis},
  year   = {2026},
  note   = {Apache-2.0. Trained from scratch on 100B tokens, 2.17 bits per parameter, 94.6 MB packed.}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · ivonar-inference

Нельзя запустить

Архитектура ivonar_native_ternary неизвестна transformers в образе рантайма.

Ревизия весов
b6c2472

0 моделей