Text Generation
Transformers
PyTorch
Safetensors
llama
alpaca
cot
vicuna
uncensored
Merge
mix
text-generation-inference
Instructions to use CalderaAI/13B-Thorns-l2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CalderaAI/13B-Thorns-l2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CalderaAI/13B-Thorns-l2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CalderaAI/13B-Thorns-l2") model = AutoModelForCausalLM.from_pretrained("CalderaAI/13B-Thorns-l2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CalderaAI/13B-Thorns-l2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CalderaAI/13B-Thorns-l2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CalderaAI/13B-Thorns-l2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CalderaAI/13B-Thorns-l2
- SGLang
How to use CalderaAI/13B-Thorns-l2 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 "CalderaAI/13B-Thorns-l2" \ --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": "CalderaAI/13B-Thorns-l2", "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 "CalderaAI/13B-Thorns-l2" \ --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": "CalderaAI/13B-Thorns-l2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CalderaAI/13B-Thorns-l2 with Docker Model Runner:
docker model run hf.co/CalderaAI/13B-Thorns-l2
Commit History
-
Adding `safetensors` variant of this model (#3)
Verified signature- Adding `safetensors` variant of this model (2278156fbd55b06134afcd706e2566ad2e0f697c) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>fa70a4e
-
Update README.md
adc5e7b -
Update README.md
6d671a6 -
Update README.md
916eeeb -
Update README.md
e116a17 -
Update README.md
020f940 -
Update README.md
7b2dbbe -
Update README.md
bd704ba -
Update README.md
50898b0 -
Update README.md
5a04db1 -
Update README.md
1dff5e6 -
Update README.md
955c805 -
Update README.md
cf450a5 -
Update README.md
13d7692 -
Update README.md
d7891d4 -
Update README.md
7b4f8ed -
Update README.md
831cd56 -
Update README.md
5dc5ccf -
Update README.md
6009e91 -
Update README.md
4a2ebd0 -
Update README.md
e8f7e05 -
Update README.md
e468834 -
Update README.md
16f1006 -
Update README.md
b4453c7 -
Update README.md
2d46fd8 -
Update README.md
49d6bd1 -
Create README.md
01b642e -
Upload 3 files
a6ecb86 -
Upload 7 files
04fa21e -
initial commit
8942eb5