Text Generation
Transformers
Safetensors
PyTorch
English
cali
causal-lm
transformer
indonesian
english
custom-architecture
conversational
custom_code
Instructions to use Sandroeth/cali-0.1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sandroeth/cali-0.1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sandroeth/cali-0.1B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Sandroeth/cali-0.1B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sandroeth/cali-0.1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sandroeth/cali-0.1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sandroeth/cali-0.1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sandroeth/cali-0.1B
- SGLang
How to use Sandroeth/cali-0.1B 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 "Sandroeth/cali-0.1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sandroeth/cali-0.1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Sandroeth/cali-0.1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sandroeth/cali-0.1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sandroeth/cali-0.1B with Docker Model Runner:
docker model run hf.co/Sandroeth/cali-0.1B
Commit History
-
Update README.md
Verified signaturec9de368
-
Update modeling_cali.py
Verified signaturefb4926b
-
Update README.md
Verified signature5a9cca3 -
Update README.md
Verified signature2efbc78
-
Update README.md
Verified signatureb3d2c66 -
Update README.md
Verified signature2b8a613 -
Update README.md
Verified signature2e4a1f6
-
Update README.md
Verified signatureb74c3b1 -
Update README.md
Verified signature9e554ee -
Update README.md
Verified signature1cbf0e1 -
Update README.md
Verified signaturef8ce8a6 -
Update modeling_cali.py
Verified signature75b4fe7 -
Update modeling_cali.py
Verified signature69654ae -
Upload modeling_cali.py
Verified signaturee593286 -
Delete modeling_cali.py
Verified signature64dc976 -
Upload modeling_cali.py
Verified signatured07d81a -
Delete modeling_cali.py
Verified signaturec9ef098 -
Update config.json
Verified signaturebe45155 -
Upload 2 files
Verified signature0e1c37c -
Delete modeling_cali.py
Verified signaturee5ec41b -
Delete configuration_cali.py
Verified signaturea254b04 -
Update modeling_cali.py
Verified signaturecccca25 -
Update modeling_cali.py
Verified signaturee203cf8
-
Update modeling_cali.py
Verified signaturea9b8f44 -
Update modeling_cali.py
Verified signaturea8852de -
Update modeling_cali.py
Verified signature0e651d1 -
Create modeling_cali.py
Verified signature4863425 -
Create configuration_cali.py
Verified signature5e08a67 -
Update config.json
Verified signature9d6732b -
Update config.json
Verified signature0aa97ad -
Delete modeling_cali.py
Verified signaturebd1ebad -
Delete configuration_cali.py
Verified signature22a4272 -
Upload modeling_cali.py
Verified signature9c4028d -
Delete modeling_cali.py
Verified signature43d2ae9 -
Update config.json
Verified signature6ab1219 -
Update modeling_cali.py
Verified signature61ace24 -
Update configuration_cali.py
Verified signaturea313b0e -
Update modeling_cali.py
Verified signaturec24f66e -
Update configuration_cali.py
Verified signaturedd118ed -
Upload model.safetensors saja
Verified signatureefb368a -
Delete model.safetensors
Verified signature2051efe -
Upload 2 files
Verified signature47cef4f -
Delete modeling_cali.py
Verified signature373c7c8 -
Delete configuration_cali.py
Verified signature2266b01 -
Update modeling_cali.py
Verified signature99ac6ef -
Update modeling_cali.py
Verified signatureccaf9a7 -
Update modeling_cali.py
Verified signature4a17175 -
Update modeling_cali.py
Verified signaturecd20053 -
Update modeling_cali.py
Verified signature6f2b856 -
Update modeling_cali.py
Verified signaturec232320