Loading…
Loading…
This is the 100M Block Attention Residuals checkpoint for the attention-residuals-reproduction project. It uses a Qwen3-style decoder-only Transformer with block-level Attention Residuals, trained from scratch on Chinese data.
blockopencsg/Fineweb-Edu-Chinese-V2.2This checkpoint is mainly intended for research comparison with the baseline and other Attention Residuals variants. It is not instruction-tuned and should not be used as a chat model.
| Metric | Result |
|---|---|
| Chinese Held-out PPL | 105.09 |
| C-Eval Acc | 0.2969 |
| CMMLU Acc | 0.2469 |
import torch
from transformers import AutoTokenizer
from modeling_attnres import Qwen3AttnResForCausalLM
repo_id = "你的用户名/attention-residuals-100M-block"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = Qwen3AttnResForCausalLM.from_pretrained(
repo_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
prompt = "人工智能的发展"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=100,
do_sample=True,
temperature=0.8,
top_p=0.95,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))