Text Generation
Transformers
Safetensors
llama
toksuite
tokenization
tekken
multilingual
bpe
research
robustness
text-generation-inference
Instructions to use toksuite/mistralai-tekken with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use toksuite/mistralai-tekken with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="toksuite/mistralai-tekken")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("toksuite/mistralai-tekken", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use toksuite/mistralai-tekken with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "toksuite/mistralai-tekken" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "toksuite/mistralai-tekken", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/toksuite/mistralai-tekken
- SGLang
How to use toksuite/mistralai-tekken 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 "toksuite/mistralai-tekken" \ --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": "toksuite/mistralai-tekken", "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 "toksuite/mistralai-tekken" \ --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": "toksuite/mistralai-tekken", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use toksuite/mistralai-tekken with Docker Model Runner:
docker model run hf.co/toksuite/mistralai-tekken
Commit History
-
Update README.md
Verified signatured27e681
-
Update README.md
Verified signaturedb4c49f -
Upload model-performance-comparison.png
Verified signature5c1e0fe -
Update README.md
Verified signature8c969ac
-
Update README.md
Verified signature091fb15 -
Update README.md
Verified signature7a347ab -
Update README.md
Verified signaturea9df6d1 -
Update README.md
Verified signatured7416a5 -
Upload toksuite-logo.png
Verified signaturefe0ac5e
-
Upload config
Verified signature99ba75a -
Upload model files
Verified signature0bacd17 -
Upload tokenizer file mistralai--tekken.yaml - Upload model files
Verified signatured0b1f75 -
Upload tokenizer file mistralai--tekken_vocab.json - Upload model files
Verified signature79dbf7a -
Upload tokenizer file mistralai--tekken_super_mapping.json - Upload model files
Verified signatureaba0bed -
Upload tokenizer file mistralai--tekken_info.json - Upload model files
Verified signaturebf49262 -
initial commit
Verified signature08b4147