Instructions to use unslothai/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unslothai/model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unslothai/model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("unslothai/model") model = AutoModelForCausalLM.from_pretrained("unslothai/model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use unslothai/model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unslothai/model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unslothai/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/unslothai/model
- SGLang
How to use unslothai/model 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 "unslothai/model" \ --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": "unslothai/model", "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 "unslothai/model" \ --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": "unslothai/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use unslothai/model with Docker Model Runner:
docker model run hf.co/unslothai/model
Commit History
-
(Trained with Unsloth)
Verified signatureb559b50 -
(Trained with Unsloth)
Verified signature049fc0e -
(Trained with Unsloth)
Verified signature879f1ba -
(Trained with Unsloth)
Verified signature781910a -
(Trained with Unsloth)
Verified signature90654a2 -
(Trained with Unsloth)
Verified signature64e7851 -
(Trained with Unsloth)
Verified signature8c4caa3 -
(Trained with Unsloth)
Verified signaturefc1ba2d -
(Trained with Unsloth)
Verified signaturec84a839 -
(Trained with Unsloth)
Verified signature6399e8d -
(Trained with Unsloth)
Verified signatureeec8436 -
(Trained with Unsloth)
Verified signaturede5b0f8 -
(Trained with Unsloth)
Verified signature4257659 -
Upload README.md with huggingface_hub
Verified signature03cc759 -
initial commit
Verified signature7612816