Text Generation
Transformers
PyTorch
English
taonet_mini_t2
taonet
taotern
ssm
state-space-model
dplr
custom_code
experimental
Instructions to use TaoTern/TaoNet-mini-T2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TaoTern/TaoNet-mini-T2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TaoTern/TaoNet-mini-T2", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("TaoTern/TaoNet-mini-T2", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use TaoTern/TaoNet-mini-T2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TaoTern/TaoNet-mini-T2" # 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-mini-T2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TaoTern/TaoNet-mini-T2
- SGLang
How to use TaoTern/TaoNet-mini-T2 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-mini-T2" \ --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-mini-T2", "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-mini-T2" \ --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-mini-T2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TaoTern/TaoNet-mini-T2 with Docker Model Runner:
docker model run hf.co/TaoTern/TaoNet-mini-T2
File size: 3,353 Bytes
e2bfccc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | {
"checkpoint": "/home/student/YouZheng/jobs/taotern/taotern-200m-branch-only-chat-20260514/checkpoints/sft/final_model.pt",
"tokenizer_path": "/home/student/YouZheng/tokenizers/taodata_pilot_8k/tokenizer.model",
"device": "cuda",
"dtype": "torch.bfloat16",
"max_new_tokens": 220,
"temperature": 0.7,
"top_p": 0.9,
"samples": [
{
"prompt": "<user>Hello, who are you?<assistant>",
"completion": "A tip is usually a net, a pack is a scavenger, which means that the initial effort is the delta, the body, the nav, is the ad. β ** Also, typically, a person typically becomes anemic and always begins to move around, which typically involves movement, which typically involves some movement, such as movement, which can also affect movement. β **Astrophobic** is not always a result of a very dramatic event. β * Often, it).That must be.*That got lost. β That got you got.)That must have got you confused. Most doctors agree. Muscles seem to lose flexibility.But steroids can still keep you sharp. Muscle cramps. Muscle cramps. Muscle fatigue. Most adults can still breathe. β **Most organs have multiple functions.** β Most treatments are aimed at improving symptoms. But advanced treatments may trigger inflammation. Low maintenance but soft but solid retain or soft core. Presence: Completing the major: Co the specific major"
},
{
"prompt": "<user>Explain what artificial intelligence is in simple words.<assistant>",
"completion": "A oscillator is a singular and eventually identical, specialized singular, the silencer. However, sometimes, sometimes, sometimes, the particles are almost always and typically surrounded by unusual or unusual characteristics, such as being very agile, such as being very small, very small, and often very dense, sometimes very really really. β They can also sometimes also sometimes sometimes sometimes. Sometimes, sometimes sometimes sometimes sometimes. Sometimes, sometimes sometimes sometimes sometimes. β However,).).....)....That.).G...That.K..K..New..New....New..New......These two devices seem quite close. Each has its own advantage. β But sometimes. But sometimes. It doesn't. But it still does. But... The hypothesis. The hypothesis. The untested or rare. Comes in red. P). Complex. Co. High. CoinIn the general, the"
},
{
"prompt": "<user>Give me three practical study tips.<assistant>",
"completion": "Dementia, also known as numbness or tingling under the arc (the gait), is a physical deformity. The necessity is the 11111111 and also typically includes an injury or condition that makes it difficult for you to do some simple things, such as getting dressed, getting some rest, or getting some sleep, but not actually getting really tired. Sometimes simply having this sometimes sometimes sometimes does really does sometimes does. Sometimes, sometimes sometimes sometimes. Sometimes sometimes.)It.The....).)...).That...That.. Two. β .That.. β Check it. β Check everything. β Check it. β But keep it small. Remember to keep everything hidden. Remember to keep everything organized. Remember to keep everyone informed. Remember to keep valuable items readily accessible. Most businesses don't offer absolute protection. Let the deco stay solid. Cos. Cos. Co. is a specific sub. β In a Coin,"
}
]
} |