Instructions to use tensorblock/openinstruct-mistral-7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/openinstruct-mistral-7b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/openinstruct-mistral-7b-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/openinstruct-mistral-7b-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/openinstruct-mistral-7b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/openinstruct-mistral-7b-GGUF", filename="openinstruct-mistral-7b-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/openinstruct-mistral-7b-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/openinstruct-mistral-7b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/openinstruct-mistral-7b-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/openinstruct-mistral-7b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/openinstruct-mistral-7b-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/openinstruct-mistral-7b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/openinstruct-mistral-7b-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/openinstruct-mistral-7b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/openinstruct-mistral-7b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/openinstruct-mistral-7b-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/openinstruct-mistral-7b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/openinstruct-mistral-7b-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/openinstruct-mistral-7b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/openinstruct-mistral-7b-GGUF:Q2_K
- SGLang
How to use tensorblock/openinstruct-mistral-7b-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/openinstruct-mistral-7b-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/openinstruct-mistral-7b-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/openinstruct-mistral-7b-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/openinstruct-mistral-7b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/openinstruct-mistral-7b-GGUF with Ollama:
ollama run hf.co/tensorblock/openinstruct-mistral-7b-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/openinstruct-mistral-7b-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/openinstruct-mistral-7b-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/openinstruct-mistral-7b-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/openinstruct-mistral-7b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/openinstruct-mistral-7b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/openinstruct-mistral-7b-GGUF:Q2_K
- Lemonade
How to use tensorblock/openinstruct-mistral-7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/openinstruct-mistral-7b-GGUF:Q2_K
Run and chat with the model
lemonade run user.openinstruct-mistral-7b-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- openinstruct-mistral-7b-Q3_K_L.gguf +0 -3
- openinstruct-mistral-7b-Q3_K_S.gguf +0 -3
- openinstruct-mistral-7b-Q4_0.gguf +0 -3
- openinstruct-mistral-7b-Q4_K_M.gguf +0 -3
- openinstruct-mistral-7b-Q4_K_S.gguf +0 -3
- openinstruct-mistral-7b-Q5_0.gguf +0 -3
- openinstruct-mistral-7b-Q5_K_M.gguf +0 -3
- openinstruct-mistral-7b-Q5_K_S.gguf +0 -3
- openinstruct-mistral-7b-Q6_K.gguf +0 -3
- openinstruct-mistral-7b-Q8_0.gguf +0 -3
openinstruct-mistral-7b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4812ba7076c30b89194513848245baddf1c3dc8d55fde10fc8c9a47f4ffb251b
|
| 3 |
-
size 3822030528
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8e381f38a9e776c36a749e6c2b31c65087fa75df14d7b5ba915d1b6f0df6751d
|
| 3 |
-
size 3164573376
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1f2e7037fe8b437271cbf2520e4c0628e45f77ef3c6d6b4115172b3bc484f75a
|
| 3 |
-
size 4108923104
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7a17c8002c3fb93219a2ec96ca2eeeda7edc9dbbe0d14182e3cc6e7ddfd80dca
|
| 3 |
-
size 4368445664
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b60739f5b543ad0dda02c9902bc290cf84b49fdeed9ad55c14f6885fc004e104
|
| 3 |
-
size 4140380384
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9feafec2a60285b333ac1e8cfe5f4a9d86b103c623a10dc949caa8b769e8a670
|
| 3 |
-
size 4997722848
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:155038693fced4172339d185cbffa782075483876dd804ef1c5e1bd8a43d11b6
|
| 3 |
-
size 5131416288
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:315e06bea401da23ad474539eb5762cd8bed8a406828425feb46abb8b6767025
|
| 3 |
-
size 4997722848
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d77375962113669b9493acd0c26c18aac51bc86aa6bd243f3f95c070d9d2fbbe
|
| 3 |
-
size 5942072576
|
|
|
|
|
|
|
|
|
|
|
|
openinstruct-mistral-7b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cab2df2cf760b1ba2ccc41c639348bb6dca650a44714a5e0a1a1c7f38b819482
|
| 3 |
-
size 7695867072
|
|
|
|
|
|
|
|
|
|
|
|