Instructions to use TaoTern/TaoNet-pico-A2-pretrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TaoTern/TaoNet-pico-A2-pretrain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TaoTern/TaoNet-pico-A2-pretrain", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("TaoTern/TaoNet-pico-A2-pretrain", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TaoTern/TaoNet-pico-A2-pretrain with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TaoTern/TaoNet-pico-A2-pretrain" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TaoTern/TaoNet-pico-A2-pretrain", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TaoTern/TaoNet-pico-A2-pretrain
- SGLang
How to use TaoTern/TaoNet-pico-A2-pretrain with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "TaoTern/TaoNet-pico-A2-pretrain" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TaoTern/TaoNet-pico-A2-pretrain", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "TaoTern/TaoNet-pico-A2-pretrain" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TaoTern/TaoNet-pico-A2-pretrain", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TaoTern/TaoNet-pico-A2-pretrain with Docker Model Runner:
docker model run hf.co/TaoTern/TaoNet-pico-A2-pretrain
TaoNet Pico A2 Pretrain
Model summary
TaoNet Pico A2 Pretrain is a pretrained TaoNet A2 variant. It was trained as an optimized model for perplexity-filter based dataset preprocessing and model benchmarking, not as a general-purpose assistant or instruction-following model. This model uses the TaoNet MLA + RoPE architecture. It was trained on TaoData dataset, built for high-quality language modeling in small models. The training objective was standard language modeling.
Generation
Transformers
import torch
from transformers import AutoModelForCausalLM
model_id = "Lobakkang/TaoNet-pico-A2-pretrain"
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if device == "cuda" else torch.float32
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=dtype,
).to(device)
model.eval()
Sample inference
import sys
from pathlib import Path
import torch
from transformers import AutoModelForCausalLM
ROOT = Path(__file__).resolve().parent
SRC = ROOT / "src"
if str(SRC) not in sys.path:
sys.path.insert(0, str(SRC))
from taoTrain.inference.loading import load_tokenizer
MODEL_ID = "Lobakkang/TaoNet-pico-A2-pretrain"
TOKENIZER_PATH = ROOT / "tokenizer" / "tokenizer.model"
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
dtype = torch.bfloat16 if device.type == "cuda" else torch.float32
tokenizer = load_tokenizer(TOKENIZER_PATH)
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
trust_remote_code=True,
torch_dtype=dtype,
).to(device)
model.eval()
prompt = "Hello world"
input_ids = tokenizer.encode(prompt, return_tensors="pt").to(device)
with torch.no_grad():
output_ids = model.generate(
input_ids=input_ids,
max_new_tokens=32,
do_sample=True,
temperature=0.7,
top_p=0.95,
)
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
Benchmarks
These results are from the pretrained checkpoint:
| Task | Score |
|---|---|
| MMLU | 0.2295 |
| HellaSwag | 0.2725 |
| ARC Easy | 0.3695 |
| ARC Challenge | 0.2227 |
| PIQA | 0.5517 |
| Winogrande | 0.5083 |
Limitations
This checkpoint is best treated as a pretrained research model rather than a normal-purpose application model.
- It was trained for perplexity-filter style preprocessing and filtering workflows.
- It is not tuned for chat, instruction following, or tool use.
- Output quality is expected to vary outside the data and evaluation distribution used during pretraining.
- As with other small language models, it can produce plausible but incorrect text.
- The model should be validated before any downstream deployment or product use.
Training
Model
- Architecture: TaoNet / MLA + RoPE
- Tokenizer: SentencePiece
- Framework: TaoTrain
- Dataset: TaoData
Hardware
- GPU: 1 x RTX 5090
Software
- Training framework: TaoTrain
License
MIT License.
Citation
@software{taonet_pico_a2_pretrain,
title={TaoNet Pico A2 Pretrain},
author={Lobakkang},
year={2026},
url={https://huggingface.co/Lobakkang/TaoNet-pico-A2-pretrain}
}
If you use TaoTrain or TaoData in a writeup, cite the corresponding project references in addition to this checkpoint.
- Downloads last month
- 2