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

ocm-coder

LoRA adapters fine-tuned on the Open Component Model (OCM) and OCI specification ecosystem.

Base model: mlx-community/Qwen2.5-Coder-32B-Instruct-4bit

Usage

from mlx_lm import load, generate

model, tokenizer = load(
    "mlx-community/Qwen2.5-Coder-32B-Instruct-4bit",
    adapter_path="piotrjanik/ocm-coder",
)
Downloads last month
1
MLX
Hardware compatibility
Log In to add your hardware

Quantized

GGUF
Model size
33B params
Architecture
qwen2
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 piotrjanik/ocm-coder