Qwen3-0.6B-BNC
Qwen3-0.6B-BNC adapts Qwen3-0.6B-Base to the British National Corpus (BNC) 1994 through full-parameter continual pre-training.
One model was trained on a single NVIDIA T4 GPU in Google Colab for 500 optimiser steps, covering approximately 32.8 million token positions, including padding. The selected checkpoint reduces held-out BNC perplexity from 21.32 to 19.65 (7.8%), with mixed effects on general benchmarks.
This is a base text-completion model, rather than an instruction-tuned assistant. Use plain-text prompts without a chat template.
Quick Start
pip install -U torch transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Jinyuan6/qwen3-0.6b-bnc"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.float16).to("cuda").eval()
prompt = (
"PS001: Shall we go down to the market tomorrow?\n"
"PS002: Well, I thought we could go in the morning.\n"
"PS001:"
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=80,
do_sample=True,
temperature=0.8,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
This example requires a CUDA GPU. The speaker labels illustrate the format retained in the cleaned BNC transcripts. Generated text may contain repetition or factual errors.
Overall Performance
| Dataset | Metric | Base model | BNC-adapted model |
|---|---|---|---|
| BNC test | Loss ↓ | 3.059 | 2.978 |
| BNC test | Perplexity ↓ | 21.32 | 19.65 |
| BNC-Cloze | Exact match ↑ | 33.3% | 34.3% |
| BNC-Cloze | Mean target log-probability ↑ | −3.53 | −3.46 |
| HellaSwag | Normalised accuracy ↑ | 53.7% | 52.2% |
| ARC-Easy | Normalised accuracy ↑ | 58.0% | 60.9% |
| PIQA | Normalised accuracy ↑ | 69.9% | 69.0% |
| BLiMP | Accuracy ↑ | 81.0% | 81.1% |
Loss is measured in nats per predicted token; cloze log-probability is measured in nats per target word. General benchmarks use zero-shot evaluation with lm_eval==0.4.13. Bold indicates the better score.
Training Data and Licence
The model was trained on the British National Corpus (BNC) 1994, distributed by the Oxford Text Archive (LLDS). The corpus is not redistributed here; it must be obtained from the Oxford Text Archive and used under its licence terms.
The model weights are released under Apache-2.0, following the base model.