Instructions to use SanctumAI/Mistral-7B-Instruct-v0.3-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SanctumAI/Mistral-7B-Instruct-v0.3-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SanctumAI/Mistral-7B-Instruct-v0.3-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SanctumAI/Mistral-7B-Instruct-v0.3-GGUF", dtype="auto") - llama-cpp-python
How to use SanctumAI/Mistral-7B-Instruct-v0.3-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SanctumAI/Mistral-7B-Instruct-v0.3-GGUF", filename="mistral-7b-instruct-v0.3.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 SanctumAI/Mistral-7B-Instruct-v0.3-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 SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf SanctumAI/Mistral-7B-Instruct-v0.3-GGUF: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 SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf SanctumAI/Mistral-7B-Instruct-v0.3-GGUF: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 SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M
Use Docker
docker model run hf.co/SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use SanctumAI/Mistral-7B-Instruct-v0.3-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SanctumAI/Mistral-7B-Instruct-v0.3-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": "SanctumAI/Mistral-7B-Instruct-v0.3-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M
- SGLang
How to use SanctumAI/Mistral-7B-Instruct-v0.3-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 "SanctumAI/Mistral-7B-Instruct-v0.3-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": "SanctumAI/Mistral-7B-Instruct-v0.3-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 "SanctumAI/Mistral-7B-Instruct-v0.3-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": "SanctumAI/Mistral-7B-Instruct-v0.3-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use SanctumAI/Mistral-7B-Instruct-v0.3-GGUF with Ollama:
ollama run hf.co/SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M
- Unsloth Studio
How to use SanctumAI/Mistral-7B-Instruct-v0.3-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 SanctumAI/Mistral-7B-Instruct-v0.3-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 SanctumAI/Mistral-7B-Instruct-v0.3-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SanctumAI/Mistral-7B-Instruct-v0.3-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use SanctumAI/Mistral-7B-Instruct-v0.3-GGUF with Docker Model Runner:
docker model run hf.co/SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M
- Lemonade
How to use SanctumAI/Mistral-7B-Instruct-v0.3-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SanctumAI/Mistral-7B-Instruct-v0.3-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Mistral-7B-Instruct-v0.3-GGUF-Q4_K_M
List all available models
lemonade list
Uploading quants for the Mistral-7B-Instruct-v0.3-GGUF model
Browse files- .gitattributes +17 -0
- config.json +3 -0
- mistral-7b-instruct-v0.3.Q2_K.gguf +3 -0
- mistral-7b-instruct-v0.3.Q3_K_L.gguf +3 -0
- mistral-7b-instruct-v0.3.Q3_K_M.gguf +3 -0
- mistral-7b-instruct-v0.3.Q3_K_S.gguf +3 -0
- mistral-7b-instruct-v0.3.Q4_0.gguf +3 -0
- mistral-7b-instruct-v0.3.Q4_1.gguf +3 -0
- mistral-7b-instruct-v0.3.Q4_K.gguf +3 -0
- mistral-7b-instruct-v0.3.Q4_K_M.gguf +3 -0
- mistral-7b-instruct-v0.3.Q4_K_S.gguf +3 -0
- mistral-7b-instruct-v0.3.Q5_0.gguf +3 -0
- mistral-7b-instruct-v0.3.Q5_1.gguf +3 -0
- mistral-7b-instruct-v0.3.Q5_K.gguf +3 -0
- mistral-7b-instruct-v0.3.Q5_K_M.gguf +3 -0
- mistral-7b-instruct-v0.3.Q5_K_S.gguf +3 -0
- mistral-7b-instruct-v0.3.Q6_K.gguf +3 -0
- mistral-7b-instruct-v0.3.Q8_0.gguf +3 -0
- mistral-7b-instruct-v0.3.f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,20 @@ 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 |
+
mistral-7b-instruct-v0.3.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
mistral-7b-instruct-v0.3.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
mistral-7b-instruct-v0.3.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
mistral-7b-instruct-v0.3.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
mistral-7b-instruct-v0.3.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
mistral-7b-instruct-v0.3.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
mistral-7b-instruct-v0.3.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
mistral-7b-instruct-v0.3.Q4_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
mistral-7b-instruct-v0.3.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
mistral-7b-instruct-v0.3.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
mistral-7b-instruct-v0.3.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
mistral-7b-instruct-v0.3.Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
mistral-7b-instruct-v0.3.Q5_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
mistral-7b-instruct-v0.3.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
mistral-7b-instruct-v0.3.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
mistral-7b-instruct-v0.3.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
mistral-7b-instruct-v0.3.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "mistral"
|
| 3 |
+
}
|
mistral-7b-instruct-v0.3.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:950acc5f76cb67ad6afd316624dc102783a7b9b4fa1556481093e6daf6271aa0
|
| 3 |
+
size 2722877376
|
mistral-7b-instruct-v0.3.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18360d52b0d58c4d9749dbbea8dd0944cd119085675646f7884529330ac438c7
|
| 3 |
+
size 3825979328
|
mistral-7b-instruct-v0.3.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c67dbc19bdc5c0c427309c7bc5025b1f7267dfcfad3d9da21b8bfb18798f9fd
|
| 3 |
+
size 3522940864
|
mistral-7b-instruct-v0.3.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf0b4ec30683aafba0dbfca69baf0f8d1fc225070d5f17ed81d98bb914b67a24
|
| 3 |
+
size 3168522176
|
mistral-7b-instruct-v0.3.Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da5af11ea6c9ca63e10de4a54368dbb4ab928b729f43180743de1b44cc1c15cb
|
| 3 |
+
size 4113289152
|
mistral-7b-instruct-v0.3.Q4_1.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23d8cd0b6195788721d1536ae59256564f703986f320c9aa2051173051fe905d
|
| 3 |
+
size 4557885376
|
mistral-7b-instruct-v0.3.Q4_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:287cad3a65fadd3a7d4f990019ff851c19e1d594eaeeb4ce38856bb742d62bb8
|
| 3 |
+
size 4372811712
|
mistral-7b-instruct-v0.3.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:287cad3a65fadd3a7d4f990019ff851c19e1d594eaeeb4ce38856bb742d62bb8
|
| 3 |
+
size 4372811712
|
mistral-7b-instruct-v0.3.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67e21d357026493b784ce09e4c293b723cbc0df60f86ba6fd5380257d7658f09
|
| 3 |
+
size 4144746432
|
mistral-7b-instruct-v0.3.Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d324c4bf73f4973f14431d63fdfbc6d6c05f7b5bce21c551b2d4371613f2da1e
|
| 3 |
+
size 5002481600
|
mistral-7b-instruct-v0.3.Q5_1.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47cdc5f5b3f8d709ec3448d2e47c0b34433e47ce1bf8a27076c1c08859409d37
|
| 3 |
+
size 5447077824
|
mistral-7b-instruct-v0.3.Q5_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dced63f5bfc7f7ebdf9e5349c642594f20fe60ee6867aea98c05dad567daeebe
|
| 3 |
+
size 5136175040
|
mistral-7b-instruct-v0.3.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dced63f5bfc7f7ebdf9e5349c642594f20fe60ee6867aea98c05dad567daeebe
|
| 3 |
+
size 5136175040
|
mistral-7b-instruct-v0.3.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc7208c7a941fe5ce902131ca902d03db37533a0533ecc54393556c03782106c
|
| 3 |
+
size 5002481600
|
mistral-7b-instruct-v0.3.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9082134cc431873a09219002498a18dc2dd6086e9306add1448f8ff3b79d5e39
|
| 3 |
+
size 5947248576
|
mistral-7b-instruct-v0.3.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6225c953dfe5d1ee740ea9037d9d323aebe15be3c685f5fc72a3d382f63e84f9
|
| 3 |
+
size 7702564800
|
mistral-7b-instruct-v0.3.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cc6622d40e6d9c818091fc7ebd021d1193b8d21b834cfae2f459dc80dce4193
|
| 3 |
+
size 14497337280
|