Views
No views yet
fullopencsg/Fineweb-Edu-Chinese-V2.2| Metric | Result |
|---|---|
| Chinese Held-out PPL | 57.34 |
| C-Eval Acc | 0.2926 |
| CMMLU Acc | 0.2188 |
full variant has substantially higher memory cost than the block variant at the 0.6B scale.
In this project, the 0.6B full experiment is better treated as a supplementary run under a shorter sequence-length setup rather than a directly matched comparison against the seq_len=2048 baseline and block runs.1import torch
2from transformers import AutoTokenizer
3from modeling_attnres import Qwen3AttnResForCausalLM
4
5repo_id = "你的用户名/attention-residuals-0.6B-full"
6
7tokenizer = AutoTokenizer.from_pretrained(repo_id)
8model = Qwen3AttnResForCausalLM.from_pretrained(
9 repo_id,
10 torch_dtype=torch.bfloat16,
11 device_map="auto",
12)
13
14prompt = "人工智能的发展"
15inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
16outputs = model.generate(
17 **inputs,
18 max_new_tokens=100,
19 do_sample=True,
20 temperature=0.8,
21 top_p=0.95,
22)
23
24print(tokenizer.decode(outputs[0], skip_special_tokens=True))
25