/ Модель

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

Лицензия
Apache 2.0
Базовая модель
KAT-Coder-V2.5-Dev
Библиотека
transformers
Опубликована
13 окт 2026

Qwen3.8-KAT-AgentWorld-35B-A3B-Coder-GGUF

Генерация текстаТекст → текст7 профессий
1 405скачиваний за 30 дней43лайкавеса обновлены13 ноя 2026

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

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

Слитая MoE-модель в формате GGUF для агентного программирования, генерации и исправления кода и работы с инструментами.

Qwen3.8-KAT-AgentWorld-35B-A3B-Coder-GGUF — набор GGUF-квантований модели pragmaticcs, созданный слиянием трёх моделей на гибридной MoE-архитектуре Qwen 3.5. Разработчик позиционирует её как модель для агентного программирования: она объединяет генерацию и правку кода, работу с репозиториями, рассуждения и вызовы инструментов. Общий размер текстовой части — 34,7 млрд параметров, из которых около 3,3 млрд активны на токен; компоненты vision и MTP удалены.

Модель предназначена для задач разработки с инструментами: генерации патчей и рефакторинга, работы в терминале, анализа ошибок выполнения и многошагового решения задач по коду. README заявляет поддержку шаблонов вызова инструментов JSON-RPC и XML, а также режимов с внутренними рассуждениями. В метаданных указаны английский и китайский языки. Репозиторий содержит варианты GGUF Q4_K_M, Q5_K_M, Q6_K и Q8_0.

Модель распространяется по лицензии Apache-2.0. Доступ к репозиторию ограничен автором: README сообщает, что загрузка предоставляется через сообщество Patreon. Заявления о качестве и методе слияния приведены разработчиком; независимых результатов проверки в предоставленных данных нет.

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

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

Ограничения

Заявленные способности и показатели приведены в README разработчика и не подтверждены независимой оценкой в предоставленных данных. Для скачивания требуется доступ, выдаваемый через Patreon, согласно README.

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

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

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

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

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

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

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

Открыть на Hugging Face

[!TIP]

Free Model Access 🔓

This model is gated, but 100% free to download for my free tier Patreon community members.

  1. Open the Free Patreon Unlock Post.
  2. Join as a free member & submit your Hugging Face username.
  3. Your HF account will be approved automatically for instant download!

👉 Become a free member of my Patreon to unlock access to this model.

NOTE: I am not approving the access requests sent via the official huggingface gated request form above. The only way to get access is by becoming a free member of my Patreon, where I plan to post more exclusive models in the near future.

Qwen3.8-KAT-AgentWorld-35B-A3B-Coder

Patreon Exclusive License Architecture Active Params Context

[!NOTE] This repository provides quantized GGUF builds of pragmaticcs/Qwen3.8-KAT-AgentWorld-35B-A3B-Coder

Most coding fine-tunes generate clean snippets in isolation but choke on real developer workflows: running bash commands, parsing runtime errors, and navigating large repositories. Generalist reasoning models have the opposite problem: solid high-level logic, but brittle git/diff formatting and inconsistent tool calls.

Qwen3.8-KAT-AgentWorld-35B-A3B-Coder solves this problem by merging three specialized models on the Qwen 3.5 35B A3B architecture into a fast, practical coding workhorse:

  • Kwaipilot/KAT-Coder-V2.5-Dev (Anchor): SOTA open coding core (69.4% SWE-bench Verified), providing raw patch generation, refactoring, and code synthesis.
  • Qwen/Qwen-AgentWorld-35B-A3B (Donor 1): Trained on 10M+ trajectories across terminal, SWE, MCP, and OS tasks to keep tool use disciplined and prevent repetition loops when commands fail.
  • empero-ai/Qwen3.8-35B-A3B-Distill (Donor 2): Frontier reasoning and algorithmic problem-solving to handle complex logic without prompt brittleness.

Contents


Architectural Specifications

