Qwen/Qwen3-4B-Base

Hugging Face
TEXT GENERATIONConcurrency Cost:1Model Size:4BQuant:BF16Ctx Length:32kPublished:Apr 28, 2025License:apache-2.0Architecture:Transformer0.1K Open Weights Warm

Qwen/Qwen3-4B-Base is a 4.0 billion parameter causal language model developed by Qwen, part of the Qwen3 series. Pre-trained on 36 trillion tokens across 119 languages, it features architectural refinements and a three-stage pre-training process focusing on broad language modeling, reasoning skills, and long-context comprehension up to 32,768 tokens. This base model is designed for general language understanding and generation tasks, leveraging an expanded, high-quality multilingual corpus.

Loading preview...

Qwen3-4B-Base: A Foundation Model for General Language Tasks

Qwen3-4B-Base is a 4.0 billion parameter causal language model from the Qwen3 series, developed by Qwen. It represents a significant advancement over previous Qwen models, incorporating an expanded and higher-quality pre-training corpus, refined training techniques, and architectural improvements.

Key Capabilities and Features

  • Extensive Pre-training Data: Trained on 36 trillion tokens covering 119 languages, tripling the language coverage of Qwen2.5. The corpus includes a rich mix of high-quality data for coding, STEM, reasoning, and multilingual tasks.
  • Advanced Training Techniques: Incorporates architectural refinements like qk layernorm and a three-stage pre-training pipeline. This pipeline focuses on broad language modeling, enhanced reasoning skills (STEM, coding, logical reasoning), and improved long-context comprehension.
  • Optimized Hyperparameter Tuning: Utilizes scaling law studies to systematically tune critical hyperparameters, ensuring better training dynamics and performance across different model scales.
  • Long Context Window: Supports a context length of up to 32,768 tokens, enabling processing of longer inputs and generating more coherent, extended outputs.

Good For

  • General Language Understanding: Its broad pre-training makes it suitable for a wide range of natural language processing tasks.
  • Multilingual Applications: With training across 119 languages, it offers strong multilingual capabilities.
  • Foundation for Fine-tuning: As a base model, it provides a robust foundation for further fine-tuning on specific downstream applications requiring general language intelligence.

Popular Sampler Settings

Top 3 parameter combinations used by Featherless users for this model. Click a tab to see each config.

temperature
top_p
top_k
frequency_penalty
presence_penalty
repetition_penalty
min_p