Skip to content

Supported models

This page is generated from the registries in Dew’s source at build time, so it lists what the code loads today. load_pretrained(source) reads a Hugging Face directory or Hub repository whose config.json names one of the model_type values below, and dew.pipeline(source) wraps the same load in a generation task. Pretrained.save writes trained weights back in the source’s own layout, so the directory loads again in transformers.

A port counts as supported when a test loads the same weights into Dew and into the reference implementation and compares the outputs in float32. For most families that test runs on a small fixture with the release’s own configuration and tensor shapes. The “Checked with” column says when a family was also compared at full size against a released checkpoint. I have not run most families at full size, so check memory and throughput yourself before a large run.

A checkpoint whose type is not listed can still load. A type that computes the Llama block is verified against transformers at load time, and fallback="torchax" runs any transformers causal LM through its own PyTorch code. GGUF files, pytorch_model.bin repositories and mamba_ssm checkpoints load too. Train language models explains each of these paths and what it costs.

Familymodel_typeArchitectureChecked with
LlamallamaLlamaForCausalLMSmolLM2-135M, logits against transformers; its GGUF Q8_0 and Q4_K_M files
MistralmistralMistralForCausalLMA fixture shaped like the release
MinistralministralMinistralForCausalLMA fixture shaped like the release
Qwen 2qwen2Qwen2ForCausalLMA fixture shaped like the release
Qwen 3qwen3Qwen3ForCausalLMQwen3-0.6B, logits against transformers, on one GPU and streamed onto two
Qwen 3.5, textqwen3_5_textQwen3_5ForCausalLMA fixture shaped like the release
GemmagemmaGemmaForCausalLMA fixture shaped like the release
Gemma 2gemma2Gemma2ForCausalLMA fixture shaped like the release
Gemma 3, textgemma3_textGemma3ForCausalLMA fixture shaped like the release
Gemma 3n, textgemma3n_textGemma3nForCausalLMA fixture shaped like the release
Gemma 4, textgemma4_textGemma4ForCausalLMA fixture shaped like the release
OLMo 3olmo3Olmo3ForCausalLMA fixture shaped like the release
Familymodel_typeArchitectureChecked with
MixtralmixtralMixtralForCausalLMA fixture shaped like the release
Qwen3-MoEqwen3_moeQwen3MoeForCausalLMA fixture shaped like the release
Qwen 3.5 MoE, textqwen3_5_moe_textQwen3_5MoeForCausalLMA fixture shaped like the release
gpt-ossgpt_ossGptOssForCausalLMA fixture shaped like the release
Llama 4, textllama4_textLlama4ForCausalLMA fixture shaped like the release
GLM 4 MoEglm4_moeGlm4MoeForCausalLMA fixture shaped like the release
GLM MoE with sparse attentionglm_moe_dsaGlmMoeDsaForCausalLMA fixture shaped like the release
DeepSeek V2deepseek_v2DeepseekV2ForCausalLMA fixture shaped like the release
DeepSeek V3deepseek_v3DeepseekV3ForCausalLMA fixture shaped like the release
DeepSeek V3.2deepseek_v32DeepseekV32ForCausalLMA fixture shaped like the release
DeepSeek V4deepseek_v4DeepseekV4ForCausalLMA fixture shaped like the release
Kimi K2kimi_k2DeepseekV3ForCausalLMA fixture shaped like the release
Kimi K2.5, textkimi_k25Kimi_K25ForConditionalGenerationA fixture shaped like the release
Familymodel_typeArchitectureChecked with
Qwen3-Nextqwen3_nextQwen3NextForCausalLMA fixture shaped like the release
GLM 5 Next, textglm5_next_textGlm5NextTextForCausalLMA fixture shaped like the release
Kimi Linearkimi_linearKimiLinearForCausalLMA fixture shaped like the release
Kimi K3, textkimi_k3KimiK3ForConditionalGenerationA fixture shaped like the release
Mamba-2mamba2Mamba2ForCausalLMstate-spaces/mamba2-130m against AntonV/mamba2-130m-hf
Familymodel_typeArchitectureChecked with
LLaDAlladaLLaDAModelLMA fixture shaped like the release
Dreamdream, DreamDreamModelA fixture shaped like the release
Diffusion Gemmadiffusion_gemma_textDiffusionGemmaForBlockDiffusionA fixture shaped like the release

These load the whole checkpoint: the text decoder listed above, the media towers and the checkpoint’s own processor.

Familymodel_typeMedia
Gemma 3gemma3Images
Llama 4llama4Images
Gemma 4gemma4Images, video, audio
Qwen 3.5qwen3_5Images, video
Gemma 3ngemma3nImages, audio

load_pretrained and dew.pipeline read a diffusers pipeline directory by the class it names in model_index.json.

FamilyPipeline classTask
Stable DiffusionStableDiffusionPipelineText to image
Stable DiffusionStableDiffusionImg2ImgPipelineImage to image
Stable DiffusionStableDiffusionInpaintPipelineInpainting
Stable Diffusion XLStableDiffusionXLPipelineText to image
Stable Diffusion XLStableDiffusionXLImg2ImgPipelineImage to image, refiner
Stable Diffusion XLStableDiffusionXLInpaintPipelineInpainting
Stable Diffusion 3StableDiffusion3PipelineText to image
FluxFluxPipelineText to image
Qwen-Image 2.1QwenImage21PipelineText to image
Stable Diffusion, Flax weightsFlaxStableDiffusionPipelineText to image
Stable Diffusion, Flax weightsFlaxStableDiffusionImg2ImgPipelineImage to image
Stable Diffusion, Flax weightsFlaxStableDiffusionInpaintPipelineInpainting
Stable Diffusion XL, Flax weightsFlaxStableDiffusionXLPipelineText to image

models.build(name, ...) builds these by their registered name. Each links to its API entry.

Registered nameClass
causal_transformerCausalTransformer
diffusion_gemmaDiffusionGemma
flux_transformerFluxTransformer
hierarchical_mmditHierarchicalMMDiT
hybrid_ditHybridSSMAttentionDiT
jepa_encoderJepaEncoder
jepa_predictorJepaPredictor
jepa_video_encoderJepaVideoEncoder
multimodal_transformerMultimodalTransformer
qwen_image_transformerQwenImageTransformer
sd3_transformerSD3Transformer
simple_ditSimpleDiT
simple_mmditSimpleMMDiT
simple_uditSimpleUDiT
unetUnet
unet_2d_conditionUNet2DCondition
unet_3dUNet3D
uvitUViT
video_ditVideoDiT