Text Generation
Transformers
Safetensors
qwen3_5_text
w4a4
nvfp4
agentic-coding
reasoning
tool-use
on-device
laptop-scale
sft
reinforcement-learning
conversational
modelopt
Run this model with HF Jobs
Run jsbaicenter/JSBAI-Coder-4B-NVFP4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/jsbaicenter/JSBAI-Coder-4B-NVFP4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/jsbaicenter/JSBAI-Coder-4B-NVFP4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/jsbaicenter/JSBAI-Coder-4B-NVFP4. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use jsbaicenter/JSBAI-Coder-4B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jsbaicenter/JSBAI-Coder-4B-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jsbaicenter/JSBAI-Coder-4B-NVFP4") 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-NVFP4") model = AutoModelForCausalLM.from_pretrained("jsbaicenter/JSBAI-Coder-4B-NVFP4", 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-NVFP4 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-NVFP4" # 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-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jsbaicenter/JSBAI-Coder-4B-NVFP4
- SGLang
How to use jsbaicenter/JSBAI-Coder-4B-NVFP4 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-NVFP4" \ --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-NVFP4", "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-NVFP4" \ --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-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jsbaicenter/JSBAI-Coder-4B-NVFP4 with Docker Model Runner:
docker model run hf.co/jsbaicenter/JSBAI-Coder-4B-NVFP4
Upload README.md with huggingface_hub
Browse files19 unmodified lines202122232425264 unmodified lines313233343536373839404142434445464736 unmodified lines8485868788899022 unmodified lines11311411511611711811919 unmodified lines# ⚠️ This model has moved**JSBAI-Coder-4B-NVFP4 has been renamed to [Aztech-4B-Coder-NVFP4](https://huggingface.co/jsbaicenter/Aztech-4B-Coder-NVFP4).**Please use the new repository for downloads and citations. This repo remains for continuity.4 unmodified linesThe **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.# Aztech-4B-Coder-NVFP4 (W4A4)**An agentic coding model that runs on your laptop.** This variant uses **NVFP4 W4A4** quantization: both weights and activations at 4-bit, calibrated on our training distribution. A W4A16 variant (weights-only quantization, higher quality) is in development.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.## ResultsWe 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.| Benchmark | Qwen3.5-4B (base) | Aztech-4B-Coder (BF16) | **Aztech-4B-Coder-NVFP4** ||---|---|---|---|| **Generalization test** (121 unseen bugs, tests run to verify) | 10.1% | 82.9% | **38.0%*** || **Live-60** (60 real-world engineering tasks, solved end-to-end in containers) | 15.0% | 21.7% | **15.0%** |36 unmodified lines```pythonfrom vllm import LLMllm = LLM(model="jsbaicenter/Aztech-4B-Coder-NVFP4", quantization="modelopt", max_model_len=131072)```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.22 unmodified lines```bibtex@misc{jsbai_coder_4b,title={Aztech-4B-Coder: Agentic Coding at Laptop Scale via Teacher-Seeded RL},author={James Silberrad Brown Center for AI},year={2026},publisher={HuggingFace}19 unmodified lines202122232425264 unmodified lines313233343536373839404142434445464736 unmodified lines8485868788899022 unmodified lines11311411511611711811919 unmodified lines# ⚠️ This model has moved**JSBAI-Coder-4B-NVFP4 has been renamed to [Aztec-Coder-4B-NVFP4](https://huggingface.co/jsbaicenter/Aztec-Coder-4B-NVFP4).**Please use the new repository for downloads and citations. This repo remains for continuity.4 unmodified linesThe **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.# Aztec-Coder-4B-NVFP4 (W4A4)**An agentic coding model that runs on your laptop.** This variant uses **NVFP4 W4A4** quantization: both weights and activations at 4-bit, calibrated on our training distribution. A W4A16 variant (weights-only quantization, higher quality) is in development.Aztec-Coder-4B 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.## ResultsWe 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.| Benchmark | Qwen3.5-4B (base) | Aztec-Coder-4B (BF16) | **Aztec-Coder-4B-NVFP4** ||---|---|---|---|| **Generalization test** (121 unseen bugs, tests run to verify) | 10.1% | 82.9% | **38.0%*** || **Live-60** (60 real-world engineering tasks, solved end-to-end in containers) | 15.0% | 21.7% | **15.0%** |36 unmodified lines```pythonfrom vllm import LLMllm = LLM(model="jsbaicenter/Aztec-Coder-4B-NVFP4", quantization="modelopt", max_model_len=131072)```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.22 unmodified lines```bibtex@misc{jsbai_coder_4b,title={Aztec-Coder-4B: Agentic Coding at Laptop Scale via Teacher-Seeded RL},author={James Silberrad Brown Center for AI},year={2026},publisher={HuggingFace}
README.md+6-6