Instructions to use Mayura01/T-CLM2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mayura01/T-CLM2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mayura01/T-CLM2")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Mayura01/T-CLM2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mayura01/T-CLM2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mayura01/T-CLM2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mayura01/T-CLM2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Mayura01/T-CLM2
- SGLang
How to use Mayura01/T-CLM2 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 "Mayura01/T-CLM2" \ --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": "Mayura01/T-CLM2", "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 "Mayura01/T-CLM2" \ --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": "Mayura01/T-CLM2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Mayura01/T-CLM2 with Docker Model Runner:
docker model run hf.co/Mayura01/T-CLM2
Commit History
-
Update README.md
Verified signaturec83ca5a
-
Delete tokenizer.py
Verified signaturee73764b -
Delete loadmodel.py
Verified signaturedf222dd -
Delete model.py
Verified signaturee6cc903 -
Delete inference.py
Verified signature5892315 -
Delete config.py
Verified signature849a9df -
Upload 5 files
Verified signature1b3ecc6
-
Update config.json
Verified signature5beb950
-
Update README.md
Verified signature64818de -
Update README.md
Verified signature2abf5f4 -
Upload model.safetensors
Verified signatureba82c10 -
Update README.md
Verified signature6b8614c
-
Update README.md
Verified signature4fa43dc -
Update README.md
Verified signaturee0f760a -
Update README.md
Verified signaturecac0f2b -
Update README.md
Verified signatureedacb3d -
Update README.md
Verified signature692ab93 -
Rename config.py to config.json
Verified signature3252be4 -
Update README.md
Verified signature37d5d70 -
Update README.md
Verified signature75b0344 -
Upload 3 files
Verified signaturea7d0a21 -
initial commit
Verified signaturefa9507e