Instructions to use cationic/tinyaya-base-dpo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cationic/tinyaya-base-dpo with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("CohereLabs/tiny-aya-base") model = PeftModel.from_pretrained(base_model, "cationic/tinyaya-base-dpo") - Transformers
How to use cationic/tinyaya-base-dpo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cationic/tinyaya-base-dpo") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cationic/tinyaya-base-dpo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cationic/tinyaya-base-dpo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cationic/tinyaya-base-dpo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cationic/tinyaya-base-dpo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cationic/tinyaya-base-dpo
- SGLang
How to use cationic/tinyaya-base-dpo 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 "cationic/tinyaya-base-dpo" \ --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": "cationic/tinyaya-base-dpo", "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 "cationic/tinyaya-base-dpo" \ --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": "cationic/tinyaya-base-dpo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cationic/tinyaya-base-dpo with Docker Model Runner:
docker model run hf.co/cationic/tinyaya-base-dpo
Download checkpoint-15/optimizer.pt from cationic/tinyaya-base-dpo: direct link, hf CLI and curl.
- Browser
- Download file 242 MB
-
https://huggingface.co/cationic/tinyaya-base-dpo/resolve/main/checkpoint-15/optimizer.pt
- Command line
-
hf download hf://cationic/tinyaya-base-dpo/checkpoint-15/optimizer.pt
-
curl -L -o optimizer.pt https://huggingface.co/cationic/tinyaya-base-dpo/resolve/main/checkpoint-15/optimizer.pt
242 MB
- Xet hash:
- 7681fc47297dc03a9537a31a26d3ebb5ef5290fe25112d2a91079c80befed616
- Size of remote file:
- 242 MB
- SHA256:
- e1dcf2ecb817ca23bf8fc4ebb941e743a381688d80d510c1a0cf8306b8c2ee23
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.