Instructions to use instructlab/granite-7b-lab-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use instructlab/granite-7b-lab-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("instructlab/granite-7b-lab-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use instructlab/granite-7b-lab-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 instructlab/granite-7b-lab-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf instructlab/granite-7b-lab-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 instructlab/granite-7b-lab-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf instructlab/granite-7b-lab-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf instructlab/granite-7b-lab-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf instructlab/granite-7b-lab-GGUF:Q4_K_M
Use Docker
docker model run hf.co/instructlab/granite-7b-lab-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use instructlab/granite-7b-lab-GGUF with Ollama:
ollama run hf.co/instructlab/granite-7b-lab-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use instructlab/granite-7b-lab-GGUF with Docker Model Runner:
docker model run hf.co/instructlab/granite-7b-lab-GGUF:Q4_K_M
- Lemonade
How to use instructlab/granite-7b-lab-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull instructlab/granite-7b-lab-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.granite-7b-lab-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md (#1)
Browse files- Update README.md (700692d23763cb06e56f0b38d2d3ef2fd8a363cc)
Co-authored-by: Nathan Weinberg <nathan-weinberg@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
tags:
|
| 3 |
+
- granite
|
| 4 |
+
- ibm
|
| 5 |
+
- lab
|
| 6 |
+
- labrador
|
| 7 |
+
- labradorite
|
| 8 |
license: apache-2.0
|
| 9 |
+
language:
|
| 10 |
+
- en
|
| 11 |
+
base_model: instructlab/granite-7b-lab
|
| 12 |
+
quantized_by: IBM Research
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Granite 7b - GGUF
|
| 16 |
+
|
| 17 |
+
4-bit quantized version of [instructlab/granite-7b-lab](https://huggingface.co/instructlab/granite-7b-lab)
|