Skip to content
Computer vision

uCoder-v2-MoE-26B

Advanced multimodal model for developers and system analysis

2 min readupdated

The uCoder-v2-MoE-26B model by author uaytug is a multimodal sparse MoE (Mixture-of-Experts) language model with 26.4 billion total parameters and 3.4–5.4 billion active parameters due to its looped architecture. It is designed for programming, system and security analytics, tool-use agent tasks, as well as image processing and code-based graphics generation. The model supports a context window of up to 1 million tokens and comes with built-in weights for speculative decoding. It is ideally suited for engineers, developers, and researchers tackling complex multi-step tasks.

Key features

  • Looped architecture: 24 physical layers with a triple pass for layers 6–17 (48 effective application layers per token).
  • Multimodality: Built-in Vision Transformer for analyzing diagrams, documents, and UI, with programmatic graphics generation (SVG, HTML/CSS).
  • Tools and JSON: Reliable structured tool calling, error handling, and adherence to complex constraints.
  • Speculative decoding: Includes weights for a 3-layer MTP / DSpark drafter to accelerate generation.

What you can do

  • Development and code patching: Create and patch files in Python, TypeScript, JavaScript, or Rust with static type error correction.
  • Security analysis: Synthesize detection rules (YARA, Sigma, Suricata) and write vulnerability patches.
  • Interface and diagram analysis: Upload images of diagrams or mockups to generate precise web interface and chart code.
  • Server deployment: Run the model locally via llama.cpp with a speculative drafter for rapid IDE responses.

Example

Running model inference via Transformers:

import torch
from transformers import AutoModelForMultimodalLM, AutoProcessor

model_id = "uaytug/uCoder-v2-MoE-26B"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
    model_id,
    dtype=torch.bfloat16,
    device_map="auto",
)

messages = [{"role": "user", "content": "Implement a constant-time HMAC verification helper in Rust."}]
prompt = processor.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    reasoning_effort="high",
)
inputs = processor.tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1536, temperature=0.6, top_p=0.95)
print(processor.tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=False))
Read moreDetails
• Architecture: Looped Multimodal Sparse MoE (128 experts, top-8 active)
• Context window: up to 1,000,000 tokens
• Metrics: 6-direction average — 0.6477, Tool Use — 1.0
• Formats: BF16 Safetensors and GGUF quantizations (from BF16 to IQ1_S)
• License: Apache 2.0
Discuss Telegram 0

Will it run?

Runs in 4-bit

Full precision does not fit, a quantised version does: quality barely changes down to 8 bits, more noticeably at 4 bits.

  • BF16weights 49 GB · ready files55 GB
  • FP8 / INT8recommendedweights 25 GB28 GB
  • 4-bitweights 14 GB16 GB

Tip: go 8-bit.FP8 / INT8 is within about a percent of full precision in quality, takes half the memory and runs faster on RTX 40/50 and H100. Full precision only pays off for fine-tuning.

Estimate: weights plus working memory. Long videos, high resolutions and long contexts need more.

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # uaytug/uCoder-v2-MoE-26B
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download uaytug/uCoder-v2-MoE-26B --local-dir ~/models/uCoder-v2-MoE-26B
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to uCoder-v2-MoE-26B
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b41from November 25, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of uCoder-v2-MoE-26B (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

uaytug/uCoder-v2-MoE-26B
Author
uaytug
Category
Computer vision
Released
Posted

On NeyroLearn

Hugging Face

00

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments

Computer vision

Orange

Orange