Overview of hipfire-arch-qwen2
masterThe hipfire-arch-qwen2 crate provides a plain Qwen2 dense text decoder implementation for the hipfire ecosystem. It is identified by arch_id = 7.
Key Technical Specifications
- Attention: GQA (Grouped Query Attention) support (e.g., 12 query heads and 2 KV heads for the 1.5B model).
- Normalization: RMSNorm with
eps=1e-6. - Activation: SwiGLU FFN.
- Positional Embeddings: 1-D RoPE with
theta = 1_000_000. - Bias: Uses
attention_bias = trueon Q/K/V projections, following the Qwen2 modeling default. - Embeddings: Supports variable
tie_word_embeddings(set totruefor 1.5B-Instruct andfalsefor dots.ocr).