ParameterSpecification
Total Parameters34.7B (Text Backbone; Vision & MTP excised)
Active Parameters per Token~3.3B (8 Routed Experts + 1 Shared Expert)
Architecture ClassHybrid Recurrent-Attention MoE Causal LM (Qwen3_5MoeForCausalLM)
Hidden Dimension (dmodel)2048
Intermediate Dimension (dintermediate)512 per routed expert (131,072 collective) / 2048 shared expert
Decoder Layers40
Routed Experts256 Total (Top-8 routing via softmax gate)
Shared Experts1 Unconditional Shared Highway Expert
Attention Topology10 Blocks × (3 Gated DeltaNet Recurrent Layers : 1 Gated Softmax Layer)
Full Attention LayersLayers 3, 7, 11, 15, 19, 23, 27, 31, 35, 39
Linear Attention Configuration16 Key Heads / 32 Value Heads (dk = dv = 128)
Full Attention Configuration16 Query Heads / 2 Key-Value Heads (GQA, dh = 256)
Position EmbeddingYaRN RoPE (θ = 10⁷, Factor = 4.0, Original = 262,144)
Context Window Length262,144 tokens (256k)
Native Precisionbfloat16
Vocabulary Size248,320 (Synchronized for tool-calling and CoT tokens)

Composition & Triad Specialization

The architecture treats KAT-Coder-V2.5-Dev as the topological parameter anchor (W₀). Two complementary donor models inject non-overlapping cognitive subspaces governed by a continuous depth schedule over normalized layer index u = l / 39, where l ∈ [0, 39]:

ModelStructural RolePrimary CapabilitiesDepth Priority
Kwaipilot/KAT-Coder-V2.5-DevAnchor Baseline (W₀)SOTA 69.4% SWE-bench verified patch generation, repo AST parsing, code diff synthesis, refactoring purity.Global Foundation (50%–75%)
Qwen/Qwen-AgentWorld-35B-A3BEnvironment Donor (Δ₁)Language world modeling, terminal execution anticipation, multi-turn tool schema integrity, error rollback heuristics.Deep Output Layers (Ascending to 35%)
empero-ai/Qwen3.8-35B-A3B-DistillReasoning Donor (Δ₂)Frontier CoT distillation, competitive algorithmic decomposition, math logic, multi-language semantic grounding.Central Decoder Core (Peaking at 30%)

Merge Methodology & Mathematical Formulation (HSCM-DP)

Standard merging strategies (such as naive SLERP or uniform DARE-TIES) degrade complex MoE hybrid networks. In a 35B A3B backbone, uniform coordinate dropping corrupts the recurrent eigenvalues of linear attention kernels and induces routing collapse across the 256 expert gates.

The HSCM-DP (Heterogeneous Subsystem Consensus Merging with DeltaNet Preservation) engine solves these failure modes by dividing the parameter space into distinct mathematical manifolds.

1. Anchor-Relative Task Formulation

Task delta vectors are computed strictly relative to the verified coding anchor W₀:

$$ \Delta_1 = W_{\text{AgentWorld}} - W_0, \qquad \Delta_2 = W_{\text{Qwen3.8}} - W_0 $$

2. Continuous Depth Schedule & Partition of Unity

Donor mixing weights are continuously modulated across layer depth l ∈ [0, 39]:

$$ \beta(l) = 0.10 + 0.25 \left(\frac{l}{39}\right)^{1.5} \quad (\text{AgentWorld: Tool & Terminal Ramp}) $$

$$ \gamma(l) = 0.15 + 0.15 \exp\left(-\frac{(l - 20)^2}{72}\right) \quad (\text{Qwen3.8: Central Reasoning Envelope}) $$

$$ \alpha(l) = \max\left(0.45, , 1.0 - \beta(l) - \gamma(l)\right) \quad (\text{Anchor: Coding Core Stability}) $$

The scalar coefficients are normalized such that:

$$ \tilde{\alpha}(l) + \tilde{\beta}(l) + \tilde{\gamma}(l) = 1.0 $$

