Instructions to use Nerdsking/nerdsking-python-coder-3B-i with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Nerdsking/nerdsking-python-coder-3B-i with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Nerdsking/nerdsking-python-coder-3B-i", filename="nerdsking-python-coder-3B-i_Q5_k_m.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Nerdsking/nerdsking-python-coder-3B-i with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M # Run inference directly in the terminal: llama-cli -hf Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M # Run inference directly in the terminal: llama-cli -hf Nerdsking/nerdsking-python-coder-3B-i:Q5_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 Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M # Run inference directly in the terminal: ./llama-cli -hf Nerdsking/nerdsking-python-coder-3B-i:Q5_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 Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M
Use Docker
docker model run hf.co/Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M
- LM Studio
- Jan
- vLLM
How to use Nerdsking/nerdsking-python-coder-3B-i with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Nerdsking/nerdsking-python-coder-3B-i" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Nerdsking/nerdsking-python-coder-3B-i", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M
- Ollama
How to use Nerdsking/nerdsking-python-coder-3B-i with Ollama:
ollama run hf.co/Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M
- Unsloth Studio new
How to use Nerdsking/nerdsking-python-coder-3B-i 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 Nerdsking/nerdsking-python-coder-3B-i 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 Nerdsking/nerdsking-python-coder-3B-i to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Nerdsking/nerdsking-python-coder-3B-i to start chatting
- Pi new
How to use Nerdsking/nerdsking-python-coder-3B-i with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Nerdsking/nerdsking-python-coder-3B-i:Q5_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": "Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Nerdsking/nerdsking-python-coder-3B-i with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Nerdsking/nerdsking-python-coder-3B-i:Q5_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 Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M
Run Hermes
hermes
- Docker Model Runner
How to use Nerdsking/nerdsking-python-coder-3B-i with Docker Model Runner:
docker model run hf.co/Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M
- Lemonade
How to use Nerdsking/nerdsking-python-coder-3B-i with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Nerdsking/nerdsking-python-coder-3B-i:Q5_K_M
Run and chat with the model
lemonade run user.nerdsking-python-coder-3B-i-Q5_K_M
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,4 +11,137 @@ base_model:
|
|
| 11 |
pipeline_tag: text-generation
|
| 12 |
tags:
|
| 13 |
- code
|
| 14 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
pipeline_tag: text-generation
|
| 12 |
tags:
|
| 13 |
- code
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 18 |
+
|
| 19 |
+
#### Model Details
|
| 20 |
+
<b>Nerdsking-python-coder-3B-i</b> is a 3B parameter partially uncensored model focused in <b> Python</b>, with <b>English</b> as main language. It was massively trained in python, therefore despite the fact it can code in other languages as well, the performance will be not in the same level as the one achieved while using python.
|
| 21 |
+
|
| 22 |
+
<i>Key Characteristics:</i>
|
| 23 |
+
|
| 24 |
+
- Parameter count: 3B
|
| 25 |
+
- Primary domain: Python programming
|
| 26 |
+
- Secondary capabilities: General coding, technical English
|
| 27 |
+
- Training focus: Python logic, standard library usage, algorithmic reasoning
|
| 28 |
+
- Alignment: Partially uncensored (developer-oriented)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
#### Benchmark
|
| 32 |
+
|
| 33 |
+
After intense refining, <b>Nerdsking-python-coder-3B-i</b> has achieved <b>88.41 in HumanEval (bf16)</b>, ranking it amongst the highest-performing Python-focused 3B models ever reported on HumanEval. Surpassing even much bigger models in that area.
|
| 34 |
+
|
| 35 |
+
<i>Benchmark details (164 tasks):</i>
|
| 36 |
+
|
| 37 |
+
- official HumanEval execution protocol - test suites executed via `exec()`
|
| 38 |
+
- zero-shot pass@1
|
| 39 |
+
- dtype == "bfloat16"
|
| 40 |
+
- temperature = 0.1
|
| 41 |
+
- do_sample = False
|
| 42 |
+
- evaluated on fully merged weights
|
| 43 |
+
- Prompting: Chat-formatted with a fixed system prompt (“You are an expert Python coding assistant.”)
|
| 44 |
+
- Quantization: None (unquantized weights - bf16)
|
| 45 |
+
|
| 46 |
+
<i>The configuration above is fully disclosed to support reproducibility and fair comparison.</i>
|
| 47 |
+
|
| 48 |
+
<i> Note: Quantized variants (INT4/INT6) may exhibit lower HumanEval scores due to reduced numerical precision.</i>
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
#### Comparison Table
|
| 53 |
+
|
| 54 |
+
<table>
|
| 55 |
+
<thead>
|
| 56 |
+
<tr>
|
| 57 |
+
<th>Model name</th>
|
| 58 |
+
<th>Approx. HumanEval Pass@1 (%)</th>
|
| 59 |
+
<th>Notes / Source</th>
|
| 60 |
+
</tr>
|
| 61 |
+
</thead>
|
| 62 |
+
<tbody>
|
| 63 |
+
<tr>
|
| 64 |
+
<td><strong>Nerdsking-python-coder-3B-i</strong></td>
|
| 65 |
+
<td><strong>88.41</strong></td>
|
| 66 |
+
<td>Evaluated score (zero-shot, strict HumanEval pass@1, using unquantized weigths bf16)</td>
|
| 67 |
+
</tr>
|
| 68 |
+
<tr>
|
| 69 |
+
<td>Qwen2.5-3B-Instruct</td>
|
| 70 |
+
<td>~45 (community)</td>
|
| 71 |
+
<td>Community evaluation (OpenCompass run); figures vary by harness/settings</td>
|
| 72 |
+
</tr>
|
| 73 |
+
<tr>
|
| 74 |
+
<td>StarCoder2-3B</td>
|
| 75 |
+
<td>~33.6</td>
|
| 76 |
+
<td>Reported in third-party performance overview; may differ by protocol</td>
|
| 77 |
+
</tr>
|
| 78 |
+
<tr>
|
| 79 |
+
<td>Stable Code 3B*</td>
|
| 80 |
+
<td>~32–33 (estimate)</td>
|
| 81 |
+
<td>Indicative proxy from published code-task performance breakdowns (not a strict HumanEval pass@1)</td>
|
| 82 |
+
</tr>
|
| 83 |
+
<tr>
|
| 84 |
+
<td>Wizard Coder 3B*</td>
|
| 85 |
+
<td>~31.6 (estimate)</td>
|
| 86 |
+
<td>Indicative proxy from published code-task performance breakdowns (not a strict HumanEval pass@1)</td>
|
| 87 |
+
</tr>
|
| 88 |
+
<tr>
|
| 89 |
+
<td>StarCoder 3B*</td>
|
| 90 |
+
<td>~21.6 (estimate)</td>
|
| 91 |
+
<td>Indicative proxy from published code-task performance breakdowns (not a strict HumanEval pass@1)</td>
|
| 92 |
+
</tr>
|
| 93 |
+
</tbody>
|
| 94 |
+
</table>
|
| 95 |
+
<p>
|
| 96 |
+
<em>*Estimated/proxy values where standardized HumanEval pass@1 was not published in those 3 models. Scores can vary with prompt format, decoding params, and harness.</em>
|
| 97 |
+
</p>
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
#### S.o.n.n.
|
| 103 |
+
The model was treated under <b>"s.o.n.n."</b> (<i>single omni neural network</i>), a concept created by IPMN at Nerdsking.com that is both a precise way of fine tunning/altering existing models, as well a foundational concept for a broader AI architecture standard currently under active research and development.
|
| 104 |
+
|
| 105 |
+
<i>When applied to pre-existing models, allows:</i>
|
| 106 |
+
|
| 107 |
+
- parameter-preserving refinement methodology
|
| 108 |
+
- focused global behavioral shaping, instead of task-local adapters
|
| 109 |
+
- avoidance of fragmentation, common in multi-adapter or task-siloed approaches
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
#### Quick Start (Inference)
|
| 114 |
+
|
| 115 |
+
<code>
|
| 116 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 117 |
+
|
| 118 |
+
model_id = "Nerdsking/Nerdsking-python-coder-3B-i"
|
| 119 |
+
|
| 120 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 121 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 122 |
+
model_id,
|
| 123 |
+
torch_dtype="bfloat16",
|
| 124 |
+
device_map="auto"
|
| 125 |
+
)
|
| 126 |
+
|
| 127 |
+
prompt = "Write a Python function that checks if a number is prime."
|
| 128 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 129 |
+
outputs = model.generate(**inputs, max_new_tokens=200)
|
| 130 |
+
|
| 131 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 132 |
+
</code>
|
| 133 |
+
|
| 134 |
+
#### Ethical & Safety Notes
|
| 135 |
+
|
| 136 |
+
This model is intended for technical and research use.
|
| 137 |
+
Due to relaxed alignment constraints, outputs should be reviewed before deployment in production or public-facing systems.
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
#### Citation
|
| 141 |
+
|
| 142 |
+
If you use this model in research or benchmarking, please cite:
|
| 143 |
+
|
| 144 |
+
Nerdsking-python-coder-3B-i,
|
| 145 |
+
IPMN / Nerdsking.com
|
| 146 |
+
|
| 147 |
+
|