pytorch / pytorch/executorch

Support DeepSeek-VL2 models with MoE and MLA in ExecuTorch

Open
#8,132 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

module: llm triaged
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

🚀 The feature, motivation and pitch

DeepSeek recently released their Mixture-of-Experts Vision-Language Models, DeepSeek-VL2

DeepSeek-VL2-Tiny, DeepSeek-VL2-Small and DeepSeek-VL2, with 1.0B, 2.8B and 4.5B activated parameters respectively.

The Tiny and Small versions are suitable for on-device usage. The unique features of this model include:

  • Mixture-of-Experts (MoE)
  • Multi-head Latent Attention (MLA) mechanism for KV Cache efficiency
  • Multimodal image understanding
Alternatives

There are distilled reasoning models for DeepSeek R1 (it's mentioned in this https://github.com/pytorch/executorch/issues/7981). However, those models use the same architecture as the targeting models (Llama and Qwen). They don't have the three unique features mentioned above. Especially, MoE and MLA look promising for on-device inference efficiency.

Additional context

No response

RFC (Optional)

Suggested process:

cc @mergennachin @cccclai @helunwencser @dvorjackz

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading examples/models/llama/llama_transformer.py, export_llama.py, and attention.py, then compare the multimodal structure in examples/models/llava. Determine how DeepSeek-VL2's MoE, MLA, and image-understanding logic fit into a new model folder. Done means the Tiny and Small models are supported through ExecuTorch export, quantization, backend lowering, and on-device inference.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.