/ Модель

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

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

QwenPU

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

Экспериментальная текстовая модель на базе Qwen3.5-4B со встроенными слоями процессора RISC-V и векторного блока для исполнения нейросетевых вычислений внутри трансформера.

1 227скачиваний за 30 дней11лайковвеса обновлены5 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QwenPU — экспериментальная текстовая модель проекта Qwenputer, созданная на основе Qwen/Qwen3.5-4B. Она сочетает стандартную архитектуру Qwen3_5ForCausalLM с 13 предварительными слоями, в которые скомпилированы 32-битный процессор RISC-V и векторный блок. Веса Qwen остаются без изменений; вычислительная схема добавляет возможность исполнять небольшие нейронные сети как программы внутри проходов модели. В демонстрации запускается stories260K — языковая модель на 260 тысяч параметров, реализованная на C.

Модель предназначена для экспериментов с исполнением программ и нейросетевых вычислений внутри трансформера, а также для изучения компиляции вычислительных блоков в слои модели. Контекст составляет 262 144 токена; модель текстовая и имеет интерфейс генерации текста и диалога. Контрольные проверки авторов показывают точное совпадение вычислений с эталонной моделью на проверенных сценариях.

Авторы отмечают, что работа над проектом продолжается. Полный чекпойнт занимает 26,7 ГБ и для загрузки целиком требует GPU с 40 ГБ или больше; отдельные проверки слоёв и демонстрация помещаются на GPU с 24 ГБ. Репозиторий распространяется по лицензии Apache-2.0.

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

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

Ограничения

Проект находится в разработке; полный чекпойнт занимает 26,7 ГБ и для загрузки целиком требует GPU с 40 ГБ или больше. Точные результаты проверок относятся к описанным автором сценариям и не подтверждают качество модели для широкого круга задач.

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

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

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

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

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

Открыть на Hugging Face

Code on GitHub · Qwenputer · Base model: Qwen/Qwen3.5-4B · Apache-2.0

QwenPU is Qwen3.5-4B with a 32-bit RISC-V CPU and a vector unit compiled into its weights. The vector unit runs a whole neural network inside the model's forward passes: Andrej Karpathy's stories260K, the 260K-parameter Llama from llama2.c, runs as a program on it and writes its stories.

It's part of Qwenputer: the same CPU, compiled into transformer layers in front of Qwen's own, every weight set by a compiler, with Qwen3.5's Gated DeltaNet state as its memory. Qwenputer-npu gave that CPU dot-product instructions. QwenPU gives it a vector unit of its own: separate memories in DeltaNet heads, 64-lane matrix rows a token, and whole vector results streamed through the token stream.

Work in progress. QwenPU is exact, but not yet small: the checkpoint is 26.7 GB, so it needs a 40 GB or larger GPU to load whole. The story demo and the checks run the computer's layers on their own and fit a 24 GB GPU. Trimming the hidden size, and with it the checkpoint, is next.

A language model inside the language model

stories260K is a C program here (guests/stories260k/stories_vx.c). Its int4 weights sit in the vector unit's weight memory, loaded from the program, and every matrix row, residual add, softmax and attention read is a vector op. None of it is compiled into the checkpoint, so any model that fits runs the same way.

Build of stories260KTrace tokens per story token
Plain C, int8 weights2,430,000
Qwenputer-npu: VDOT + SMAQA225,000
QwenPU: the vector unit53,000

Every build writes the same story, token for token:

Once upon a time, there was a little girl named Lily. She loved to play outside in the park. One day, she saw a big, red ball. She wanted to play with it, but it was too high

The vector unit

OpDoes
VMATint8 · int4 matrix rows, 64 lanes a token, times the row scale; or the argmax
VQquantizes a vector register into int8 activations or a K / V cache row
VEWresidual add, SiLU-gated product, RoPE
VMATRattention scores over the K cache; probabilities times the V cache
VEXPexp-table softmax numerators
VREDsum or sum of squares of the activations
VGET, VPUTmove values between the CPU and the unit

Its memories are DeltaNet heads: 16 vector registers of 64 words, 384 int8 activations, 4,152 row-chunks of int4 weights, and K / V caches for 32 positions. An op's record starts with config tokens carrying its operands, then streams its results, and each token is one exact step of the compiled layers. SiLU and exp are fixed-point function units, generic like the CPU's adders.

Checks

  • Every vector op runs random test programs on this checkpoint's own chip layers, teacher-forced against a reference model of the unit, along with the first 30,000 steps of the story program: zero mismatches.
  • The circuit's executor writes the whole story free-running on a GPU, checked against the reference at every one of its 3,184,920 steps: exact. It runs at about 3,300 trace tokens a second on an L4, so a story token takes about 16 seconds, against 41 for Qwenputer-npu.

Quickstart

git clone https://github.com/divagr18/QwenPU && cd QwenPU && uv sync --extra hf
uv run python guests/stories260k/storyrun.py guests/stories260k/stories_vx.elf --vx
hf download divagr1925/QwenPU --local-dir qwenpu
uv run python -m chipformer.rv.vxcheck qwenpu guests/stories260k/stories_vx.elf

storyrun writes the story on the computer's executor; vxcheck runs the vector unit on this checkpoint's layers (--chip-only loads only those on the GPU, about 13 GB).

Model details

BaseQwen/Qwen3.5-4B, Qwen's own weights unchanged
Architecturestock Qwen3_5ForCausalLM (text only); config-only changes
Computer13 compiled layers before Qwen's 32: RV32IM + Zba + bignum unit + the vector unit
Hidden size5120 (Qwen's 2560 plus the computer's dims)
VocabularyQwen's, plus 394,164 trace tokens
Size26.7 GB in bf16, mostly zero padding
Precisionexact in bf16

Citation

Author: Divyansh Agrawal (ORCID: 0009-0003-0739-2473).

Cite this Hugging Face model artifact using its DOI:

@misc{agrawal2026qwenpu_model,
  author    = {Agrawal, Divyansh},
  title     = {{QwenPU}},
  year      = {2026},
  publisher = {Hugging Face},
  version   = {0ea39d7},
  doi       = {10.57967/hf/11460},
  url       = {https://huggingface.co/divagr1925/QwenPU},
  license   = {Apache-2.0},
  note      = {Model artifact. Author ORCID: https://orcid.org/0009-0003-0739-2473}
}

This DOI identifies the model artifact, not a GitHub source-code release. For the MIT-licensed source code, use the separate software citation in the QwenPU repository.

License

Apache-2.0. This is a modified version of Qwen/Qwen3.5-4B: the config is widened and computer layers are added, but Qwen's own weights are unchanged. stories260K and llama2.c are by Andrej Karpathy (MIT).

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей