/ Модель

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

Контекст
262 144 токена
Размер весов
55,6 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.8-27B
Опубликована
22 ноя 2026

Qwen3.8-27B-pi-adapted-merged

Изображение и текст → текст6 профессий
222скачиваний за 30 дней0лайковвеса обновлены22 ноя 2026

Описание модели

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

Слитая с LoRA-адаптером для pi версия Qwen3.8-27B предназначена для программирования и выполнения задач в терминале.

Это слитая версия Qwen3.8-27B с LoRA-адаптером для coding-agent pi. Репозиторий подготовил автор zonca: адаптер harness-hub/Qwen3.8-27B-pi-adapted объединён с базовыми весами, а результат сохранён в float16. Модель плотная, мультимодальная, с поддержкой изображений; в чекпойнте сохранена голова multi-token prediction (MTP).

Модель предназначена прежде всего для программной разработки и задач в терминале под агентом pi. Автор адаптера сообщает об улучшении результатов на SWE-bench Pro и Terminal-Bench 2.1, однако эти показатели получены на адаптере под pi, а не на отдельной оценке данного слитого чекпойнта. Репозиторий рассчитан на дальнейшую конвертацию и квантование; описаны варианты запуска через Ollama с MLX на Apple Silicon и через llama.cpp, причём преобразование в GGUF теряет MTP и ускорение спекулятивного декодирования.

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

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

  • решение задач SWE-bench в агентной среде pi
  • выполнение команд и отладка в терминале
  • помощь агенту при изменении и анализе кода
  • запуск coding-agent на Apple Silicon через Ollama и MLX
  • анализ изображений в сценариях, где нужна мультимодальная база

Ограничения

Улучшения оценивались авторами адаптера под pi, поэтому их перенос на другие агентные среды не подтверждён. Адаптер обучался с выключенным режимом рассуждений; визуальная башня не дообучалась и отдельно не оценивалась.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Qwen3.8-27B with the pi coding-agent adapter, merged and stored as float16

This is Qwen/Qwen3.8-27B with the LoRA adapter harness-hub/Qwen3.8-27B-pi-adapted merged into the base weights and written back as float16 instead of bfloat16.

The adapter is the one Hugging Face trained with AsyncGRPO inside the pi coding agent: on its own card it lifts SWE-bench Pro (hard 51) from 39.2% to 64.7% and Terminal-Bench 2.1 from 39.5% to 55.8%, with fewer than half the turns per solved task.

What this repository adds. A merged checkpoint that anybody can quantize. There was no merged copy of this adapter in a format that keeps the model's multi-token prediction (MTP) head, so this repository is built to make the two useful downstream artifacts possible:

  • Apple Silicon / Ollama, native MLX with speculative decoding. Import it with ollama create -q nvfp4 (see below). The MTP tensors are carried over untouched, so the MLX engine keeps self-drafting: about 30 tok/s decode instead of the ~15 tok/s the memory bandwidth alone allows on an M4 Pro.
  • GGUF for llama.cpp. Convert it with convert_hf_to_gguf.py as usual. Note that a GGUF conversion does not carry the MTP head, so decode speed drops.

It is deliberately not published as a GGUF or as an oQ/oQ4e MLX build. Those are easy to make from this checkpoint and lose either the MTP head or precision, and a merged float16 base is the artifact that lets each user choose.

Files

  • 18 shards of model-*.safetensors in float16 (about 55 GB in total), plus config.json (dtype: float16), model.safetensors.index.json, tokenizer, chat template and preprocessor files copied from the base.
  • merge_report.json, the per-tensor record of what was merged (delta RMS, weight magnitude) written by the merge script.

Every tensor name and every shard boundary is identical to the base checkpoint, so the base's model.safetensors.index.json applies unchanged.

