Reinforcement Learning
Transformers
GGUF
English
code
python
maincoder
code-generation
mcpo
conversational
Instructions to use mradermacher/Maincoder-1B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/Maincoder-1B-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/Maincoder-1B-GGUF", dtype="auto") - llama-cpp-python
How to use mradermacher/Maincoder-1B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mradermacher/Maincoder-1B-GGUF", filename="Maincoder-1B.IQ4_XS.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/Maincoder-1B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/Maincoder-1B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/Maincoder-1B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/Maincoder-1B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/Maincoder-1B-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/Maincoder-1B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/Maincoder-1B-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/Maincoder-1B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/Maincoder-1B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/Maincoder-1B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/Maincoder-1B-GGUF with Ollama:
ollama run hf.co/mradermacher/Maincoder-1B-GGUF:Q4_K_M
- Unsloth Studio
How to use mradermacher/Maincoder-1B-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/Maincoder-1B-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/Maincoder-1B-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/Maincoder-1B-GGUF to start chatting
- Pi
How to use mradermacher/Maincoder-1B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf mradermacher/Maincoder-1B-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/Maincoder-1B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use mradermacher/Maincoder-1B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf mradermacher/Maincoder-1B-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/Maincoder-1B-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use mradermacher/Maincoder-1B-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/Maincoder-1B-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/Maincoder-1B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/Maincoder-1B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Maincoder-1B-GGUF-Q4_K_M
List all available models
lemonade list
uploaded from leia
Browse files- .gitattributes +12 -0
- Maincoder-1B.IQ4_XS.gguf +3 -0
- Maincoder-1B.Q2_K.gguf +3 -0
- Maincoder-1B.Q3_K_L.gguf +3 -0
- Maincoder-1B.Q3_K_M.gguf +3 -0
- Maincoder-1B.Q3_K_S.gguf +3 -0
- Maincoder-1B.Q4_K_M.gguf +3 -0
- Maincoder-1B.Q4_K_S.gguf +3 -0
- Maincoder-1B.Q5_K_M.gguf +3 -0
- Maincoder-1B.Q5_K_S.gguf +3 -0
- Maincoder-1B.Q6_K.gguf +3 -0
- Maincoder-1B.Q8_0.gguf +3 -0
- Maincoder-1B.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 |
+
Maincoder-1B.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Maincoder-1B.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Maincoder-1B.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Maincoder-1B.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Maincoder-1B.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Maincoder-1B.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Maincoder-1B.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Maincoder-1B.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Maincoder-1B.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Maincoder-1B.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Maincoder-1B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Maincoder-1B.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
Maincoder-1B.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:482295452d6e92124b12142115eb51f0ca351dbae5b0475ac0f6d5a4efdb97e8
|
| 3 |
+
size 625831680
|
Maincoder-1B.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48c22fed9eb682c01580a1472330528bfa02c25c41d430409dd3947f0ec8c931
|
| 3 |
+
size 490467072
|
Maincoder-1B.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55080deda8bfc9dfe1bb2ebf1244052156aad88129b1d7de0349278a1775489f
|
| 3 |
+
size 614674176
|
Maincoder-1B.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:740ffd933882f03ce48b0017844c92773f9c7cc8720420e2c6479970b5c5d306
|
| 3 |
+
size 579432192
|
Maincoder-1B.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4f27889936107dd422c3b6190139e0889af8ef2efe85610f04a526103131c59
|
| 3 |
+
size 538439424
|
Maincoder-1B.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2db4b53955a58f4483442110fdd5534bfa22a45447f35a131b839a034ffa2998
|
| 3 |
+
size 672108288
|
Maincoder-1B.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2ab2ce7ab10c0f45616ad4821c8bc5379cb3bf60003dce9f0bd01b4753bfbf4
|
| 3 |
+
size 647163648
|
Maincoder-1B.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f3c202bc3515a7a9d928dcd840bfa600dcf3c20dff05a4f7102e6cde4d51aae
|
| 3 |
+
size 757436160
|
Maincoder-1B.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e6693937fff2e867432ed7b2eec43ccc023f6500b5ca7db5f3c3bfd1109acb0
|
| 3 |
+
size 742813440
|
Maincoder-1B.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed1935b6d7315ef2f403efe83a435031d53aeb804775784fa59757933d4e4726
|
| 3 |
+
size 848097024
|
Maincoder-1B.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21766bd14873aef1a4e749c3821e35a01cc1da72b168af7c4b04731b9e90dbe9
|
| 3 |
+
size 1096604928
|
Maincoder-1B.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c8d3c1f8eea31bbb0cf3f8f462394ccce9db039084678e9e63a507c32515c61
|
| 3 |
+
size 2058571008
|