Instructions to use yourGGUF/Maincoder-1B_GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use yourGGUF/Maincoder-1B_GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="yourGGUF/Maincoder-1B_GGUF", filename="Maincoder-1B_Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use yourGGUF/Maincoder-1B_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 yourGGUF/Maincoder-1B_GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yourGGUF/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 serve -hf yourGGUF/Maincoder-1B_GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yourGGUF/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 yourGGUF/Maincoder-1B_GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf yourGGUF/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 yourGGUF/Maincoder-1B_GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf yourGGUF/Maincoder-1B_GGUF:Q4_K_M
Use Docker
docker model run hf.co/yourGGUF/Maincoder-1B_GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use yourGGUF/Maincoder-1B_GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yourGGUF/Maincoder-1B_GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yourGGUF/Maincoder-1B_GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yourGGUF/Maincoder-1B_GGUF:Q4_K_M
- Ollama
How to use yourGGUF/Maincoder-1B_GGUF with Ollama:
ollama run hf.co/yourGGUF/Maincoder-1B_GGUF:Q4_K_M
- Unsloth Studio
How to use yourGGUF/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 yourGGUF/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 yourGGUF/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 yourGGUF/Maincoder-1B_GGUF to start chatting
- Pi
How to use yourGGUF/Maincoder-1B_GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yourGGUF/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": "yourGGUF/Maincoder-1B_GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use yourGGUF/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 serve -hf yourGGUF/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 yourGGUF/Maincoder-1B_GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use yourGGUF/Maincoder-1B_GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yourGGUF/Maincoder-1B_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 "yourGGUF/Maincoder-1B_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 yourGGUF/Maincoder-1B_GGUF with Docker Model Runner:
docker model run hf.co/yourGGUF/Maincoder-1B_GGUF:Q4_K_M
- Lemonade
How to use yourGGUF/Maincoder-1B_GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull yourGGUF/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
Commit ·
5e8dfe5
1
Parent(s): 6ef68bf
✔✔
Browse files- .gitattributes +11 -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_Q4_XS.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_bf16.gguf +3 -0
- README.md +6 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,14 @@ 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_Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Maincoder-1B_Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Maincoder-1B_Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Maincoder-1B_Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Maincoder-1B_Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Maincoder-1B_Q4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Maincoder-1B_Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Maincoder-1B_Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Maincoder-1B_Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Maincoder-1B_Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Maincoder-1B_bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
Maincoder-1B_Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9b31490fc0d1cf728f46ed8ca60080687e7a8cc62b6b8a9d02f0418c8739783
|
| 3 |
+
size 614673472
|
Maincoder-1B_Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a5a8190346f465cac5cbed994e43ad921c48c367d1fb20d5496feac2e42920b
|
| 3 |
+
size 579431488
|
Maincoder-1B_Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:467e106680bf74181094845ad3c25c88323201b7757f7b488605e0ac122789c6
|
| 3 |
+
size 538438720
|
Maincoder-1B_Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:222b4d604f42889440bb148bf7a245da2053d258ae3bd17ab4dc1d1b2051cbfb
|
| 3 |
+
size 672107584
|
Maincoder-1B_Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d3d81e78796ccd458d6415df88c304e66f046e36959119a72a34a1a4c6ae73c
|
| 3 |
+
size 647162944
|
Maincoder-1B_Q4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8b956b72ce92aad38fb494d6c518a3b47af8eb2c43a8211e546de2225838f68
|
| 3 |
+
size 625830976
|
Maincoder-1B_Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c5f93e14f217c0b9d631e24ecadff7d6bc40f1cb13b542fd8cc00a4914e4d40
|
| 3 |
+
size 757435456
|
Maincoder-1B_Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe7647c45897bb52cbc343bf49152aa70f12e26556acb128c4633058b27f260d
|
| 3 |
+
size 742812736
|
Maincoder-1B_Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cec07ed8e5edfb708d59d5a31049b62c3d353cecff1e1d9cdbf64fa9256a098a
|
| 3 |
+
size 848096320
|
Maincoder-1B_Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b7984a3888351ca70a086283544fb99e6795bc056a0ddccfb340055a7ccc5b7
|
| 3 |
+
size 1096604224
|
Maincoder-1B_bf16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:566da489008582531b2bbb05c870bb83b36b02b81740b72e999a6b74fbb108e5
|
| 3 |
+
size 2058570304
|
README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Maincode/Maincoder-1B
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
---
|
| 6 |
+
Quantized https://huggingface.co/Maincode/Maincoder-1B
|