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 more
Details• 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










Comments