This schedule ensures the coding specialist (W₀) retains majority control throughout the stack, while Qwen3.8 provides deep reasoning in the middle layers, and AgentWorld directs terminal command emission at the final projection layers.

3. Gram-Schmidt Orthogonal Task Disentanglement

Fine-tuned models frequently share conversational alignment drift, creating collinear task vectors that cause destructive cancelation or over-amplification. The shared collinear component is projected out of Donor 2:

$$ \Delta_2^{\parallel} = \frac{\langle \Delta_1, \Delta_2 \rangle}{|\Delta_1|_F^2 + \epsilon} \Delta_1 $$

$$ \Delta_2^{\perp} = \Delta_2 - \Delta_2^{\parallel} $$

By injecting only the strictly orthogonal delta Δ₂⊥, the model absorbs 100% of Qwen3.8's unique algorithmic reasoning without double-counting shared fine-tuning updates.

4. MoE Router Gate Frobenius Isometry (Entropy Calibration)

When high-dimensional routing gate matrices (Wgate ∈ ℝ2048 × 256) are linearly blended, Euclidean norm shrinkage contracts the logit scale:

$$ \left|\tilde{W}_{\text{gate}}\right|_F < \tilde{\alpha} |W_0|_F + \tilde{\beta} |W_1|_F + \tilde{\gamma} |W_2|_F $$

In a softmax routing gate, smaller logit magnitudes act as an artificial temperature spike:

$$ \lim_{|W_{\text{gate}}| \to 0} \operatorname{Softmax}\left(\frac{x W_{\text{gate}}}{\sqrt{d}}\right) = \left[\frac{1}{256}, \dots, \frac{1}{256}\right] $$

This causes uniform expert firing and expert starvation. HSCM-DP enforces Frobenius Norm Isometry anchored on KAT-Coder:

$$ \tilde{W}{\text{gate}} = 0.60 W{0, \text{gate}} + 0.25 W_{1, \text{gate}} + 0.15 W_{2, \text{gate}} $$

$$ W_{\text{gate}}^{\text{final}} = \tilde{W}{\text{gate}} \cdot \left(\frac{|W{0, \text{gate}}|F}{|\tilde{W}{\text{gate}}|_F + \epsilon}\right) $$

This mathematically guarantees that the routing entropy, sharpness, and expert dispatch calibration of the base coding specialist are preserved.

5. Outlier Feature & Channel-Kurtosis Shielding

Large language models exhibit emergent outlier feature channels (Z > 3.0) along the input dimension that maintain code indentation, markdown block delimiters, and AST tree boundaries.

For projection matrices W₀ ∈ ℝdout × din, column-wise L₂ norms are evaluated:

$$ Z_j = \frac{|W_{0, (:, j)}|_2 - \mu_c}{\sigma_c + \epsilon} $$

Donor updates along channels with Zj > 3.0 are attenuated by a protection factor:

$$ \Omega_j = \frac{1}{1 + 0.5 \cdot (Z_j - 3.0)} $$

$$ \Delta_{:, j}^{\text{protected}} = \Omega_j \cdot \Delta_{:, j} $$

This prevents donor perturbation from degrading whitespace tracking and syntax formatting.

6. Row-Wise Continuous Directional Forget-Gating

When fine-tuning on conversational datasets, certain neuron rows rotate counter to core coding representations. Rather than applying a binary sign mask, HSCM-DP evaluates row-wise directional cosine alignment:

$$ \cos \theta_{i} = \frac{\langle W_{0, (i, :)}, , \Delta_{(i, :)} \rangle}{|W_{0, (i, :)}|2 |\Delta{(i, :)}|_2 + \epsilon} $$

Neurons exhibiting counter-directional drift (cos θi < 0) are exponentially dampened:

$$ \Phi_i = \begin{cases} 1.0 & \text{if } \cos \theta_i \ge 0 \ \exp(-2.0 \cdot |\cos \theta_i|) & \text{if } \cos \theta_i < 0 \end{cases} $$

