Views
No views yet
| Specification | Value |
|---|---|
| Model name | TaoNet-mini-A2 |
| Model type | Causal language model |
| Architecture | TaoNetForCausalLM |
| Vocabulary size | 8,192 |
| Hidden size | 1,024 |
| Number of layers | 16 |
| Number of attention heads | 8 |
| Head dimension | 128 |
| Latent KV dimension | 768 |
| Feed-forward dimension | 3,072 |
| Maximum sequence length | 1,024 tokens |
| Dropout | 0.02 |
| Embedding type | Factorized embedding |
| Rope scale | 40.0 |
| Tokenizer | SentencePiece |
| Special tokens | <UNK>, <BOS>, <EOS>, <PAD> |
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4MODEL_NAME = "TaoTern/TaoNet-mini-A2"
5
6device = "cuda" if torch.cuda.is_available() else "cpu"
7dtype = torch.bfloat16 if device == "cuda" else torch.float32
8
9tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME, trust_remote_code=True)
10model = AutoModelForCausalLM.from_pretrained(
11 MODEL_NAME,
12 trust_remote_code=True,
13 torch_dtype=dtype,
14).to(device)
15
16prompt = "Fruit is now expensive so we should"
17inputs = tokenizer(prompt, return_tensors="pt").to(device)
18
19with torch.inference_mode():
20 output_ids = model.generate(
21 **inputs,
22 max_new_tokens=64,
23 temperature=0.7,
24 top_p=0.85,
25 repetition_penalty=1.2,
26 do_sample=True,
27 pad_token_id=tokenizer.pad_token_id,
28 eos_token_id=tokenizer.eos_token_id,
29 )
30
31completion = tokenizer.decode(
32 output_ids[0][inputs["input_ids"].shape[1]:],
33 skip_special_tokens=True,
34)
35print(completion)| Benchmark | Score |
|---|---|
| MMLU | 0.2412 |
| HellaSwag | 0.3162 |
| ARC-Easy | 0.4331 |
| ARC-Challenge | 0.2560 |
| PIQA | 0.6137 |
| WinoGrande | 0.5083 |
1@software{taonet_mini_a2_2026,
2 title={TaoNet-mini-A2},
3 author={Felix Thian},
4 year={2026},
5 url={https://huggingface.co/TaoTern/TaoNet-mini-A2}
6}