Instructions to use xenonshare/NanoMend-1.5-Ultimate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use xenonshare/NanoMend-1.5-Ultimate 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 xenonshare/NanoMend-1.5-Ultimate # Run inference directly in the terminal: llama cli -hf xenonshare/NanoMend-1.5-Ultimate
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf xenonshare/NanoMend-1.5-Ultimate # Run inference directly in the terminal: llama cli -hf xenonshare/NanoMend-1.5-Ultimate
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 xenonshare/NanoMend-1.5-Ultimate # Run inference directly in the terminal: ./llama-cli -hf xenonshare/NanoMend-1.5-Ultimate
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 xenonshare/NanoMend-1.5-Ultimate # Run inference directly in the terminal: ./build/bin/llama-cli -hf xenonshare/NanoMend-1.5-Ultimate
Use Docker
docker model run hf.co/xenonshare/NanoMend-1.5-Ultimate
- LM Studio
- Jan
- vLLM
How to use xenonshare/NanoMend-1.5-Ultimate with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xenonshare/NanoMend-1.5-Ultimate" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xenonshare/NanoMend-1.5-Ultimate", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xenonshare/NanoMend-1.5-Ultimate
- Ollama
How to use xenonshare/NanoMend-1.5-Ultimate with Ollama:
ollama run hf.co/xenonshare/NanoMend-1.5-Ultimate
- Unsloth Studio
How to use xenonshare/NanoMend-1.5-Ultimate 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 xenonshare/NanoMend-1.5-Ultimate 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 xenonshare/NanoMend-1.5-Ultimate to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for xenonshare/NanoMend-1.5-Ultimate to start chatting
- Pi
How to use xenonshare/NanoMend-1.5-Ultimate with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xenonshare/NanoMend-1.5-Ultimate
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": "xenonshare/NanoMend-1.5-Ultimate" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use xenonshare/NanoMend-1.5-Ultimate with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xenonshare/NanoMend-1.5-Ultimate
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 xenonshare/NanoMend-1.5-Ultimate
Run Hermes
hermes
- OpenClaw new
How to use xenonshare/NanoMend-1.5-Ultimate with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf xenonshare/NanoMend-1.5-Ultimate
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 "xenonshare/NanoMend-1.5-Ultimate" \ --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 xenonshare/NanoMend-1.5-Ultimate with Docker Model Runner:
docker model run hf.co/xenonshare/NanoMend-1.5-Ultimate
- Lemonade
How to use xenonshare/NanoMend-1.5-Ultimate with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull xenonshare/NanoMend-1.5-Ultimate
Run and chat with the model
lemonade run user.NanoMend-1.5-Ultimate-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
π οΈ NanoMend 1.5 Ultimate (GGUF)
NanoMend-1.5-Ultimate is a fine-tuned, CPU-optimized 1.5B parameter language model specialized in Python AST-aware logic trap detection, code repair, and performance optimization.
Engineered specifically for local, privacy-first developer tooling (such as VS Code extensions), it pairs deterministically with AST parsers to diagnose infinite loops, resource leaks, semantic intent errors, O(NΒ²) performance issues, and static index errors without sending code to cloud APIs.
π Key Features
- Quantization: CPU-friendly GGUF quantization format (
llama.cppcompatible). - Prompt Format: ChatML (
<|im_start|>system...) - Context Length: 2048 tokens
- Specialization: Python Code Repair, AST Trap Resolution, Performance Refactoring.
- Privacy: 100% offline, zero external telemetry.
β‘ Quickstart Usage (Python / llama-cpp-python)
You can run NanoMend-1.5-Ultimate locally using Python in just a few lines:
pip install llama-cpp-python huggingface_hub
from huggingface_hub import hf_hub_download
from llama_cpp import Llama
# 1. Download model from Hugging Face Hub
model_path = hf_hub_download(
repo_id="xenonshare/NanoMend-1.5-Ultimate",
filename="nanomend-ultimate-1.5b.gguf"
)
# 2. Load model into CPU memory
llm = Llama(
model_path=model_path,
n_ctx=2048,
n_threads=8,
verbose=False
)
# 3. Format Prompt (ChatML Format)
system_prompt = "You are a Senior Python Developer. The user's code has a CRITICAL error: INTENT ERROR. Function 'add' implies addition but uses multiplication (*). Rewrite the code to fix this. Output ONLY the fixed python code."
code_snippet = """def add(a, b):
return a * b
"""
prompt = f"<|im_start|>system\n{system_prompt}<|im_end|>\n<|im_start|>user\n{code_snippet}<|im_end|>\n<|im_start|>assistant\n"
# 4. Generate Repair
output = llm(
prompt,
max_tokens=256,
stop=["<|im_end|>"],
temperature=0.1
)
print(output['choices'][0]['text'])
π¬ Prompt Template
NanoMend uses the standard ChatML format:
<|im_start|>system
You are a Senior Python Developer. The user's code has a CRITICAL error: {AST_WARNING}. Rewrite the code to fix this. Output ONLY the fixed python code.<|im_end|>
<|im_start|>user
{PYTHON_CODE}<|im_end|>
<|im_start|>assistant
π¦ Running with Ollama
You can import this model into Ollama by creating a Modelfile:
FROM ./nanomend-ultimate-1.5b.gguf
TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
PARAMETER stop "<|im_end|>"
PARAMETER temperature 0.1
Run in terminal:
ollama create nanomend -f Modelfile
ollama run nanomend "Fix this loop: while x > 0: print(x)"
π Evaluation & Scope
NanoMend-1.5-Ultimate is fine-tuned to resolve the 12 primary Python logic traps:
- Infinite Loops (Unmutated control variables)
- Type Safety Mismatches
- Resource Leaks (
open()withoutwithor.close()) - Security Risks (Hardcoded credentials)
- $O(N^2)$ Nested Loops to $O(N)$ Hash Lookups
- Semantic Intent (e.g.
multiplyusing+,is_evenreturning odd) - Void Function Assignment (
return None) - Index Out of Bounds
- Off-by-one average calculations
π License
MIT License. Free for commercial and open-source use.
- Downloads last month
- 38
We're not able to determine the quantization variants.