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 Shinzmann/naija-petro-8b-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf Shinzmann/naija-petro-8b-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 Shinzmann/naija-petro-8b-GGUF:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf Shinzmann/naija-petro-8b-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 Shinzmann/naija-petro-8b-GGUF:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf Shinzmann/naija-petro-8b-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 Shinzmann/naija-petro-8b-GGUF:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf Shinzmann/naija-petro-8b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Shinzmann/naija-petro-8b-GGUF:Q4_K_M
Quick Links

Naija-Petro 8B GGUF

GGUF quantizations of Shinzmann/naija-petro-8b for CPU/edge inference with llama.cpp, Ollama, LM Studio, and compatible runtimes.

See the full model card for training details, intended use, and limitations. For Nigeria-specific accuracy, use these weights with the Naija-Petro RAG system.

Available quantizations

File suffix Method Notes
Q4_K_M 4-bit (k-quant, medium) Best size/quality trade-off, recommended default
Q8_0 8-bit Near-lossless; larger and slower

Usage

Ollama

ollama run hf.co/Shinzmann/naija-petro-8b-GGUF:Q4_K_M

llama.cpp

# download a specific quant, then:
./llama-cli -hf Shinzmann/naija-petro-8b-GGUF:Q4_K_M \
  -p "Explain the material balance equation for an undersaturated reservoir." \
  -c 4096

Python (llama-cpp-python)

from llama_cpp import Llama
llm = Llama.from_pretrained(
    repo_id="Shinzmann/naija-petro-8b-GGUF",
    filename="*Q4_K_M.gguf",
    n_ctx=4096,
)
print(llm.create_chat_completion(messages=[
    {"role": "system", "content": "You are Naija-Petro, an expert petroleum-engineering AI assistant."},
    {"role": "user", "content": "How do you interpret a Horner plot?"},
])["choices"][0]["message"]["content"])

License

Apache-2.0 (inherited from Qwen3-8B). Validate outputs with qualified engineers before operational use.

Downloads last month
187
GGUF
Model size
8B params
Architecture
qwen3
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

Model tree for Shinzmann/naija-petro-8b-GGUF

Finetuned
Qwen/Qwen3-8B
Quantized
(1)
this model