How it was built

  1. Merge, in float32, written as float16. For each LoRA pair, W + (alpha / r) * B @ A with r = 32, alpha = 64 (scale 2.0, PEFT's convention), computed in float32 and stored as float16. The LoRA touches 256 modules: q_proj, k_proj, v_proj, o_proj on the 16 full-attention layers, and gate_proj, up_proj, down_proj on all 64 layers. Vision tower, embeddings, norms and the 15 mtp.* tensors are copied through.

  2. Why float16 and not bfloat16. A LoRA delta here has an RMS of about 1e-5 against weights whose absolute maximum is 0.1 to 0.9, so the change is around 1e-4 per weight. That is below bfloat16's resolution at that magnitude, and saving the merge in bfloat16 keeps only a fraction of the adapter (another independent merge of this same adapter measured 65 to 82% of the delta surviving in bfloat16, and 99.9 to 100% in float16). Tensors the adapter does not touch are upcast bfloat16 to float16, which is exact: bfloat16 has a wider exponent but a shorter mantissa, so every normal bfloat16 value is representable in float16.

  3. Streaming, one shard at a time. PeftModel.merge_and_unload() needs the whole base model in RAM (55 GB). The merge instead opens one shard, converts one tensor at a time, and writes the output shard with a streaming writer, so peak memory is one tensor plus its float32 delta (well under 1 GB). It runs on a laptop.

  4. Verified before publishing. For every shard: all base tensors present, float16 dtype, shapes unchanged; untouched tensors bit-identical to the base; and every merged tensor bit-identical to an independent recomputation of W + scale * B @ A done with einsum instead of matmul. All 256 LoRA pairs matched a base tensor, none was left over.

Scripts: zonca/lora-merge-tools, the streaming merge and verifier plus the parallel-range downloader, the post-upload sha256 check and the audit of the published repository. They take any sharded checkpoint and any PEFT LoRA, not just this pair, and the repository also has bench_ollama.py, the prefill and decode benchmark used on the machine.

Use it on Apple Silicon with Ollama (keeps MTP)

Convert to the native MLX nvfp4 format that Ollama's MLX engine reads. This is what the official qwen3.8:27b-nvfp4 tag is, and it preserves the mtp.* tensors, so speculative decoding keeps working.

hf download zonca/Qwen3.8-27B-pi-adapted-merged --local-dir Qwen3.8-27B-pi-merge

# clone the template and parameters of the base tag, keep everything but FROM
ollama show --modelfile qwen3.8:27b-nvfp4 | grep -v '^FROM' > Modelfile
printf 'FROM ./Qwen3.8-27B-pi-merge\n' | cat - Modelfile > Modelfile.new && mv Modelfile.new Modelfile

ollama create qwen3.8-pi:27b-nvfp4 -q nvfp4 -f Modelfile
ollama show qwen3.8-pi:27b-nvfp4        # artifacts should list 15 MTP layers

Notes:

  • ollama create from MLX safetensors needs Ollama 0.34.1 or newer; on older builds add --experimental after create.
  • Import as MLX, not as GGUF. On Ollama the nvfp4 quantization is always the native MLX engine, never llama.cpp, and MLX is the path that reads the MTP head. A GGUF import works but loses speculative decoding.
  • If tool calls come out malformed, the chat template was not picked up: add RENDERER qwen3.5 and PARSER qwen3.5 to the Modelfile (the family Qwen 3.8 belongs to) and recreate.
  • The adapter was trained with thinking off. Send "think": false, or the equivalent in your client.
  • ollama create needs roughly 55 GB of free disk for the download plus the converted artifact, and it quantizes on the machine, so give it a few minutes.

Use it with llama.cpp

python convert_hf_to_gguf.py Qwen3.8-27B-pi-merge --outfile qwen3.8-pi-f16.gguf --outtype f16
llama-quantize qwen3.8-pi-f16.gguf qwen3.8-pi-Q4_K_M.gguf Q4_K_M

Limitations

  • No benchmarks of my own yet. The numbers above are the adapter author's, on the unmerged adapter under pi. This repository only claims the merge is faithful; a separate evaluation on a smaller machine is in progress.
  • Trained for pi, on software-engineering and terminal tasks. Gains under other harnesses are not established.
  • Thinking on is outside the adapter's training. It still works, and the adapter card reports it reaches the base model's xhigh score, at about 4x the tokens.
  • The vision tower is untouched and was not evaluated by the adapter authors or by me.
  • float16 rather than bfloat16 changes the storage dtype only; the numerics of the merged tensors are the ones the merge produced in float32.

Licence

Apache 2.0, inherited from the base model and the adapter. Base weights by the Qwen team, adapter by Hugging Face (harness-hub). Merge performed with the scripts above; no additional training.

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

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

0 моделей