/ Модель

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

Контекст
262 144 токена
Параметры
12,8 млрд
Размер весов
29 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5_text · dense
Базовая модель
Qwen3.5-4B
Библиотека
transformers
Опубликована
8 ноя 2026

qwenti-inference

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

Экспериментальная сборка Qwen3.5-4B со встроенной схемой RV32 для проверки исполнения TinyLLama-v0 внутри трансформера.

292скачиваний за 30 дней0лайковвеса обновлены8 ноя 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Qwenti inference — экспериментальная исследовательская сборка OpceanAI на основе Qwen/Qwen3.5-4B. В стек трансформера встроена схема, исполняющая токенный процессор RV32 с программой TinyLLama-v0; её 36 слоёв добавлены перед 32 слоями Qwen. Параметры схемы не обучались: их вычислил компилятор. Метаданные указывают 12,8 млрд параметров, контекст 262 144 токена, архитектуру Qwen3.5 для текста и формат safetensors. В README описана работа с текстом через Transformers и заявлено точное исполнение TinyLLama на эталонных проверках с весами int4.

Модель предназначена для демонстрации исполнения программы TinyLLama внутри трансформерной модели и для технических экспериментов. Само исполнение гостевой программы чрезвычайно медленное: по оценке README, один токен занимает около 29 часов в обычном режиме или 33 минуты на отдельном исполнителе Triton; авторы уточняют, что это не путь для чата. Лицензия — Apache-2.0.

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

  • изучение встраивания исполняемой схемы RV32 в трансформер
  • проверка точности исполнения TinyLLama-v0 с весами int4
  • сравнение результатов исполнения с эталонной реализацией
  • эксперименты с компиляцией машинных параметров в слои модели

Ограничения

Исполнение гостевой программы крайне медленное: один токен занимает около 29 часов в обычном режиме или 33 минуты на отдельном исполнителе Triton, поэтому этот путь не подходит для чата. Заявленная точность проверена на пяти контрольных точках и сорока жадно сгенерированных токенах.

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

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

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

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

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

Открыть на Hugging Face

Qwenti inference: TinyLLama-v0 inside Qwen3.5-4B

This is Qwen/Qwen3.5-4B with a token-level RV32 machine compiled into its transformer stack, and TinyLLama-v0 compiled into that machine's weight memory. Thirty-six circuit layers sit in front of Qwen's thirty-two. No weight in them was trained: a compiler computes all of them.

The method comes from Qwenputer by Divyansh Agrawal, which compiles a computer into a model's weights and drives it through the model's own token stream. This repository applies it to a 4B base and puts a language model inside the machine. The smaller sibling OpceanAI/Qwen3.5-0.8B-abliterated-Qwenti does the same with a CHIP-8 machine, and its overlay field is what showed how to keep the machine's readout out of the text path.

Measured

Parameters inside the machine4,621,392
Weight memory5,229,568 cells of 4 bits, 2.49 MB, 639 of 768 units
Circuit36 layers, 457 heads, 3,259 dims
Merged model68 layers, hidden 4,096, 27.4 GB in bf16
Text agreement with the base, first token, 6 prompts6 of 6
KL(base against this model), 96 positions6.5e-4
Top-1 agreement over the same positions100%
The capital of France is Paris.
Decode on one Colab G423.2 tokens/s
Peak VRAM61.9 GB
Driven with a chip tokenemits a chip token, best text logit at 0.0
Chip stream after GO, no state injected17 of 24 tokens stay in the machine
TinyLLama tokens from the verified kernel46 in 618 s, 37 of 40 equal to fp32

40-token agreement

What works and what does not

The text path matches the base model. The machine's own readout is gated by mu, so at a text position the head sees no output code and answers text, and at a chip position it sees the code and answers in the machine's vocabulary.

The machine executes TinyLLama correctly on the reference implementation and on the circuit: five checkpoints of the real program compared token by token, zero disagreements, and forty greedy tokens that match a float model holding the same int4 weights on all forty.

minutes per TinyLLama token on the G4

Running the guest program inside this checkpoint is correct but slow. One TinyLLama token costs 1,821,283 machine instructions, or 2,619,430 trace tokens, and this model processes about 23 chip positions per second, so a token takes roughly 29 hours. The Triton executor runs the circuit alone at 1,263 positions per second, which brings it to 33 minutes per token. Neither is a chat path.

An earlier build of this checkpoint answered ! instead of text. The cause was the readout: the text bridge writes an echo code on text tokens, the final norm scales the code dimensions by 2^20, and a residue of 1e-2 in them became a 1e4 logit. Section 11 of the paper records the four probes that found it and the fix.

instruction mix of one model token

How to use

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

tok = AutoTokenizer.from_pretrained("OpceanAI/qwenti-inference")
model = AutoModelForCausalLM.from_pretrained(
    "OpceanAI/qwenti-inference", dtype=torch.bfloat16, device_map="cuda").eval()

ids = tok("The capital of France is", return_tensors="pt").to("cuda")
out = model.generate(**ids, max_new_tokens=20, do_sample=False)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True))

That prints Paris. followed by the same completion the base model gives. The machine's vocabulary is appended after Qwen's, and chipformer.json records the layout (chip_token_offset, chip_layers, chip_dims_offset, slots, code_dims, tau_dim, mu_dim, tool_call, printable). Driving the guest program needs the machine state injected into the cache, which the chipformer package does with core.snapshot and RvChat.

Why there is no bf16 build of the machine

storagesize for 4,621,392 parameters
int4, the weight memory2.20 MB
bf16 or fp168.81 MB
fp3217.63 MB

storage against the weight memory

The weight memory holds 2.49 MB, which in bf16 is 1,307,392 weights. The model is 3.53 times larger, so a bf16 build has to live as model tensors, and the VDOT instruction stops being the dot product.

Files

PathWhat
PAPER-tinyllama-rv32.pdfthe paper, 13 pages, figures and tables typeset
PAPER-tinyllama-rv32.mdthe paper source
DESIGN-tinyllama.mdthe working design log, including every wall and its fix
figures/instruction mix, quantization cost, 40-token agreement, speed, storage
results.jsonthe raw result document of the G4 run
scripts/kernel, assembly matvec, exporter, Python mirror, circuit checker, G4 driver, PDF builder
colab_bundle.zipthe patched tree and scripts, ready for a Colab VM

Hardware

Colab G4: NVIDIA RTX PRO 6000 Blackwell Server Edition, 95.6 GB of VRAM, driver 580.82.07, torch 2.14.1+cu130, CUDA 13.0, capability 12.0, 48 vCPU, 176.9 GB of RAM. Built with clang and ld.lld targeting riscv32-unknown-elf on a machine with no GPU.

Citation

@misc{qwenti-inference-2026,
  title  = {A 4.6M-parameter language model as an int4 workload on a token-level RISC-V machine},
  author = {OpceanAI},
  year   = {2026},
  url    = {https://huggingface.co/OpceanAI/qwenti-inference}
}

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

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

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForCausalLM
Ревизия весов
d2c6a3d

0 моделей