Instructions to use mradermacher/PreciseCoder-4B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/PreciseCoder-4B-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/PreciseCoder-4B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/PreciseCoder-4B-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 mradermacher/PreciseCoder-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/PreciseCoder-4B-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 mradermacher/PreciseCoder-4B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/PreciseCoder-4B-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 mradermacher/PreciseCoder-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/PreciseCoder-4B-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 mradermacher/PreciseCoder-4B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/PreciseCoder-4B-GGUF with Ollama:
ollama run hf.co/mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use mradermacher/PreciseCoder-4B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mradermacher/PreciseCoder-4B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use mradermacher/PreciseCoder-4B-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/PreciseCoder-4B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.PreciseCoder-4B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use mradermacher/PreciseCoder-4B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mradermacher/PreciseCoder-4B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mradermacher/PreciseCoder-4B-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "mradermacher/PreciseCoder-4B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
uploaded from marco
Browse files- .gitattributes +12 -0
- PreciseCoder-4B.IQ4_XS.gguf +3 -0
- PreciseCoder-4B.Q2_K.gguf +3 -0
- PreciseCoder-4B.Q3_K_L.gguf +3 -0
- PreciseCoder-4B.Q3_K_M.gguf +3 -0
- PreciseCoder-4B.Q3_K_S.gguf +3 -0
- PreciseCoder-4B.Q4_K_M.gguf +3 -0
- PreciseCoder-4B.Q4_K_S.gguf +3 -0
- PreciseCoder-4B.Q5_K_M.gguf +3 -0
- PreciseCoder-4B.Q5_K_S.gguf +3 -0
- PreciseCoder-4B.Q6_K.gguf +3 -0
- PreciseCoder-4B.Q8_0.gguf +3 -0
- PreciseCoder-4B.f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
PreciseCoder-4B.mmproj-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
PreciseCoder-4B.mmproj-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
PreciseCoder-4B.mmproj-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
PreciseCoder-4B.mmproj-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
PreciseCoder-4B.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
PreciseCoder-4B.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
PreciseCoder-4B.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
PreciseCoder-4B.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
PreciseCoder-4B.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
PreciseCoder-4B.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
PreciseCoder-4B.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
PreciseCoder-4B.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
PreciseCoder-4B.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
PreciseCoder-4B.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
PreciseCoder-4B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
PreciseCoder-4B.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
PreciseCoder-4B.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81fbb2596ba2cc62746a4f6f8416e026075c7850af34da7d0af11a0f5f51cc75
|
| 3 |
+
size 2529031488
|
PreciseCoder-4B.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6eabde5eae3cebcbbca04e7c1fc8f0feb23e5fd8cad73bc7c17682fd66a478d
|
| 3 |
+
size 1915471168
|
PreciseCoder-4B.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf9b6143761872668fcc49c1277370578abd3000cd15f3328170efd43cc29ca5
|
| 3 |
+
size 2421316928
|
PreciseCoder-4B.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:949535b7b011b03f6056f5aef6aa25314809a09aea32a8d1a7f5531d467217b8
|
| 3 |
+
size 2262064448
|
PreciseCoder-4B.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf206df84db1e23be349a607a8b35b997ba58b47f2a2be3103ee8c04fb39f8ee
|
| 3 |
+
size 2069880128
|
PreciseCoder-4B.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dfe4423174a2f4683930009a52a2546848037c49971fa31a52aa16ba3a3d9504
|
| 3 |
+
size 2708804928
|
PreciseCoder-4B.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7173417ad8de12c05b4c80f9e7ba9a8dc1032b3f348e3dce358d1b045eb58f55
|
| 3 |
+
size 2563888448
|
PreciseCoder-4B.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e80359c399841ce95a52af144987c64c8e5995f184db5673c07cc1e3a26f8c2
|
| 3 |
+
size 3074987328
|
PreciseCoder-4B.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1367d11d206306f8335bb4028246a25ead60ab44be4c50141974bf5e014c214
|
| 3 |
+
size 2990036288
|
PreciseCoder-4B.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8715a385b962e6fc475aad95fed3cdbee8caa67489fc2df7f667df9d1332981
|
| 3 |
+
size 3464056128
|
PreciseCoder-4B.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18024e6d405f4be6393505da636c3241c804b74cc1c1e3bc7ca8ce5a7ea6b722
|
| 3 |
+
size 4482403648
|
PreciseCoder-4B.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b27dd118a340d58ad566c3b7c79a3ecf121e20ea6583ad5d417d77b0e17f5556
|
| 3 |
+
size 8424394048
|