Instructions to use Sakalti/Baku with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sakalti/Baku with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sakalti/Baku")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sakalti/Baku") model = AutoModelForCausalLM.from_pretrained("Sakalti/Baku", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sakalti/Baku with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sakalti/Baku" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sakalti/Baku", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sakalti/Baku
- SGLang
How to use Sakalti/Baku 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 "Sakalti/Baku" \ --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": "Sakalti/Baku", "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 "Sakalti/Baku" \ --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": "Sakalti/Baku", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sakalti/Baku with Docker Model Runner:
docker model run hf.co/Sakalti/Baku
Commit History
-
Update README.md
Verified signature59d8512 -
Upload model-00002-of-00003.safetensors with huggingface_hub
Verified signature8ea3e78 -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signaturedb100c9 -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signature5c9dd2f -
Upload model.safetensors.index.json with huggingface_hub
Verified signature2d9d9ad -
Upload Notice with huggingface_hub
Verified signatureaf05cf1 -
Upload model_config.yaml with huggingface_hub
Verified signature7bbb491 -
Upload generation_config.json with huggingface_hub
Verified signature31c6197 -
Upload config.json with huggingface_hub
Verified signature746b1b4 -
Upload tokenizer_config.json with huggingface_hub
Verified signature84ae07c -
Upload tokenizer.json with huggingface_hub
Verified signaturef9b4d9a -
Upload tokenizer.model with huggingface_hub
Verified signaturea3b6129 -
initial commit
Verified signature28a893a