Instructions to use tensorblock/Mozaic-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/Mozaic-7B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/Mozaic-7B-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/Mozaic-7B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/Mozaic-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/Mozaic-7B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Mozaic-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/Mozaic-7B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Mozaic-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/Mozaic-7B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Mozaic-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/Mozaic-7B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Mozaic-7B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Mozaic-7B-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/Mozaic-7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/Mozaic-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/Mozaic-7B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/Mozaic-7B-GGUF:Q2_K
- SGLang
How to use tensorblock/Mozaic-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/Mozaic-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/Mozaic-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/Mozaic-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/Mozaic-7B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/Mozaic-7B-GGUF with Ollama:
ollama run hf.co/tensorblock/Mozaic-7B-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/Mozaic-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/Mozaic-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/Mozaic-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/Mozaic-7B-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/Mozaic-7B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Mozaic-7B-GGUF:Q2_K
- Lemonade
How to use tensorblock/Mozaic-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Mozaic-7B-GGUF:Q2_K
Run and chat with the model
lemonade run user.Mozaic-7B-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Remove .gguf files (keep Q2_K.gguf)
Browse files- Mozaic-7B-Q3_K_L.gguf +0 -3
- Mozaic-7B-Q3_K_M.gguf +0 -3
- Mozaic-7B-Q3_K_S.gguf +0 -3
- Mozaic-7B-Q4_0.gguf +0 -3
- Mozaic-7B-Q4_K_M.gguf +0 -3
- Mozaic-7B-Q4_K_S.gguf +0 -3
- Mozaic-7B-Q5_0.gguf +0 -3
- Mozaic-7B-Q5_K_M.gguf +0 -3
- Mozaic-7B-Q5_K_S.gguf +0 -3
- Mozaic-7B-Q6_K.gguf +0 -3
- Mozaic-7B-Q8_0.gguf +0 -3
Mozaic-7B-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8417ffbd085a32600bf95f4fddaa35ee50b1690ec71e3bbf9a3d92f2fce5fdba
|
| 3 |
-
size 3822025312
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6a64bb5d9217c55ab249ea75c89e07f22543f94bc3196ed7b8fc31894c27fe60
|
| 3 |
-
size 3518986848
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:97793af2e0ecf61365a74d3ee3f0cf7c8d38a703ffe90afbf718b6cf14030b92
|
| 3 |
-
size 3164568160
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1242d41bf0f050ead701c806661e2988decd71b44bbeae9359a862b4fbbe73fe
|
| 3 |
-
size 4108917344
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f8d7b890f46cb96315faa89e8827020ae5fb6fd42783aa2bf6346c45f80dd771
|
| 3 |
-
size 4368439904
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dc58368194b7ac55a48866ec986b38568aa944647ec2a770ccc5c2b5b967bbf8
|
| 3 |
-
size 4140374624
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b8cbf7fc6fc507b954387b9daef49ab47aa2dd5e28e594f8a5740d919f4418a9
|
| 3 |
-
size 4997716576
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c0e89a881650e72e3211999e08ae7095d89f7ef489f75f16acc28d8881f623a4
|
| 3 |
-
size 5131410016
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e93c25b1ab3b80bb3fac5f0ebc3540d09c8f3334a029017329c48da3dde40fa7
|
| 3 |
-
size 4997716576
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a3dde3c140f102e6e56c90a87303b5a90374a7c0c9a1a704087a5a85c26ab81d
|
| 3 |
-
size 5942065760
|
|
|
|
|
|
|
|
|
|
|
|
Mozaic-7B-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8a47dfab144f30a8f6d375041867784188ab12601caa5b2cb4f76c8745c9d285
|
| 3 |
-
size 7695858272
|
|
|
|
|
|
|
|
|
|
|
|