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 rovdetection/code-1b-chat-v2-gguf:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf rovdetection/code-1b-chat-v2-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 rovdetection/code-1b-chat-v2-gguf:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf rovdetection/code-1b-chat-v2-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 rovdetection/code-1b-chat-v2-gguf:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf rovdetection/code-1b-chat-v2-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 rovdetection/code-1b-chat-v2-gguf:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf rovdetection/code-1b-chat-v2-gguf:Q4_K_M
Use Docker
docker model run hf.co/rovdetection/code-1b-chat-v2-gguf:Q4_K_M
Quick Links

code-1b-chat-v2 GGUF

GGUF quantization of rovdetection/code-1b-chat-v2.

Available files

File Quant Size Use case
code-1b-chat-v2-Q4_K_M.gguf Q4_K_M ~700 MB Recommended โ€” best quality/speed

Usage with llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
    repo_id="rovdetection/code-1b-chat-v2-gguf",
    filename="code-1b-chat-v2-Q4_K_M.gguf",
    n_ctx=2048,
)

SYSTEM = "Below is an instruction that describes a coding task. Write a response that appropriately completes the request."
prompt = f"{SYSTEM}\n\n### Instruction:\nWrite a fibonacci function.\n\n### Response:\n"

out = llm(prompt, max_tokens=200, temperature=0.7, stop=["### Instruction:"])
print(out["choices"][0]["text"])
Downloads last month
77
GGUF
Model size
1B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for rovdetection/code-1b-chat-v2-gguf

Quantized
(1)
this model

Space using rovdetection/code-1b-chat-v2-gguf 1