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
Update Model Card with 1-click Colab badge and 4-bit snippets
Browse files
README.md
CHANGED
|
@@ -23,6 +23,7 @@ library_name: transformers
|
|
| 23 |
|
| 24 |
<div align="center">
|
| 25 |
|
|
|
|
| 26 |
[](https://opensource.org/licenses/Apache-2.0)
|
| 27 |
[](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct)
|
| 28 |
[]()
|
|
@@ -35,6 +36,14 @@ library_name: transformers
|
|
| 35 |
|
| 36 |
---
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
## 📌 Overview
|
| 39 |
|
| 40 |
**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.
|
|
@@ -71,24 +80,29 @@ Vibe Coder was trained on a **64,000-record Master Dataset** structured in stric
|
|
| 71 |
|
| 72 |
## 💻 Quick Start & Usage
|
| 73 |
|
| 74 |
-
### 1. Using Transformers (
|
| 75 |
|
| 76 |
```python
|
| 77 |
import torch
|
| 78 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 79 |
|
| 80 |
model_id = "shawaz03/vibe-coder-7b-max"
|
| 81 |
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 84 |
model = AutoModelForCausalLM.from_pretrained(
|
| 85 |
model_id,
|
| 86 |
-
|
| 87 |
device_map="auto",
|
| 88 |
trust_remote_code=True
|
| 89 |
)
|
| 90 |
|
| 91 |
-
# System Prompt
|
| 92 |
system_prompt = """You are Vibe Coder, a world-class principal full-stack software engineer and UI/UX designer.
|
| 93 |
Write complete, modern, production-grade code in TypeScript, React, Next.js, and Node.js with ZERO placeholders."""
|
| 94 |
|
|
@@ -103,7 +117,7 @@ inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
|
| 103 |
outputs = model.generate(
|
| 104 |
**inputs,
|
| 105 |
max_new_tokens=2048,
|
| 106 |
-
temperature=0.2,
|
| 107 |
top_p=0.95,
|
| 108 |
repetition_penalty=1.05,
|
| 109 |
do_sample=True,
|
|
|
|
| 23 |
|
| 24 |
<div align="center">
|
| 25 |
|
| 26 |
+
[](https://colab.research.google.com/github/shawaz03/LLM/blob/main/vibe_coder_quickstart.ipynb)
|
| 27 |
[](https://opensource.org/licenses/Apache-2.0)
|
| 28 |
[](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct)
|
| 29 |
[]()
|
|
|
|
| 36 |
|
| 37 |
---
|
| 38 |
|
| 39 |
+
## ⚡ Quickstart on Google Colab (1-Click Run)
|
| 40 |
+
|
| 41 |
+
Run Vibe Coder on a **Free Google Colab T4 GPU** with zero memory warnings:
|
| 42 |
+
|
| 43 |
+
👉 [](https://colab.research.google.com/github/shawaz03/LLM/blob/main/vibe_coder_quickstart.ipynb)
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
## 📌 Overview
|
| 48 |
|
| 49 |
**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.
|
|
|
|
| 80 |
|
| 81 |
## 💻 Quick Start & Usage
|
| 82 |
|
| 83 |
+
### 1. Using Transformers in 4-bit (Google Colab / Low-VRAM GPUs)
|
| 84 |
|
| 85 |
```python
|
| 86 |
import torch
|
| 87 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
| 88 |
|
| 89 |
model_id = "shawaz03/vibe-coder-7b-max"
|
| 90 |
|
| 91 |
+
bnb_config = BitsAndBytesConfig(
|
| 92 |
+
load_in_4bit=True,
|
| 93 |
+
bnb_4bit_quant_type="nf4",
|
| 94 |
+
bnb_4bit_use_double_quant=True,
|
| 95 |
+
bnb_4bit_compute_dtype=torch.float16,
|
| 96 |
+
)
|
| 97 |
+
|
| 98 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 99 |
model = AutoModelForCausalLM.from_pretrained(
|
| 100 |
model_id,
|
| 101 |
+
quantization_config=bnb_config,
|
| 102 |
device_map="auto",
|
| 103 |
trust_remote_code=True
|
| 104 |
)
|
| 105 |
|
|
|
|
| 106 |
system_prompt = """You are Vibe Coder, a world-class principal full-stack software engineer and UI/UX designer.
|
| 107 |
Write complete, modern, production-grade code in TypeScript, React, Next.js, and Node.js with ZERO placeholders."""
|
| 108 |
|
|
|
|
| 117 |
outputs = model.generate(
|
| 118 |
**inputs,
|
| 119 |
max_new_tokens=2048,
|
| 120 |
+
temperature=0.2,
|
| 121 |
top_p=0.95,
|
| 122 |
repetition_penalty=1.05,
|
| 123 |
do_sample=True,
|