Downloads · 30 days
22
3% of all-time downloads
dnotitia/Qwen3-4B-Base
Qwen3-4B-Base is a text generation model from dnotitia. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
[!Note] Qwen3-ChatTemplate A collection of Qwen3 models patched by Dnotitia. These models use the exact same weights as the official Qwen3 release but include updates for better training compatibility: - Refactored Ch…
Downloads · 30 days
22
3% of all-time downloads
All-time downloads
795
Public
Parameters
4B
8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
[!Note]
Qwen3-ChatTemplate
A collection of Qwen3 models patched by Dnotitia. These models use the exact same weights as the official Qwen3 release but include updates for better training compatibility:
- Refactored Chat Template: The
chat_templatehas been neatly organized into a separatechat_template.jinjafile.- TRL Compatibility: We have injected
{% generation %}tags into the template to supportassistant_only_lossin the trl library.Currently, we have prioritized patching small-sized models to facilitate efficient training experiments.
Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Building upon extensive advancements in training data, model architecture, and optimization techniques, Qwen3 delivers the following key improvements over the previously released Qwen2.5:
Qwen3-4B-Base has the following features:
For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our blog, GitHub, and Documentation.
The code of Qwen3 has been in the latest Hugging Face transformers and we advise you to use the latest version of transformers.
With transformers<4.51.0, you will encounter the following error:
KeyError: 'qwen3'
Detailed evaluation results are reported in this 📑 blog.
If you find our work helpful, feel free to give us a cite.
@misc{qwen3technicalreport,
title={Qwen3 Technical Report},
author={Qwen Team},
year={2025},
eprint={2505.09388},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2505.09388},
}