$$ \Delta_{(i, :)}^{\text{gated}} = \Phi_i \cdot \Delta_{(i, :)} $$

This allows donors to enrich feature representations while preventing them from inverting established coding weights.

7. Truncated SVD Denoising of Dense Projections

In dense attention and shared expert projections, task vectors are projected into their principal low-rank singular subspace to remove high-frequency optimizer noise:

$$ \Delta = U \Sigma V^T = \sum_{r=1}^{\min(m, n)} \sigma_r u_r v_r^T $$

The spectrum is truncated to retain 85% of the total Frobenius energy (S²):

$$ k^* = \arg\min_k \left( \frac{\sum_{r=1}^k \sigma_r^2}{\sum_{r=1}^{\min(m, n)} \sigma_r^2} \ge 0.85 \right), \quad k^* \le 128 $$

$$ \Delta^{\text{denoised}} = \sum_{r=1}^{k^*} \sigma_r u_r v_r^T $$

8. Expert-Salience Dynamic Routing & Pareto Pruning

For the 256 routed experts (dintermediate = 512), standard SVD would reduce representational capacity. Instead, experts are merged using Relative Drift Salience:

$$ \mathcal{D}k(e) = \frac{|\Delta{k, e}|F}{|W{0, e}|_F + \epsilon} $$

Dynamic blending coefficients for expert e are calculated as:

$$ w_{1, \text{sal}} = \beta(l) \sqrt{\mathcal{D}1(e) + 10^{-4}}, \qquad w{2, \text{sal}} = \gamma(l) \sqrt{\mathcal{D}_2(e) + 10^{-4}} $$

Surviving weights are filtered via deterministic Pareto energy thresholding (Eratio = 0.90) and smoothed using continuous magnitude-weighted consensus damping:

$$ A_{ij} = \frac{|\Delta_{1, ij} + \Delta_{2, ij}|}{|\Delta_{1, ij}| + |\Delta_{2, ij}| + \epsilon} $$

$$ \Delta_{\text{expert}} = \left(b_{\text{dyn}} \Delta_{1}^{\text{clean}} + g_{\text{dyn}} \Delta_{2}^{\text{clean}}\right) \odot A^{1.5} $$

If AgentWorld extensively modified an expert (e.g., shell parsing), that expert receives a higher donor weight. If an expert was untouched, KAT-Coder maintains full control.

9. Contractive Spectral-Radius Clamping for DeltaNet Recurrence

In Gated DeltaNet layers (30 of the 40 layers), linear attention relies on the state-space recurrent update:

$$ S_t = S_{t-1}(I - \beta_t q_t k_t^T) + v_t k_t^T $$

To prevent numerical divergence over long contexts, the recurrent transition operators (linear_attn kernel and decay projections) must remain contractive (spectral radius σmax ≤ 1.0).

Using power iteration, the dominant singular values of the anchor and merged matrices are computed:

$$ \sigma_0 = \sigma_{\max}(W_0), \qquad \sigma_{\text{raw}} = \sigma_{\max}(W_{\text{raw}}) $$

If the merged matrix exceeds the anchor's spectral bound, it is scaled down:

$$ W_{\text{final}} = \begin{cases} W_{\text{raw}} \cdot \left(\frac{\sigma_0}{\sigma_{\text{raw}} + \epsilon}\right) & \text{if } \sigma_{\text{raw}} > \sigma_0 \ W_{\text{raw}} & \text{otherwise} \end{cases} $$

This ensures numerical stability across the entire 262,144 token context window.

10. Geodesic Norm Conservation

Linear combinations in high dimensions contract the matrix norm. For all projections, the output matrix is rescaled to match the target energy norm:

$$ \mathcal{S}^* = \tilde{\alpha}(l) |W_0|_F + \tilde{\beta}(l) |W_1|_F + \tilde{\gamma}(l) |W_2|_F $$

