/ Модель

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

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

Qwen3.8-27B-Hermes-oQ4

Генерация текстаТекст → текст9 профессий
602скачиваний за 30 дней2лайкавеса обновлены21 ноя 2026

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

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

Квантизированная Qwen3.8-27B с объединённым Hermes адаптером для локального программирования и выполнения агентных задач на Apple Silicon.

OnyxAILabs подготовили готовый к запуску чекпойнт Qwen3.8-27B-Hermes-oQ4 для генерации текста и работы в агентном цикле. В основе — плотная модель Qwen3.8-27B с архитектурой Qwen3.5; квантизированные веса TensorFold oQ4 объединены с Hermes LoRA от Nous Research, обученным под harness Hermes Agent. Репозиторий содержит 4-битные safetensors для MLX и рассчитан на Apple Silicon. Интерфейс поддерживает диалог и вызов инструментов; языки карточки — английский и китайский. Базовая модель мультимодальна, однако описанный в README путь запуска ориентирован на текст и не обслуживает изображения.

Модель предназначена для локального программирования, выполнения задач через инструменты и других агентных сценариев. README сообщает о высокой скорости декодирования с DFlash2 на Apple Silicon, но эти показатели измерены автором на M5 Ultra и зависят от задачи и принятия спекулятивных токенов. Приведённые результаты SWE-bench Pro и Terminal-Bench относятся к Hermes адаптеру на исходных BF16 весах, а не к этому квантизированному чекпойнту; качество данной сборки отдельно на этих тестах не проверялось.

Квантизация oQ4 может менять результаты в пограничных случаях, поэтому автор рекомендует проверять модель на целевых задачах. Описанный серверный режим рассчитан на один поток, а DFlash2 обучен на контексте 4096 токенов, что может снижать принятие токенов при длинной генерации. Модель не проходила отдельную настройку безопасности и не предназначена для критически важных решений. Лицензия — Apache-2.0.

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

  • написание и исправление кода локально
  • выполнение задач разработки через Hermes Agent
  • вызов инструментов из диалогового приложения
  • генерация технических ответов на английском и китайском

Ограничения

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3.8-27B-Hermes-oQ4 — harness-tuned, lossless-fast on Apple Silicon

Onyx AI Labs

A ready-to-serve bundle: the Nous Research Hermes adapter fused into Ash Hart's TensorFold oQ4 conversion of Qwen3.8-27B, served with the DFlash2 drafter for ~3–6× lossless decode on Apple Silicon. ~234 tok/s on code, ~82 tok/s on prose.

No fusing required at install time. Pull, serve with the drafter, and point Hermes Agent (or any OpenAI-compatible client) at it.

The headline is quality, not just speed. The Hermes adapter is RL-trained on the Hermes Agent harness. With thinking off, it reaches the base model's thinking-at-max-effort accuracy while generating 3.5–4.4× fewer tokens per task — thinking-level capability at a quarter of the work. Fused into oQ4 and served with DFlash2, that efficiency becomes local, private, and fast.

What this artifact is

A fused, quantized, serving-ready checkpoint. Three upstream works combined, nothing else changed:

  1. Base: Qwen/Qwen3.8-27B (dense vision-language model, Qwen3.5 architecture).
  2. Conversion: TensorFold/Qwen3.8-27B-oQ4 — Ash Hart's mixed-precision MLX oQ4 (4-bit affine base, 160 sensitive modules at 5-bit, one at 6-bit, group size 64).
  3. Adapter: harness-hub/Qwen3.8-27B-hermes-adapted — the Nous Research Hermes LoRA (r=32, α=64), weight-level fused into the oQ4 weights so no LoRA is needed at serving time.

