--- license: apache-2.0 library_name: transformers pipeline_tag: image-text-to-text tags: - tiny-random - testing --- # tiny-random-qwen4-moe A tiny model with random weights and the `Qwen4MoeForConditionalGeneration` architecture (`qwen4_moe`) of transformers, for testing (optimum-intel / OpenVINO). Its outputs are not meaningful. It needs transformers >= 5.26. - 8 layers: 2 x (3 Gated DeltaNet + 1 Qwen Sparse Attention), hidden size 128 - Qwen Sparse Attention: blocks of 4 tokens, budget of 8 tokens, so that it is sparse on short prompts - MoE: 16 experts, top-4, shared expert; n-gram PLE in layer 2 - hyper-connections: 4 streams - Multi-Token Prediction head: 1 layer (`mtp.*`, ignored by transformers) - vision encoder: depth 2 - tokenizer, chat template and processors of Qwen3.8-Flash-Next The weights have more variance than with the default initialization, so that greedy tokens do not depend on rounding noise: layers std 0.09, embeddings std 1, `lm_head` std 2, MoE routers std 1. The last layer of the vision merger is 40x the default, so that the image and video embeddings are on the scale of the text ones.