Instructions to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF", filename="Swallow-MS-7b-instruct-v0.1-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 tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF 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 tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
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 tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
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 tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
- SGLang
How to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF 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 "tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF" \ --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": "tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF", "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 "tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF" \ --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": "tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF with Ollama:
ollama run hf.co/tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF 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 tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF 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 tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
- Lemonade
How to use tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Swallow-MS-7b-instruct-v0.1-GGUF:Q2_K
Run and chat with the model
lemonade run user.Swallow-MS-7b-instruct-v0.1-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- Swallow-MS-7b-instruct-v0.1-Q3_K_L.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q3_K_M.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q3_K_S.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q4_0.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q4_K_M.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q4_K_S.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q5_0.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q5_K_M.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q5_K_S.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q6_K.gguf +0 -3
- Swallow-MS-7b-instruct-v0.1-Q8_0.gguf +0 -3
Swallow-MS-7b-instruct-v0.1-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:199037e88535ba5a5bb268f3541cad030ded7b81db861708c260d5cf3f14b530
|
| 3 |
-
size 3877569856
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6691de3472c32da7232088f032bc2fc0dcf8a785d170b82455879f4e306dc395
|
| 3 |
-
size 3574531392
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:886cd9b09f8b6bc1c31d7949c6456745a9db91cf26334b826335ebe7f52bc44a
|
| 3 |
-
size 3220112704
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9f4e9e88efecc0657d63dfe7eb38e37aaed0ddc24f101680e1dbda7cb9f7fbfa
|
| 3 |
-
size 4170337088
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5705741e0806bf4899c7ab52d158a30736f04751bd5ced8f708e3edb36e15bb2
|
| 3 |
-
size 4429859648
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5008ade4fe3763d8d4b6619852df52516e3c3e596e0608ffadcb85de2535c6f6
|
| 3 |
-
size 4201794368
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7dafae5fa7cf93e0b4db2d6cdc35121d88b330c221e87bea01aae85f52ba1402
|
| 3 |
-
size 5064665920
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c7c42466c6f00cd5d12ff8d0dcb556d0e6d04e3cb5e5f84e91fc27d6fc073636
|
| 3 |
-
size 5198359360
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:781937aa327f0f8b130474d094e2fb0d95d6907327a7c82300909559b6be3744
|
| 3 |
-
size 5064665920
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fc49a4dd2c54351efdccd0d5a3990b766453ca43aad9dea10b9fc9d9e45172fa
|
| 3 |
-
size 6014890304
|
|
|
|
|
|
|
|
|
|
|
|
Swallow-MS-7b-instruct-v0.1-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:eda6d574a39652afc048ef397b2bd6f94323ba0d5fa947cb66c43d0a44fa69e0
|
| 3 |
-
size 7790110016
|
|
|
|
|
|
|
|
|
|
|
|