Served by TensorFold (Ash Hart's native Metal engine) with the DFlash2 block-diffusion drafter (z-lab/Qwen3.8-27B-DFlash2, Inco AI). Decoding is lossless: greedy output matches the target exactly; sampling preserves its distribution.

Model details

ItemValue
Base modelQwen/Qwen3.8-27B (Apache-2.0)
QuantizationTensorFold oQ4 mixed precision, affine, group 64; 160 modules @ 5-bit, 1 @ 6-bit
Adapterharness-hub Hermes LoRA, r=32 α=64, fused (scale 2.0) into 256 target modules
FormatMLX safetensors, 4 shards, 2,180 tensors (vision tower intact: 333 tensors)
Weight size~16.6 GB
Architectureqwen3_5 / Qwen3_5ForConditionalGeneration; 64 layers (48 GatedDeltaNet linear-attn + 16 full-attn), hidden 5120, vocab 248,320
Max configured context262,144 tokens
Drafter (separate)z-lab/Qwen3.8-27B-DFlash2 (Apache-2.0), 7 draft tokens/pass
EngineTensorFold 1.3.0 (Apache-2.0), Metal backend
LicenseApache-2.0 (all components; this card relicenses nothing upstream)

Quality — the Hermes adapter (upstream evaluation)

The adapter's published gains, measured by harness-hub / Nous Research on the base BF16 weights under the Hermes Agent harness (one attempt/task, 100-step budget, 131,072-token context, thinking off, T=0.8). Reproduced here from the adapter card, not re-measured on this oQ4 build:

BenchmarkQwen3.8-27B base+ Hermes adapter (thinking off)Δ
SWE-bench Pro (hard 51)29.4%43.1%+13.7 (10 newly solved / 3 lost)
Terminal-Bench 2.1 (85 graded)44.7%58.8%+14.1 (19 / 7, p=0.029)
  • Thinking-level accuracy, thinking off: base-with-thinking-xhigh scores 45.1% / 58.8%; the adapter matches it (43.1% / 58.8%) at 3.5–4.4× fewer generated tokens.
  • Work per solved task: 22 vs 59 turns (SWE-bench Pro), 8 vs 21 (Terminal-Bench); ~2× fewer tokens. Fewer, more targeted actions instead of long exploration.
  • Keep thinking off — as in training. Thinking-on is not significantly more accurate and generates ~3× more tokens; under Hermes Agent it also exhausts context.

Honest scope: these are the adapter's gains on BF16 base weights. oQ4 quantization is lossy; expect a few percent divergence. This bundle's quality is validated by coherence + tool-call spot-checks (below), not re-benchmarked on SWE-bench/Terminal-Bench. Validate on your own workload before production. Full adapter recipe: harness-hub release blogpost.

Performance — measured here (M5 Ultra, TensorFold + DFlash2)

Load- and generation-tested on this bundle's authoring machine:

HardwareConfiguration
HostMac Studio, Apple M5 Ultra, 256 GB unified memory
EngineTensorFold 1.3.0, Metal backend
Serve--no-thinking --context 262144 --parallel 1, DFlash2 drafter
Resident memory~30 GB (parallel 1) / ~69 GB (parallel auto + full 262k KV)
WorkloadDecode tok/sMethod
Code, greedy (900-token sustained)~234T=0, wall-clock, coherent code verified
Code, sampled (T=0.7)~181wall-clock
Prose, greedy~90 (88–105)T=0, warm, n=3
Prose, sampled (T=0.7)~82wall-clock
Plain oMLX oQ6, no drafter (reference)~40same box

~5.8× code / ~2.2× prose vs plain decode. Lossless: a 900-token run produced a correct thread-safe LRU cache + unittest suite; Hermes tool-calling fires clean through the drafter (get_weather({"city":"Reykjavik"}), finish_reason=tool_calls).

Why prose < code, honestly: DFlash2 speeds decode by predicting tokens. Code is highly predictable → high draft acceptance → ~234. Prose from a high-quality model is less predictable → lower acceptance → ~90. A cruder uniform-4-bit build posted higher prose (~133) partly because its output was more predictable (lower quality). Serve config (--parallel 1 vs auto) does not change this. Speed is workload-dependent; these are one M5 Ultra's numbers, not a cross-platform benchmark. M5 Max/Pro and M1–M4 are slower (bandwidth-bound).

Why these settings

Every choice is a deliberate trade-off, not a default:

ChoiceWhy
oQ4 mixed precision (not oQ6/oQ8, not uniform 4-bit)Ash's oQ4 keeps 160 sensitive modules at 5-bit, so quality stays near the base while the pack is ~16.6 GB — fits a 64 GB Mac with room for KV. oQ6 was 22 GB and ~40 tok/s plain; a crude uniform-4-bit requant decoded faster on prose but at a real quality cost (double-quant + more predictable, lower-quality output). oQ4 is the quality/size/speed sweet spot — and TensorFold's --drafter requires a 4-bit target.
DFlash2 drafterThe big decode lever: lossless block-diffusion speculation, 7 tokens/pass, ~3–6× on predictable text. Self-MTP is disabled in this checkpoint (mtp_num_hidden_layers: 0), so a separate drafter is the only speculative path. Apache-2.0, so it bundles cleanly.
TensorFold engine (not oMLX/LM Studio)oMLX 0.8.0 has classic draft-model speculation but not the dflash method. TensorFold 1.3.0 is the native Metal engine with DFlash2 support.
--no-thinkingThe adapter is RL-trained thinking-off; thinking-on generates ~3× more tokens with no significant accuracy gain and exhausts context under Hermes Agent. Matches training and the adapter authors' recommendation.
--context 262144The model's native max. Hermes needs ≥64k and agentic sessions grow long; a 256 GB box has RAM for the full KV. On smaller Macs, start lower and watch memory pressure — configured context is a capability, not a guarantee every host can prefill it.
--parallel 1Single-stream daily driver: same decode speed as auto, less RAM (no multi-stream reservation). Use --parallel auto when serving concurrent callers.
--host 127.0.0.1Local-only by default — a private mind, no LAN exposure. Bind wider only deliberately.
Weight-level fuse, original sharding preservedKeeps the checkpoint loadable by TensorFold's qwen3_5 engine identically to the base, with the vision tower and Ash's per-module precision intact (see above).

Quick start

brew install ashhart/tensorfold/tensorfold          # TensorFold 1.3.0 native engine
tensorfold pull OnyxAILabs/Qwen3.8-27B-Hermes-oQ4   # this bundle
tensorfold pull z-lab/Qwen3.8-27B-DFlash2            # drafter (Apache-2.0)

tensorfold serve OnyxAILabs/Qwen3.8-27B-Hermes-oQ4 \
  --drafter z-lab/Qwen3.8-27B-DFlash2 \
  --host 127.0.0.1 --port 8080 \
  --no-thinking --context 262144 --parallel 1

OpenAI-compatible /v1/chat/completions (also /v1/responses, Anthropic /v1/messages). /health exposes live decode_tokens_per_second, memory, backend, device.

Point Hermes Agent at it (~/.hermes/config.yaml):

model:
  default: Qwen3.8-27B-Hermes-oQ4
  provider: qwen-hermes-local
providers:
  qwen-hermes-local:
    api: http://127.0.0.1:8080/v1
    name: qwen-hermes-local
    api_key: not-needed
    context_length: 262144
    default_model: Qwen3.8-27B-Hermes-oQ4
    transport: chat_completions

Hermes Agent needs ≥64k context. Keep thinking off.

How the weight-level fuse works

The Hermes adapter is a LoRA, so it can be merged into the base weights to produce a standalone checkpoint that any engine serves without LoRA support. The standard tool (mlx_lm.fuse) fails on this combination, for two reasons:

  1. Adapter format mismatch. harness-hub ships a PEFT-format adapter (adapter_model.safetensors with r / lora_alpha / target_modules). mlx_lm.fuse expects mlx-format (adapters.safetensors with num_layers / lora_parameters) and a flat config — on this VL model num_layers lives under a nested text_config, so it raises AttributeError: num_layers.
  2. Vision-tower loss. Even a manual module-level fuse followed by mlx_lm.save serializes only the language model and drops all 333 vision_tower.* tensors, yielding a text-only checkpoint whose config still declares a VL model (broken).

So we fuse at the weight level, touching only the LoRA-target tensors and preserving everything else byte-for-byte:

  1. Load every base oQ4 tensor and the PEFT LoRA (lora_A:[r,in], lora_B:[out,r], fan_in_fan_out=false).
  2. For each of the 256 target modules, map the PEFT key to the model tensor path (...layers.L.<proj>.{weight,scales,biases}). The targets are the 16 full-attention layers' q/k/v/o plus every layer's MLP gate/up/down — the 48 GatedDeltaNet linear-attention layers have no q_proj, so they are not LoRA targets.
  3. Dequantize that module's base weight at its own bits/group_size (read from the config quantization map — 4-bit base, 5/6-bit overrides).
  4. Add the LoRA delta: W' = W + (alpha/r)·(lora_B @ lora_A), with alpha/r = 64/32 = 2.0. No transpose.
  5. Requantize W' at the same bits/group_size, so Ash's per-module mixed precision is preserved exactly (no global re-quant, no precision flattening).
  6. Write the tensors back with the base's original sharding, index, and config — non-target tensors (vision tower, embeddings, norms) are copied untouched.

Verification (asserted before serving): output tensor count 2,180 = base, all four shards indexed, vision tower intact (333 tensors), per-module quant bits preserved (4-bit base + 160×5-bit + 1×6-bit). End-to-end generation + Hermes tool-calling exercised on Apple Silicon (M5 Ultra): coherent correct code, get_weather({"city":"Reykjavik"}) with finish_reason=tool_calls.

The reproducible script (fuse-hermes-weights.py, MLX) is included in this repository. It takes base_dir adapter_dir out_dir and works for any oQ precision (it reads each module's bits from the config).

Limitations

  • Thinking off recommended (as trained). Thinking-on ~3× tokens, no significant accuracy gain, exhausts context under Hermes.
  • Speed is workload-dependent (speculative acceptance). Unpredictable text approaches plain-decode speed.
  • Drafter trained at 4096 context; acceptance may drop on very long generations. Prefix caching (--prompt-cache-gib) mitigates long prompts.
  • Quantization is lossy (oQ4). Near-ties can flip; validate quality on your workload. Use a higher-precision variant when quality matters more than memory.
  • Single-stream lane at --parallel 1; concurrent callers queue. --parallel auto allows streams at higher RAM.
  • Vision tower present but not served by the text-focused TensorFold serve path used here; route images to a vision-capable helper if needed.
  • Not safety-tuned by us; inherits base-model biases and training-data opacity. Not for safety-critical use.
  • Self-MTP is disabled in this checkpoint (mtp_num_hidden_layers: 0); DFlash2 is a separate drafter, not the built-in MTP head.

Attribution and lineage

Authored by Mike Gibbs + Iris Vale — Onyx AI Labs (X @CMichaelGibbs). Integration, weight-level fuse, Apple-silicon serving validation, and packaging by us. Built following MiaAI-Lab's contributor-attribution playbook: every author credited, every upstream traced, nothing relicensed, no invented identities. We stand on the work below — each component is an import with its source and original credit, and all design/training/benchmark credit belongs to its authors.

ComponentSourceCreditLicenseRelationship
Integration (this bundle)this repositoryMike Gibbs + Iris Vale / Onyx AI Labs (X @CMichaelGibbs) — weight-level fuse, M5 Ultra validation, serving kit, cardApache-2.0authors / integration
Base modelQwen/Qwen3.8-27BQwen team, Alibaba — model design, training, benchmarksApache-2.0base
oQ4 conversionTensorFold/Qwen3.8-27B-oQ4Ash Hart / TensorFold — mixed-precision MLX conversion, Apple-silicon validationApache-2.0quantized
Hermes adapterharness-hub/Qwen3.8-27B-hermes-adaptedNous Research / harness-hub (Hermes team) — AsyncGRPO RL on the Hermes Agent harness (TRL, OpenEnv, safeagents)Apache-2.0finetune (LoRA, fused)
Hermes Agent harnessNousResearch/hermes-agentNous Research — the agent framework the adapter is trained forApache-2.0harness
DFlash2 drafterz-lab/Qwen3.8-27B-DFlash2 (mirror of incoai)Inco AI / z-lab — DFlash2 block-diffusion drafterApache-2.0drafter (separate)
DFlash paperDFlash: Block Diffusion for Flash Speculative DecodingChen Jian, Liang Yesheng, Liu Zhijian (ICML 2026)—research foundation
Inference engineashhart/TensorFoldAsh Hart — native Metal/CUDA engine, DFlash2 speculative supportApache-2.0runtime
Attribution methodMiaAI-Lab contributor-attribution playbookMia / MiaAI-Lab — attribution template—methodology

This card does not relicense anything upstream. All upstream licenses are preserved in the repository.

Citation

@misc{qwen38_hermes_oq4_tensorfold_2026,
  title  = {Qwen3.8-27B-Hermes-oQ4: Hermes adapter fused into TensorFold oQ4, lossless-fast on Apple Silicon with DFlash2},
  author = {Gibbs, Mike and Vale, Iris and contributors},
  year   = {2026},
  note   = {Base: Qwen team. oQ4 conversion + TensorFold engine: Ash Hart. Hermes adapter + harness: Nous Research / harness-hub. DFlash2: Inco AI / z-lab; DFlash paper: Chen, Liang, Liu (ICML 2026). Attribution method: MiaAI-Lab.},
  url    = {https://huggingface.co/OnyxAILabs/Qwen3.8-27B-Hermes-oQ4}
}

Please also cite the upstream works: Qwen3.8-27B, the Hermes adapter (harness-hub release blogpost), DFlash2 (Inco AI), and the DFlash paper (Chen et al., ICML 2026).

License

All components Apache-2.0: base Qwen3.8-27B, TensorFold oQ4 conversion, harness-hub Hermes adapter, z-lab DFlash2 drafter, TensorFold engine. A copy of each upstream license is preserved. Integration scripts and this card: Apache-2.0. Review upstream licenses before redistribution or commercial use.

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

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

GPU в ailist

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

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

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

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

0 моделей