Text Generation
Transformers
Safetensors
qwen3_5_text
agentic-coding
reasoning
tool-use
on-device
laptop-scale
sft
reinforcement-learning
conversational
Instructions to use jsbaicenter/JSBAI-Coder-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jsbaicenter/JSBAI-Coder-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jsbaicenter/JSBAI-Coder-4B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jsbaicenter/JSBAI-Coder-4B") model = AutoModelForCausalLM.from_pretrained("jsbaicenter/JSBAI-Coder-4B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jsbaicenter/JSBAI-Coder-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jsbaicenter/JSBAI-Coder-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jsbaicenter/JSBAI-Coder-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jsbaicenter/JSBAI-Coder-4B
- SGLang
How to use jsbaicenter/JSBAI-Coder-4B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "jsbaicenter/JSBAI-Coder-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jsbaicenter/JSBAI-Coder-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "jsbaicenter/JSBAI-Coder-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jsbaicenter/JSBAI-Coder-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jsbaicenter/JSBAI-Coder-4B with Docker Model Runner:
docker model run hf.co/jsbaicenter/JSBAI-Coder-4B
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -16,22 +16,30 @@ datasets:
|
|
| 16 |
- nvidia/Nemotron-Post-Training-Dataset-v2
|
| 17 |
---
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# James Silberrad Brown Center for AI Research
|
| 20 |
|
| 21 |
The **James Silberrad Brown Center for Artificial Intelligence (JSBCAI)** is an interdisciplinary research hub at San Diego State University dedicated to advancing artificial intelligence through foundational research, applied innovation, and student-driven inquiry.
|
| 22 |
|
| 23 |
|
| 24 |
-
#
|
| 25 |
|
| 26 |
**An agentic coding model that runs on your laptop.**
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
## Results
|
| 31 |
|
| 32 |
We reserved 121 real software bugs that the model never saw during training. Before fine-tuning, it solved 10% of them. After training, it solved **83%**, verified by running each project's hidden test suite. The model learned to fix bugs in general, not just the ones it practiced on.
|
| 33 |
|
| 34 |
-
| Benchmark | Qwen3.5-4B (base) | **
|
| 35 |
|---|---|---|---|
|
| 36 |
| **Generalization test** (121 unseen bugs, tests run to verify) | 10.1% | **82.9%** | 38.0%* |
|
| 37 |
| **Live-60** (60 real-world engineering tasks, solved end-to-end in containers) | 15.0% | **21.7%** | 15.0% |
|
|
@@ -73,7 +81,7 @@ Three stages, each with a plain-language summary:
|
|
| 73 |
|
| 74 |
```python
|
| 75 |
from vllm import LLM
|
| 76 |
-
llm = LLM(model="jsbaicenter/
|
| 77 |
```
|
| 78 |
|
| 79 |
Recommended sampling: `temperature 1.0, top_p 0.95`. The model uses the Qwen3.5 chat template with interleaved thinking (the `qwen3` reasoning parser in vLLM) and `qwen3_coder` tool-call format.
|
|
@@ -102,7 +110,7 @@ Apache-2.0, matching the base model.
|
|
| 102 |
|
| 103 |
```bibtex
|
| 104 |
@misc{jsbai_coder_4b,
|
| 105 |
-
title={
|
| 106 |
author={James Silberrad Brown Center for AI},
|
| 107 |
year={2026},
|
| 108 |
publisher={HuggingFace}
|
|
|
|
| 16 |
- nvidia/Nemotron-Post-Training-Dataset-v2
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# ⚠️ This model has moved
|
| 20 |
+
|
| 21 |
+
**JSBAI-Coder-4B has been renamed to [Aztech-4B-Coder](https://huggingface.co/jsbaicenter/Aztech-4B-Coder).**
|
| 22 |
+
|
| 23 |
+
Please use the new repository for downloads and citations. This repo remains for continuity.
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
# James Silberrad Brown Center for AI Research
|
| 28 |
|
| 29 |
The **James Silberrad Brown Center for Artificial Intelligence (JSBCAI)** is an interdisciplinary research hub at San Diego State University dedicated to advancing artificial intelligence through foundational research, applied innovation, and student-driven inquiry.
|
| 30 |
|
| 31 |
|
| 32 |
+
# Aztech-4B-Coder
|
| 33 |
|
| 34 |
**An agentic coding model that runs on your laptop.**
|
| 35 |
|
| 36 |
+
Aztech-4B-Coder is a 4B-parameter model, fine-tuned from Qwen3.5-4B, that investigates bugs, edits files, runs commands, and verifies its own fixes in real software repositories. Agentic coding at this level has required 27B+ models. This one fits on a consumer GPU.
|
| 37 |
|
| 38 |
## Results
|
| 39 |
|
| 40 |
We reserved 121 real software bugs that the model never saw during training. Before fine-tuning, it solved 10% of them. After training, it solved **83%**, verified by running each project's hidden test suite. The model learned to fix bugs in general, not just the ones it practiced on.
|
| 41 |
|
| 42 |
+
| Benchmark | Qwen3.5-4B (base) | **Aztech-4B-Coder** | Aztech-4B-Coder-NVFP4 |
|
| 43 |
|---|---|---|---|
|
| 44 |
| **Generalization test** (121 unseen bugs, tests run to verify) | 10.1% | **82.9%** | 38.0%* |
|
| 45 |
| **Live-60** (60 real-world engineering tasks, solved end-to-end in containers) | 15.0% | **21.7%** | 15.0% |
|
|
|
|
| 81 |
|
| 82 |
```python
|
| 83 |
from vllm import LLM
|
| 84 |
+
llm = LLM(model="jsbaicenter/Aztech-4B-Coder", max_model_len=131072)
|
| 85 |
```
|
| 86 |
|
| 87 |
Recommended sampling: `temperature 1.0, top_p 0.95`. The model uses the Qwen3.5 chat template with interleaved thinking (the `qwen3` reasoning parser in vLLM) and `qwen3_coder` tool-call format.
|
|
|
|
| 110 |
|
| 111 |
```bibtex
|
| 112 |
@misc{jsbai_coder_4b,
|
| 113 |
+
title={Aztech-4B-Coder: Agentic Coding at Laptop Scale via Teacher-Seeded RL},
|
| 114 |
author={James Silberrad Brown Center for AI},
|
| 115 |
year={2026},
|
| 116 |
publisher={HuggingFace}
|