$$ W_{\text{final}} = W_{\text{raw}} \cdot \left(\frac{\mathcal{S}^*}{|W_{\text{raw}}|_F + \epsilon}\right) $$

This prevents hidden-state variance decay across the 40 decoder layers.


Layer-Stratified Component Policies

Parameter SubsystemTarget IdentifiersApplied PolicyDensity / RankMathematical Invariants
Embeddings & LM Headembed_tokens, lm_headGeodesic Norm Blend1.0Convex projection; vocabulary dimension aligned to 248,320.
MoE Router Gatesmlp.gate.weightFrobenius Norm Isometry1.0 (No DARE)Logit scale matched to |W₀|F; preserves softmax routing entropy.
Linear Attention (DeltaNet)linear_attn.*DARE-Free Smooth Addition1.0Power-iteration spectral clamping guarantees σmax ≤ σ₀.
Full Attention Projectionsself_attn.q/k/v/o_projGS-Orthogonal + SVD DenoiseRank ≤ 128Kurtosis protection (Z > 3.0); 85% Frobenius energy retention.
MoE Shared Expertmlp.shared_expert.*GS-Orthogonal + SVD DenoiseRank ≤ 128Provides common syntactic grounding across all tokens.
256 Routed Expertsmlp.experts.*Salience Routing + Soft TIES90% EnergyPareto pruning; consensus agreement damping (A1.5).
Normalization Layers*layernorm*, normConvex Weighted Average1.0Preserves variance calibration across residual layers.

Agentic Chat Template & Multi-Tier CoT

This model uses the Improved Chat Template for Qwen 3.x to support multi-tier Chain-of-Thought reasoning, dual-format agentic tool execution (JSON and XML), automatic error recovery, and strict token-waste elimination.

Template Features

  • Multi-Tier <thought> Reasoning: Supports explicit internal reasoning traces before tool calls and final code synthesis.
  • Dual Tool Calling Schemas: Compatible with both JSON-RPC function calls and XML tool tags for terminal, editor, and search operations.
  • Circuit-Breaker Recovery: Suppresses repetition loops when shell commands or linters return non-zero exit codes.

Recommended Generation Parameters

For repository-level software engineering, bug localization, and automated tool use:

ParameterRecommended ValueDescription
Temperature0.6Balances strict syntactic validity with algorithmic path exploration.
Top-P0.95Eliminates low-probability token tails while preserving alternative logic paths.
Top-K20Restricts token candidate pools to prevent architectural syntax drift.
Min-P0.0 (Off)Disabled in favor of explicit Top-K / Top-P governance.
Repetition Penalty1.0 (Off)Disabled to prevent syntax degradation in repetitive code patterns (indentation, braces).
Presence Penalty0.0Prevents naming mutations across long-context symbol resolution.

Citation & References

@inproceedings{yadav2023ties,
  title={Resolving Interference When Merging Models},
  author={Yadav, Prateek and Tam, Derek and Choshen, Leshem and Raffel, Colin and Bansal, Mohit},
  booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
  volume={36},
  pages={7093--7115},
  year={2023}
}

@article{yu2024dare,
  title={Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch},
  author={Yu, Le and Yu, Bowman and Yu, Haiyang and Huang, Fei and Li, Yongbin},
  journal={arXiv preprint arXiv:2311.03099},
  year={2023}
}

@article{yang2024deltanet,
  title={Gated Delta Networks: Improving Mamba2 with Delta Rule for Linear Recurrent Attention},
  author={Yang, Songlin and Wang, Bailin and Shen, Yikang and Panda, Rameswar and Kim, Yoon},
  journal={arXiv preprint arXiv:2412.06464},
  year={2024}
}

Patreon

🚀 New Release: Looking for my latest work? Check out the new MiMo-HERO-UIUX-Designer-9B-GGUF! Instant access is available to Pro members of my Patreon community.

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

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

GPU в ailist

llama.cpp

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

Подбираем GPU…

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

0 моделей