All models

qwen2_moe_tiny

The Mixture-of-Experts variant of Qwen2, upcycled from dense Qwen models.

Language · 277 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (19 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
4.2M
Operations
277
Framework
PyTorch
Recurrent
No
Published
2024
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8532
Graph hash
4eed0ea6d8961cfb858ae3eaaebf444759d95cde5d9445567941eaae48b50671
Skeleton hash
e8cbdb04bf4d2ea17decdf789bb055b34cb00bd08ad6a5e482be823d483f7739
Architecture hash
2e5378af1c0e579151ae6e9312b5bedcc5131f7dab41e5bf791e0fd83410eaeb
Diagram SHA-256
bb24bf7b1877289349db139b95105cf69b54910ad6c206f5fe8935acf381a894
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Qwen2MoE is the Mixture-of-Experts variant of Qwen2, available as a base model and an aligned chat model. It uses SwiGLU activation, group query attention and a mixture of sliding window attention and full attention, and its tokenizer can be adapted to multiple languages and codes.

The MoE architecture uses models upcycled from the dense language models: Qwen1.5-MoE-A2.7B, for example, is upcycled from Qwen-1.8B. That model has 14.3B parameters, but only 2.7B of them are activated during runtime. All the original checkpoints are in the Qwen1.5 collection.

Key idea. A Mixture-of-Experts variant of Qwen2, available as a base model and an aligned chat model.

  • qwen2moe
  • qwen2-moe
  • qwen2 moe
  • qwen1.5-moe-a2.7b
  • qwen1.5 moe
  • qwen
  • mixture of experts
  • text generation
  • chat model

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.