Instructions to use cortexso/sailor-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cortexso/sailor-2 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cortexso/sailor-2", filename="sailor2-1b-chat-q2_k.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use cortexso/sailor-2 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf cortexso/sailor-2:Q4_K_M # Run inference directly in the terminal: llama cli -hf cortexso/sailor-2:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf cortexso/sailor-2:Q4_K_M # Run inference directly in the terminal: llama cli -hf cortexso/sailor-2:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf cortexso/sailor-2:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf cortexso/sailor-2:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf cortexso/sailor-2:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf cortexso/sailor-2:Q4_K_M
Use Docker
docker model run hf.co/cortexso/sailor-2:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use cortexso/sailor-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cortexso/sailor-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cortexso/sailor-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cortexso/sailor-2:Q4_K_M
- Ollama
How to use cortexso/sailor-2 with Ollama:
ollama run hf.co/cortexso/sailor-2:Q4_K_M
- Unsloth Studio
How to use cortexso/sailor-2 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cortexso/sailor-2 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cortexso/sailor-2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cortexso/sailor-2 to start chatting
- Atomic Chat new
- Docker Model Runner
How to use cortexso/sailor-2 with Docker Model Runner:
docker model run hf.co/cortexso/sailor-2:Q4_K_M
- Lemonade
How to use cortexso/sailor-2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cortexso/sailor-2:Q4_K_M
Run and chat with the model
lemonade run user.sailor-2-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +10 -0
- sailor2-8b-chat-q2_k.gguf +3 -0
- sailor2-8b-chat-q3_k_l.gguf +3 -0
- sailor2-8b-chat-q3_k_m.gguf +3 -0
- sailor2-8b-chat-q3_k_s.gguf +3 -0
- sailor2-8b-chat-q4_k_m.gguf +3 -0
- sailor2-8b-chat-q4_k_s.gguf +3 -0
- sailor2-8b-chat-q5_k_m.gguf +3 -0
- sailor2-8b-chat-q5_k_s.gguf +3 -0
- sailor2-8b-chat-q6_k.gguf +3 -0
- sailor2-8b-chat-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -43,3 +43,13 @@ sailor2-1b-chat-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 43 |
sailor2-1b-chat-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
sailor2-1b-chat-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
sailor2-1b-chat-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
sailor2-1b-chat-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
sailor2-1b-chat-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
sailor2-1b-chat-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
sailor2-8b-chat-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
sailor2-8b-chat-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
sailor2-8b-chat-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
sailor2-8b-chat-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
sailor2-8b-chat-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
sailor2-8b-chat-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
sailor2-8b-chat-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
sailor2-8b-chat-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
sailor2-8b-chat-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
sailor2-8b-chat-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
sailor2-8b-chat-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aaf4a26fa0677dc87669776e77bc2006b3db4872239bb10a68b19838f9d94987
|
| 3 |
+
size 3355994016
|
sailor2-8b-chat-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4bca5278389669e9ff280c21fad5fd508755fa3e43bdf20f99d2602f3ef3cf8
|
| 3 |
+
size 4573776288
|
sailor2-8b-chat-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:229f483781af790c288660407c7e67cd1775d050c9e0316f5c272ce4ca219802
|
| 3 |
+
size 4260907424
|
sailor2-8b-chat-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:352759e6bedbd635135533fe7c0cf37767d149dea78f54ae981453ba725ad5b8
|
| 3 |
+
size 3892529568
|
sailor2-8b-chat-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a24591f903584716bdee63eb7bcc610a0e5e5f952a5454c0ad6ebf4faff5f32e
|
| 3 |
+
size 5242934176
|
sailor2-8b-chat-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b706e621b3bf571ba9ee28642b54a0f9e0eeb5725002b841134b9e7cd13bb028
|
| 3 |
+
size 4990161824
|
sailor2-8b-chat-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fc5d40a84809edd7f5dbec36168e0f679e0ba56a5983ba5aba2d2cdb31d06be
|
| 3 |
+
size 6103724960
|
sailor2-8b-chat-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60f2a858e13121fa8bc8dcfdf463fd4fa70f1330065a75776654cefea03ccadd
|
| 3 |
+
size 5955548064
|
sailor2-8b-chat-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3fc4def3de9d901dc598a8a6030b4674ce9994c68ee8de007f9c3754087aec3
|
| 3 |
+
size 7018315168
|
sailor2-8b-chat-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9913fbbcf4c2a6251bcf2307786046b1ed2a9ba97996d3fffc70f05ae13ab90
|
| 3 |
+
size 9088182688
|