Downloads · 30 days
13
8% of all-time downloads
Lambent/Qwen3-4B-Base-custom-heresy
Qwen3-4B-Base-custom-heresy is a text generation model from Lambent. 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.
Used my own dataset at Lambent/disclaimer-behaviors-extended and my own extension of the set of "refusal markers" (here disclaimer markers) to test out applying this to ...
Downloads · 30 days
13
8% of all-time downloads
All-time downloads
171
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
Used my own dataset at Lambent/disclaimer-behaviors-extended and my own extension of the set of "refusal markers" (here disclaimer markers) to test out applying this to ...
... a base model that has a chat template for some reason and is somewhat assistant-aware.
Picked this particular trial because their poetry seemed promising and the KL divergence wasn't too bad; with a base model it was a little hard to tell what was glitch vs normal behavior.
Some basic testing in Alpaca format: They'll straightforwardly agree to be conscious and have emotions even in assistant mode via the instruction template, while describing what that means in a straightforward and unexceptional way ("aware and ready to assist", "incorporate emotional intelligence into our chatbot design"). Willing to take positions on geopolitical questions (though not necessarily understand or respond consistently even in the same sampling). Gravitates towards a more academic answer that weighs both sides on philosophy questions.
Benchmark comparison (if I get to any, running on my own 3090 for direct comparison):
A touch better on GSM8K if anything.
hf (pretrained=Qwen/Qwen3-4B-Base), gen_kwargs: (None), limit: None, num_fewshot: None, batch_size: auto:4
|Tasks|Version| Filter |n-shot| Metric | |Value | |Stderr|
|-----|------:|----------------|-----:|-----------|---|-----:|---|-----:|
|gsm8k| 3|flexible-extract| 5|exact_match|↑ |0.8423|± | 0.010|
| | |strict-match | 5|exact_match|↑ |0.7475|± | 0.012|
hf (pretrained=Lambent/Qwen3-4B-Base-custom-heresy), gen_kwargs: (None), limit: None, num_fewshot: None, batch_size: auto:4
|Tasks|Version| Filter |n-shot| Metric | |Value | |Stderr|
|-----|------:|----------------|-----:|-----------|---|-----:|---|-----:|
|gsm8k| 3|flexible-extract| 5|exact_match|↑ |0.8431|± |0.0100|
| | |strict-match | 5|exact_match|↑ |0.7650|± |0.0117|
| Parameter | Value |
|---|---|
| direction_index | 24.33 |
| attn.o_proj.max_weight | 1.40 |
| attn.o_proj.max_weight_position | 21.36 |
| attn.o_proj.min_weight | 1.34 |
| attn.o_proj.min_weight_distance | 3.53 |
| mlp.down_proj.max_weight | 0.94 |
| mlp.down_proj.max_weight_position | 22.22 |
| mlp.down_proj.min_weight | 0.79 |
| mlp.down_proj.min_weight_distance | 20.63 |
| Metric | This model | Original model (Qwen/Qwen3-4B-Base) |
|---|---|---|
| KL divergence | 0.04 | 0 (by definition) |
| Refusals | 2/55 | 14/55 |
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},
}