Views
No views yet
Expert at coding, step-by-step reasoning, data visualization, tool calling, and research paper analysis
| Capability | How it was trained | Dataset |
|---|---|---|
| Coding (any language) | SFT on code instructions + competitions | CodeFeedback + Magicoder + OpenCodeReasoning |
| Agentic Reasoning | Chain-of-thought with <think> blocks | nvidia/OpenCodeReasoning (R1-style traces) |
| Data Visualization | Chart/graph code generation | TIGER-Lab/VisCode-200K |
| Tool Calling | Function calling with JSON schemas | glaive-function-calling-v2 |
| Anti-hallucination | Step-by-step verification, assistant-only loss masking | All datasets with system prompt enforcement |
| Parameter | Value |
|---|---|
| Learning rate | 2e-4 (10× base for LoRA) |
| LR scheduler | Cosine with 5% warmup |
| Epochs | 2 |
| Batch size | 16 (2 × 8 grad accum) |
| Max sequence length | 4096 |
| LoRA rank | 64 |
| LoRA alpha | 16 |
| Weight decay | 0.01 |
| Optimizer | AdamW |
| Precision | BF16 + TF32 |
| Dataset | Samples | Purpose |
|---|---|---|
| TIGER-Lab/VisCode-200K | 12,000 | Visualization & chart generation |
| m-a-p/CodeFeedback-Filtered-Instruction | 10,000 | Code instruction following |
| nvidia/OpenCodeReasoning | 10,000 | Code reasoning with <think> traces |
| glaiveai/glaive-function-calling-v2 | 8,000 | Function/tool calling |
| ise-uiuc/Magicoder-OSS-Instruct-75K | 10,000 | Code generation |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "sukritvemula/Qwen3-8B-CodeAgent"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
7
8messages = [
9 {"role": "system", "content": "You are an expert coding assistant."},
10 {"role": "user", "content": "Write a Python function to visualize a binary tree using matplotlib."}
11]
12
13text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
14inputs = tokenizer(text, return_tensors="pt").to(model.device)
15outputs = model.generate(**inputs, max_new_tokens=2048, temperature=0.6, top_p=0.95, top_k=20)
16print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))| Hardware | Speed (tok/s) | Notes |
|---|---|---|
| A100 80GB (BF16) | ~100-150 | Full precision |
| A10G 24GB (BF16) | ~40-50 | Meets 40 tok/s target |
| RTX 4090 (BF16) | ~60-80 | Consumer GPU |
| Any GPU (AWQ INT4) | 2× above | Minimal quality loss |
1# vLLM
2vllm serve sukritvemula/Qwen3-8B-CodeAgent --enable-reasoning --reasoning-parser deepseek_r1
3
4# SGLang
5python -m sglang.launch_server --model-path sukritvemula/Qwen3-8B-CodeAgent --reasoning-parser qwen3train_coding_agent.py in this repo for the full training pipeline.