File size: 3,567 Bytes
a73cdd9
fd448dd
 
 
 
 
 
 
a73cdd9
 
fd448dd
4ebe7ff
fd448dd
4ebe7ff
fd448dd
4ebe7ff
fd448dd
4ebe7ff
fd448dd
4ebe7ff
fd448dd
4ebe7ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd448dd
4ebe7ff
fd448dd
4ebe7ff
fd448dd
4ebe7ff
 
 
 
 
 
 
fd448dd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4ebe7ff
 
 
 
 
 
 
 
 
 
 
 
 
fd448dd
 
4ebe7ff
 
 
 
 
fd448dd
 
4ebe7ff
 
 
fd448dd
4ebe7ff
 
 
 
 
 
 
 
fd448dd
4ebe7ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd448dd
 
4ebe7ff
 
 
 
 
fd448dd
4ebe7ff
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
library_name: transformers
tags:
- text-generation
- trust-remote-code
- sentencepiece
- custom-architecture
pipeline_tag: text-generation
license: mit
---

## Model Summary

TaoNet-mini-A2 is a 0.5B local-first language model intended for text generation experiments, lightweight instruction following, and research on efficient custom architectures.

This release is organized as a standard Hugging Face model package, while keeping the underlying TaoNet implementation in the repository for transparent loading and export.

## Model Details

### Model Specifications

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>`

## Hardware

### Hardware

- GPU: 1 x RTX 5090

### Software

- Training framework: TaoTrain

## Quick Start

```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL_NAME = "TaoTern/TaoNet-mini-A2"

device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if device == "cuda" else torch.float32

tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_NAME,
    trust_remote_code=True,
    torch_dtype=dtype,
).to(device)

prompt = "Fruit is now expensive so we should"
inputs = tokenizer(prompt, return_tensors="pt").to(device)

with torch.inference_mode():
    output_ids = model.generate(
        **inputs,
        max_new_tokens=64,
        temperature=0.7,
        top_p=0.85,
        repetition_penalty=1.2,
        do_sample=True,
        pad_token_id=tokenizer.pad_token_id,
        eos_token_id=tokenizer.eos_token_id,
    )

completion = tokenizer.decode(
    output_ids[0][inputs["input_ids"].shape[1]:],
    skip_special_tokens=True,
)
print(completion)
```

## Benchmarks

The following scores were reported for TaoNet-mini-A2:

Benchmark | Score
--- | ---
MMLU | 0.2412
HellaSwag | 0.3162
ARC-Easy | 0.4331
ARC-Challenge | 0.2560
PIQA | 0.6137
WinoGrande | 0.5083

These numbers should be treated as a snapshot of the current checkpoint, not as a universal capability guarantee.

## Limitations

- This is a relatively small model, so it will not match larger frontier models on broad reasoning or long-horizon planning
- It may hallucinate or produce incorrect answers, especially on ambiguous prompts or tasks that require deep domain knowledge
- Outputs can be sensitive to prompt wording and generation parameters
- The model is not intended for safety-critical, legal, medical, or high-stakes decision-making without human review
- The reported benchmark scores are limited to the tasks listed above and do not describe full real-world quality

## Citation

If you use TaoNet-mini-A2 in your research or product work, please cite:

```bibtex
@software{taonet_mini_a2_2026,
  title={TaoNet-mini-A2},
  author={Felix Thian},
  year={2026},
  url={https://huggingface.co/TaoTern/TaoNet-mini-A2}
}
```

## License

This repository is released under the MIT License.

## Acknowledgments

- Hugging Face Transformers for the model-loading interface
- SentencePiece for tokenizer support
- The TaoTrain export pipeline used to package the checkpoint