Instructions to use mradermacher/Jan-code-4b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/Jan-code-4b-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/Jan-code-4b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/Jan-code-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/Jan-code-4b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/Jan-code-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/Jan-code-4b-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/Jan-code-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/Jan-code-4b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/Jan-code-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/Jan-code-4b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/Jan-code-4b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/Jan-code-4b-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/Jan-code-4b-GGUF with Ollama:
ollama run hf.co/mradermacher/Jan-code-4b-GGUF:Q4_K_M
- Unsloth Studio
How to use mradermacher/Jan-code-4b-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mradermacher/Jan-code-4b-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mradermacher/Jan-code-4b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mradermacher/Jan-code-4b-GGUF to start chatting
- Pi
How to use mradermacher/Jan-code-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/Jan-code-4b-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/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/Jan-code-4b-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use mradermacher/Jan-code-4b-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/Jan-code-4b-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/Jan-code-4b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/Jan-code-4b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Jan-code-4b-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use mradermacher/Jan-code-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/Jan-code-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/Jan-code-4b-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mradermacher/Jan-code-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/Jan-code-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/Jan-code-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 leia
Browse files- .gitattributes +12 -0
- Jan-code-4b.IQ4_XS.gguf +3 -0
- Jan-code-4b.Q2_K.gguf +3 -0
- Jan-code-4b.Q3_K_L.gguf +3 -0
- Jan-code-4b.Q3_K_M.gguf +3 -0
- Jan-code-4b.Q3_K_S.gguf +3 -0
- Jan-code-4b.Q4_K_M.gguf +3 -0
- Jan-code-4b.Q4_K_S.gguf +3 -0
- Jan-code-4b.Q5_K_M.gguf +3 -0
- Jan-code-4b.Q5_K_S.gguf +3 -0
- Jan-code-4b.Q6_K.gguf +3 -0
- Jan-code-4b.Q8_0.gguf +3 -0
- Jan-code-4b.f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Jan-code-4b.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Jan-code-4b.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Jan-code-4b.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Jan-code-4b.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Jan-code-4b.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Jan-code-4b.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Jan-code-4b.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Jan-code-4b.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Jan-code-4b.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Jan-code-4b.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Jan-code-4b.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Jan-code-4b.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
Jan-code-4b.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7455229fc1b3574f25895c8464ffa1ee7092849c7d4eccca03537eae1b127cf2
|
| 3 |
+
size 2492948192
|
Jan-code-4b.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97484fc8c12c46a0c18616716f03065a4ddd11d78419809a3166218c2ee2ad42
|
| 3 |
+
size 1797124832
|
Jan-code-4b.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c1c6e2626c75580ccd7948d8261f88c45f528f0c819438e693d26113e5d6123
|
| 3 |
+
size 2406914272
|
Jan-code-4b.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51743c3a181cf43ab4cb27a8412964f5d1fd867eae6511002725114189019307
|
| 3 |
+
size 2242746592
|
Jan-code-4b.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:16e5339a722fc818cdf0f21714dc3b7dd2eeeeb493b8bca7dd5a139288b48354
|
| 3 |
+
size 2054125792
|
Jan-code-4b.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd0a057098976dbd24687d42cd485a1264cb15a182f083341cf2e1a7889031a4
|
| 3 |
+
size 2716067552
|
Jan-code-4b.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79e6540924e3566a9db3e5431b77db8917804d7b3920bd367604db9ad9e3a436
|
| 3 |
+
size 2602096352
|
Jan-code-4b.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ae9edc6a0e7519cbf1437e58af48d5c2c3db977dd581d63321987469638d29e
|
| 3 |
+
size 3156920032
|
Jan-code-4b.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43ce83992aaa871bb680ca9a94c9e7dc7c210842381a2e472953e4c6e751287e
|
| 3 |
+
size 3091117792
|
Jan-code-4b.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a88332c4da1b97f06c029f44b54231ecfe2d995f973f9ce39ba5d8d1c21e5ec
|
| 3 |
+
size 3625325792
|
Jan-code-4b.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8fe968a3bf4784a20adb33aade9d325590cd0f32b17dc69bf45c7daf44282187
|
| 3 |
+
size 4693670112
|
Jan-code-4b.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8991f263c6e8fac31a83a48da63e727259c250266d158952fda7ba990638fac0
|
| 3 |
+
size 8829196512
|