How to use from
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 mswaringen/GritLM-7B-GGUF-quantized:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf mswaringen/GritLM-7B-GGUF-quantized:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf mswaringen/GritLM-7B-GGUF-quantized:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf mswaringen/GritLM-7B-GGUF-quantized: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 mswaringen/GritLM-7B-GGUF-quantized:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf mswaringen/GritLM-7B-GGUF-quantized: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 mswaringen/GritLM-7B-GGUF-quantized:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf mswaringen/GritLM-7B-GGUF-quantized:Q4_K_M
Use Docker
docker model run hf.co/mswaringen/GritLM-7B-GGUF-quantized:Q4_K_M
Quick Links

GGUF quants for https://huggingface.co/GritLM/GritLM-7B

GritLM is a generative representational instruction tuned language model. It unifies text representation (embedding) and text generation into a single model achieving state-of-the-art performance on both types of tasks.

Layers Context Template (Text Representation) Template (Text Generation)
32
32768
<s><|user|>
{instruction}
<|embed|>
{sample}
<s><|user|>
{prompt}
<|assistant|>
{response}
Downloads last month
10
GGUF
Model size
7B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support