Instructions to use TheStrongestOfTomorrow/nano-coder-1.5b-agentic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Studio
How to use TheStrongestOfTomorrow/nano-coder-1.5b-agentic 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 TheStrongestOfTomorrow/nano-coder-1.5b-agentic 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 TheStrongestOfTomorrow/nano-coder-1.5b-agentic to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TheStrongestOfTomorrow/nano-coder-1.5b-agentic to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="TheStrongestOfTomorrow/nano-coder-1.5b-agentic", max_seq_length=2048, )
β² Project Nano-Coder (1.5B Agentic)
Model Description
Project Nano-Coder is a highly compact, agentic AI model fine-tuned exclusively for programming tasks. It is designed to be the smallest, most efficient coding agent possible.
Crucially, this model has been intentionally trained to possess ZERO general knowledge. It does not know history, trivia, or general chat. It only understands programming logic, syntax, and debugging.
π§ Agentic Architecture
The model is trained on a strict Thought -> Action -> Observation loop. When given a task, it is designed to:
- Thought: Analyze the programming problem.
- Action: Output the precise code block required.
- Observation: Acknowledge the successful generation or prepare to debug based on external feedback.
π οΈ Intended Use
- Autonomous coding agents and assistants.
- Code generation, completion, and refactoring.
- Debugging and error resolution in Python, JavaScript, HTML, C++, and more.
β οΈ Limitations & Guardrails
- No General Knowledge: If asked "Who is the president?" or "Tell me a joke", the model will either refuse or output nonsensical code.
- Requires an External Loop: For true agentic behavior (executing code and reading errors), this model should be paired with an external Python execution sandbox (ReAct loop) that feeds execution results back into the model's prompt.
π» Training Details
- Base Model: Qwen2.5-Coder-1.5B
- Quantization: 4-bit (QLoRA)
- Dataset: Multi-language coding instructions (Python, JS, HTML, C++) formatted into strict agentic trajectories.
- Framework: Unsloth + Hugging Face TRL
π¦ How to Use (Example)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "TheStrongestOfTomorrow/nano-coder-1.5b-agentic"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto"
)
prompt = "<|im_start|>system\nYou are Nano-Coder. You possess ZERO general knowledge. You only understand programming logic.<|im_end|>\n<|im_start|>user\nTask: Write a Python function to reverse a string.<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support