Text Generation
Transformers
English
code
coding-assistant
arc
arc-brains
hackathon
ppt
qwen2
lora
sft
Instructions to use ibrahim2806/Arc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ibrahim2806/Arc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ibrahim2806/Arc")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ibrahim2806/Arc", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ibrahim2806/Arc with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ibrahim2806/Arc" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ibrahim2806/Arc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ibrahim2806/Arc
- SGLang
How to use ibrahim2806/Arc 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 "ibrahim2806/Arc" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ibrahim2806/Arc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "ibrahim2806/Arc" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ibrahim2806/Arc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ibrahim2806/Arc with Docker Model Runner:
docker model run hf.co/ibrahim2806/Arc
Upload README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- code
|
| 6 |
+
- coding-assistant
|
| 7 |
+
- arc
|
| 8 |
+
- arc-brains
|
| 9 |
+
- hackathon
|
| 10 |
+
- ppt
|
| 11 |
+
- qwen2
|
| 12 |
+
- lora
|
| 13 |
+
- sft
|
| 14 |
+
language:
|
| 15 |
+
- en
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
library_name: transformers
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# π Arc β Friendly Coding Expert
|
| 21 |
+
|
| 22 |
+
> **Created by Arc Brains: Ibrahim Shaikh, Harsh Goswami, Manas Tamore, Ayush Thakur**
|
| 23 |
+
|
| 24 |
+
Arc is a powerful coding assistant fine-tuned from **Qwen2.5-Coder-7B-Instruct** on **253K+ high-quality coding examples**. It delivers **complete, production-ready solutions** β never patches.
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## π― What Arc Excels At
|
| 29 |
+
|
| 30 |
+
| Skill | Description |
|
| 31 |
+
|-------|-------------|
|
| 32 |
+
| π» **Complete Code** | Full runnable solutions with imports, error handling, docs |
|
| 33 |
+
| ποΈ **Hackathon Projects** | Entire apps from scratch β Flask, React, CLI tools |
|
| 34 |
+
| π **Presentations** | Generate PowerPoint slides programmatically |
|
| 35 |
+
| π **Debugging** | Root-cause analysis with full fixes, not band-aids |
|
| 36 |
+
| π **Multi-language** | Python, JavaScript, C++, Java, Ruby, Go, Rust, and more |
|
| 37 |
+
| π **Architecture** | Full project structure with all files |
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## π Quick Start
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 45 |
+
from peft import PeftModel
|
| 46 |
+
import torch
|
| 47 |
+
|
| 48 |
+
# Load
|
| 49 |
+
base = AutoModelForCausalLM.from_pretrained(
|
| 50 |
+
"Qwen/Qwen2.5-Coder-7B-Instruct",
|
| 51 |
+
torch_dtype=torch.bfloat16,
|
| 52 |
+
device_map="auto"
|
| 53 |
+
)
|
| 54 |
+
model = PeftModel.from_pretrained(base, "ibrahim2806/Arc")
|
| 55 |
+
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct")
|
| 56 |
+
|
| 57 |
+
# Chat
|
| 58 |
+
messages = [
|
| 59 |
+
{"role": "system", "content": "You are Arc, a friendly coding expert by Arc Brains."},
|
| 60 |
+
{"role": "user", "content": "Build a full Flask REST API for a todo app with CRUD, auth, and SQLite"}
|
| 61 |
+
]
|
| 62 |
+
|
| 63 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 64 |
+
inputs = tokenizer(text, return_tensors="pt").to(model.device)
|
| 65 |
+
output = model.generate(**inputs, max_new_tokens=4096, temperature=0.7, do_sample=True)
|
| 66 |
+
print(tokenizer.decode(output[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
---
|
| 70 |
+
|
| 71 |
+
## π Training Details
|
| 72 |
+
|
| 73 |
+
| Parameter | Value |
|
| 74 |
+
|-----------|-------|
|
| 75 |
+
| **Base Model** | Qwen/Qwen2.5-Coder-7B-Instruct |
|
| 76 |
+
| **Method** | QLoRA (4-bit NF4) |
|
| 77 |
+
| **LoRA Rank** | 64 |
|
| 78 |
+
| **LoRA Alpha** | 128 |
|
| 79 |
+
| **Target Modules** | q/k/v/o_proj, gate/up/down_proj |
|
| 80 |
+
| **Learning Rate** | 2e-4 (cosine decay) |
|
| 81 |
+
| **Epochs** | 3 |
|
| 82 |
+
| **Effective Batch Size** | 32 |
|
| 83 |
+
| **Max Sequence Length** | 4096 |
|
| 84 |
+
| **Total Training Samples** | ~253,000 |
|
| 85 |
+
| **Optimizer** | AdamW |
|
| 86 |
+
| **Precision** | BF16 |
|
| 87 |
+
|
| 88 |
+
---
|
| 89 |
+
|
| 90 |
+
## π Training Datasets
|
| 91 |
+
|
| 92 |
+
| Dataset | Samples | What It Teaches |
|
| 93 |
+
|---------|---------|-----------------|
|
| 94 |
+
| [m-a-p/Code-Feedback](https://huggingface.co/datasets/m-a-p/Code-Feedback) | 68K | Multi-turn debugging, project building, iterative refinement |
|
| 95 |
+
| [Magicoder-Evol-Instruct-110K](https://huggingface.co/datasets/ise-uiuc/Magicoder-Evol-Instruct-110K) | 110K | Complex algorithmic & system design problems |
|
| 96 |
+
| [Magicoder-OSS-Instruct-75K](https://huggingface.co/datasets/ise-uiuc/Magicoder-OSS-Instruct-75K) | 75K | Real-world code from open-source projects |
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## ποΈ Arc Brains Team
|
| 101 |
+
|
| 102 |
+
Built with β€οΈ by **Ibrahim Shaikh**, **Harsh Goswami**, **Manas Tamore**, and **Ayush Thakur**.
|