Instructions to use mradermacher/SoCode-v1-2B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/SoCode-v1-2B-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/SoCode-v1-2B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/SoCode-v1-2B-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/SoCode-v1-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/SoCode-v1-2B-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/SoCode-v1-2B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mradermacher/SoCode-v1-2B-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/SoCode-v1-2B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/SoCode-v1-2B-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/SoCode-v1-2B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/SoCode-v1-2B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/SoCode-v1-2B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/SoCode-v1-2B-GGUF with Ollama:
ollama run hf.co/mradermacher/SoCode-v1-2B-GGUF:Q4_K_M
- Unsloth Studio
How to use mradermacher/SoCode-v1-2B-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/SoCode-v1-2B-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/SoCode-v1-2B-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/SoCode-v1-2B-GGUF to start chatting
- Pi
How to use mradermacher/SoCode-v1-2B-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/SoCode-v1-2B-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/SoCode-v1-2B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use mradermacher/SoCode-v1-2B-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/SoCode-v1-2B-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/SoCode-v1-2B-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"
- Docker Model Runner
How to use mradermacher/SoCode-v1-2B-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/SoCode-v1-2B-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/SoCode-v1-2B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/SoCode-v1-2B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.SoCode-v1-2B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use mradermacher/SoCode-v1-2B-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/SoCode-v1-2B-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/SoCode-v1-2B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
uploaded from back
Browse files- .gitattributes +12 -0
- SoCode-v1-2B.IQ4_XS.gguf +3 -0
- SoCode-v1-2B.Q2_K.gguf +3 -0
- SoCode-v1-2B.Q3_K_L.gguf +3 -0
- SoCode-v1-2B.Q3_K_M.gguf +3 -0
- SoCode-v1-2B.Q3_K_S.gguf +3 -0
- SoCode-v1-2B.Q4_K_M.gguf +3 -0
- SoCode-v1-2B.Q4_K_S.gguf +3 -0
- SoCode-v1-2B.Q5_K_M.gguf +3 -0
- SoCode-v1-2B.Q5_K_S.gguf +3 -0
- SoCode-v1-2B.Q6_K.gguf +3 -0
- SoCode-v1-2B.Q8_0.gguf +3 -0
- SoCode-v1-2B.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 |
+
SoCode-v1-2B.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
SoCode-v1-2B.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
SoCode-v1-2B.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
SoCode-v1-2B.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
SoCode-v1-2B.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
SoCode-v1-2B.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
SoCode-v1-2B.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
SoCode-v1-2B.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
SoCode-v1-2B.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
SoCode-v1-2B.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
SoCode-v1-2B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
SoCode-v1-2B.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
SoCode-v1-2B.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34193211f4505539f3ddf3b5f253d3eb9e3877deaf73b0992572510f7e5242f9
|
| 3 |
+
size 1234378368
|
SoCode-v1-2B.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36e27322f190b9cbbfb197e5ad15abf5f0163dfed8f99bfc34f70ae792c1bc47
|
| 3 |
+
size 990492288
|
SoCode-v1-2B.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90b37a1ec290ab71a424f34cffe4333611f8214fedaacf6c3d567a8a434e1f7c
|
| 3 |
+
size 1195305600
|
SoCode-v1-2B.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57aced53f0f2535565a6bea2de2c766f5ee0767db196b4f0cf8420d607d1f2e1
|
| 3 |
+
size 1127803520
|
SoCode-v1-2B.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87978b030ac14017de78b810e90d67e6c2f14df494a38a66d744c7e49bb16cb1
|
| 3 |
+
size 1046350464
|
SoCode-v1-2B.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fd82c197bd51d99df18af562ead03a12696a194601e883bfae4d263be9c727b
|
| 3 |
+
size 1312165504
|
SoCode-v1-2B.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05c9bdaf2df0f968e044d9c3439c36832d2d67b4b50253ea16ae7a958ddb5b4c
|
| 3 |
+
size 1246310016
|
SoCode-v1-2B.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0c652f5efb265f4c7e5e01f193d7dcb4e6b2091116af19fdc0daeef2a5f6064
|
| 3 |
+
size 1454788224
|
SoCode-v1-2B.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11d894dc7c4a487150b870f54e8a832d69a0015d2d549ad903de4c8dde092c54
|
| 3 |
+
size 1415933568
|
SoCode-v1-2B.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6dd55062f66644eb89cd822f15d2cd5705148ecd8d7f7926777c575d1434488
|
| 3 |
+
size 1606324864
|
SoCode-v1-2B.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5d331c575e37bbce89f94ac548d8f8048758b1f73d7734be788e602795a0d85
|
| 3 |
+
size 2076675712
|
SoCode-v1-2B.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a7fee0881eddde786883b7788f8fb327658071e04f2d3e56d0334cbbbb0c9d1
|
| 3 |
+
size 3897388672
|