Text Generation
Transformers
Safetensors
English
qwen2
code
code-generation
full-stack
react
nextjs
typescript
tailwindcss
prisma
zustand
qwen2.5-coder
vibe-coding
conversational
text-generation-inference
Instructions to use shawaz03/vibe-coder-7b-max with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shawaz03/vibe-coder-7b-max with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shawaz03/vibe-coder-7b-max") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("shawaz03/vibe-coder-7b-max") model = AutoModelForCausalLM.from_pretrained("shawaz03/vibe-coder-7b-max", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use shawaz03/vibe-coder-7b-max with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shawaz03/vibe-coder-7b-max" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shawaz03/vibe-coder-7b-max", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shawaz03/vibe-coder-7b-max
- SGLang
How to use shawaz03/vibe-coder-7b-max 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 "shawaz03/vibe-coder-7b-max" \ --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": "shawaz03/vibe-coder-7b-max", "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 "shawaz03/vibe-coder-7b-max" \ --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": "shawaz03/vibe-coder-7b-max", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shawaz03/vibe-coder-7b-max with Docker Model Runner:
docker model run hf.co/shawaz03/vibe-coder-7b-max
File size: 5,465 Bytes
746de9a b7070bf 746de9a b7070bf 746de9a b7070bf 746de9a b7070bf 746de9a b7070bf 746de9a b7070bf 746de9a b7070bf 746de9a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | ---
language:
- en
license: apache-2.0
tags:
- code
- code-generation
- full-stack
- react
- nextjs
- typescript
- tailwindcss
- prisma
- zustand
- qwen2.5-coder
- vibe-coding
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
pipeline_tag: text-generation
library_name: transformers
---
# 🚀 VIBE CODER v2.0 MAX (7B)
<div align="center">
[](https://colab.research.google.com/github/shawaz03/LLM/blob/main/vibe_coder_quickstart.ipynb)
[](https://opensource.org/licenses/Apache-2.0)
[](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct)
[]()
[]()
**The Autonomous Full-Stack AI Software Engineer & Modern UI/UX Designer.**
*Zero Placeholders. Modern Anti-AI Aesthetics. Production-Grade TypeScript & Next.js Architecture.*
</div>
---
## ⚡ Quickstart on Google Colab (1-Click Run)
Run Vibe Coder on a **Free Google Colab T4 GPU** with zero memory warnings:
👉 [](https://colab.research.google.com/github/shawaz03/LLM/blob/main/vibe_coder_quickstart.ipynb)
---
## 📌 Overview
**Vibe Coder v2.0 MAX** is a specialized, fine-tuned code generation model based on `Qwen2.5-Coder-7B-Instruct`. It is engineered specifically to eliminate common LLM coding pitfalls—such as lazy placeholder comments (`// TODO: implement logic`), broken imports, and outdated visual tropes.
### 🌟 Core Capabilities:
- 🛡️ **Zero Placeholders Guaranteed**: Generates complete, functional components, state hooks, and API routes with zero missing logic.
- 🎨 **Modern Anti-AI Aesthetic Directives**: Built-in design system rules that enforce dark neutral palettes (`bg-neutral-900`, `border-neutral-800`), custom typography, responsive grid layouts, and Lucide React icons.
- ⚡ **Full-Stack Ecosystem Mastery**: Native expertise in Next.js 15 App Router, React 19, TypeScript, Tailwind CSS, Zustand, Prisma ORM, Zod validation, and WebSockets.
- 🛠️ **Self-Healing & Debugging**: Diagnoses runtime hydration errors and type mismatches with exact root-cause explanations and drop-in code patches.
---
## 📊 Dataset & Training Architecture
Vibe Coder was trained on a **64,000-record Master Dataset** structured in strict ChatML format across **7 specialized pipelines**:
| Pipeline | Dataset Focus | Size |
| :--- | :--- | :--- |
| **1. Open-Source Repositories** | Production Next.js server actions, Prisma schemas, Zustand stores | 25,000 records |
| **2. Handcrafted Vibe Templates** | Complete Bento showcases, pricing matrices, checkout wizards, audio players | 12,000 records |
| **3. Multi-Turn Refinement** | Multi-turn developer dialogues simulating feature additions and refactoring | 10,000 records |
| **4. Self-Healing & Debugging** | Runtime errors, TypeScript compilation bugs, hydration fixes | 5,000 records |
| **5. Full-Stack Architectures** | WebSocket chat rooms, Stripe webhook signature verifiers, Redis caching | 12,000 records |
### ⚡ Hyperparameters:
- **Base Model**: `Qwen/Qwen2.5-Coder-7B-Instruct`
- **Method**: 4-bit NF4 QLoRA $\rightarrow$ Full 16-bit FP16 Safetensors Merger
- **LoRA Config**: Rank $r = 64$, $\alpha = 128$, `rsLoRA = True` (161.4M trainable parameters)
- **Attention Kernel**: PyTorch SDPA (Scaled Dot-Product Flash Attention)
- **Final Validation Loss**: **`0.035 – 0.045`**
- **Token Accuracy**: **`98.5%`**
---
## 💻 Quick Start & Usage
### 1. Using Transformers in 4-bit (Google Colab / Low-VRAM GPUs)
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
model_id = "shawaz03/vibe-coder-7b-max"
bnb_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.float16,
)
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
quantization_config=bnb_config,
device_map="auto",
trust_remote_code=True
)
system_prompt = """You are Vibe Coder, a world-class principal full-stack software engineer and UI/UX designer.
Write complete, modern, production-grade code in TypeScript, React, Next.js, and Node.js with ZERO placeholders."""
messages = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": "Build an interactive pricing matrix in React with Tailwind CSS, supporting monthly/annual toggle and feature checkmarks."}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens=2048,
temperature=0.2,
top_p=0.95,
repetition_penalty=1.05,
do_sample=True,
)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
```
---
### 2. High-Speed Production Serving (vLLM)
```bash
vllm serve shawaz03/vibe-coder-7b-max --port 8000 --dtype float16
```
---
## 🛡️ License
This project is open-source and licensed under the **Apache 2.0 License**.
|