Text Generation
Transformers
PyTorch
Safetensors
Vietnamese
English
llama
Eval Results (legacy)
text-generation-inference
Instructions to use capleaf/T-Llama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use capleaf/T-Llama with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="capleaf/T-Llama")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("capleaf/T-Llama") model = AutoModelForCausalLM.from_pretrained("capleaf/T-Llama", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use capleaf/T-Llama with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "capleaf/T-Llama" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "capleaf/T-Llama", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/capleaf/T-Llama
- SGLang
How to use capleaf/T-Llama 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 "capleaf/T-Llama" \ --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": "capleaf/T-Llama", "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 "capleaf/T-Llama" \ --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": "capleaf/T-Llama", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use capleaf/T-Llama with Docker Model Runner:
docker model run hf.co/capleaf/T-Llama
Commit History
-
Update README.md
Verified signaturebae802f
-
Update README.md
Verified signature606737d -
Update README.md
Verified signaturecfa7bea -
Update README.md
Verified signaturec3790a0
-
Update README.md
Verified signature8bb553a -
Update README.md
Verified signature61e0bd5
-
Update README.md
Verified signature03a1789
-
Update README.md
Verified signature38eb13d -
Adding Evaluation Results (#2)
Verified signature- Adding Evaluation Results (70c674d846a14aa6c1c417d6bb823200d1107bc4)7ecf93d
-
Update README.md
Verified signature967eb6c -
Update README.md
Verified signature25d4f8d
-
Update README.md
Verified signature1d9a217 -
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (b3f6a88d912ea72e725b460d1f7f4ec24ef3c484) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>f7ed691
-
Update README.md
Verified signatured053eb5 -
Update README.md
Verified signaturebc66a0e -
Update README.md
Verified signaturee5daf15 -
Update README.md
Verified signaturef68c20c -
Update README.md
Verified signaturebbf5526
-
Update README.md
Verified signature930b7a0 -
Update README.md
Verified signature8c70874 -
Update README.md
Verified signature2e419fe -
Update README.md
Verified signature50ff845 -
Update README.md
Verified signature815696a
-
Update README.md
Verified signaturef674f65 -
Update README.md
Verified signaturebed2d73 -
Update README.md
Verified signature652f4a4
-
Update README.md
Verified signatureefd737b -
Update README.md
Verified signaturef57ce0a -
Update README.md
Verified signaturef96f4cb -
Update README.md
Verified signature442a193 -
Update README.md
Verified signature3faeb18 -
Update README.md
Verified signature5359d7e -
Update README.md
Verified signaturec104028
-
Update README.md
Verified signaturece48cc3 -
Update README.md
Verified signature96709dd -
Upload README.md
Verified signature9255e5c
-
Upload tokenizer
Verified signature36782aa -
Upload LlamaForCausalLM
Verified signature79e5672 -
initial commit
Verified signaturee7b532e