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-1b-chat-q2_k.gguf +3 -0
- sailor2-1b-chat-q3_k_l.gguf +3 -0
- sailor2-1b-chat-q3_k_m.gguf +3 -0
- sailor2-1b-chat-q3_k_s.gguf +3 -0
- sailor2-1b-chat-q4_k_m.gguf +3 -0
- sailor2-1b-chat-q4_k_s.gguf +3 -0
- sailor2-1b-chat-q5_k_m.gguf +3 -0
- sailor2-1b-chat-q5_k_s.gguf +3 -0
- sailor2-1b-chat-q6_k.gguf +3 -0
- sailor2-1b-chat-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
sailor2-1b-chat-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
sailor2-1b-chat-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
sailor2-1b-chat-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
sailor2-1b-chat-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
sailor2-1b-chat-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
sailor2-1b-chat-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
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
|
sailor2-1b-chat-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5e73315a4d33873ab7f92bb40759836f6bf7c58654aef2854e210e02df37d64
|
| 3 |
+
size 603210400
|
sailor2-1b-chat-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e2fd233f1cbe1d362c11733cc94bb7eaf2fda151c8f32d1055f6e318a5286db
|
| 3 |
+
size 664711840
|
sailor2-1b-chat-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbf263150cd764aee33a62d7fc83300a3f6e7a416ca174a890c34ad3d040ee1c
|
| 3 |
+
size 637459104
|
sailor2-1b-chat-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e818e4ec3362f5b385f8ce4c1cf525408bf42b2c09106e84d73849a2681b8a55
|
| 3 |
+
size 602522272
|
sailor2-1b-chat-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33c044c31871003d4cb8e0db3a11461c9f9713e7f76d7c113ac78cccdb9b9346
|
| 3 |
+
size 738628256
|
sailor2-1b-chat-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8eed157f882b236ab598d77f73beae5fcf48675e9896c136823278deead289ed
|
| 3 |
+
size 713927328
|
sailor2-1b-chat-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf5afcbf49096e0373df28ea8c084469000a55ee57f42c83fba7c33f7a62cbf7
|
| 3 |
+
size 791692960
|
sailor2-1b-chat-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8257fa4d4cbf5547cd173f0598d5a71ca9a25afef8576742956780447209e552
|
| 3 |
+
size 776941216
|
sailor2-1b-chat-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78ffc84205e186002fba98dd4367b93a860c12ca74fff7ac780a76635e75925c
|
| 3 |
+
size 1005535904
|
sailor2-1b-chat-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9d4937dde87f8e5967a86d9545c2bb5d8957c9462017df2a014f6967054116f
|
| 3 |
+
size 1056199328
|