Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,35 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# AI Developer Dataset
|
| 2 |
|
| 3 |
-
Dataset for fine-tuning an open-weight LLM into a universal AI developer assistant.
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
## Statistics
|
| 6 |
|
| 7 |
- **Total examples**: 68
|
| 8 |
- **Format**: JSONL (conversational)
|
| 9 |
-
- **Schema**: `{"messages":[{role,content}, ...], "metadata":{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
## Categories
|
| 12 |
|
| 13 |
-
| Category |
|
| 14 |
-
|----------|-------|
|
| 15 |
-
| programming | 10 |
|
| 16 |
-
|
|
| 17 |
-
|
|
| 18 |
-
|
|
| 19 |
-
|
|
| 20 |
-
|
|
| 21 |
-
|
|
| 22 |
-
|
|
| 23 |
-
| web_search_docs | 6 |
|
| 24 |
|
| 25 |
## Complexity
|
| 26 |
|
| 27 |
-
| Level | Count |
|
| 28 |
-
|-------|-------|
|
| 29 |
-
|
|
| 30 |
-
|
|
| 31 |
-
|
|
| 32 |
-
|
|
| 33 |
|
| 34 |
## Subcategories
|
| 35 |
|
|
@@ -106,16 +154,72 @@ Every example passes:
|
|
| 106 |
- `assistant` content length 200–25000 chars
|
| 107 |
- `user` content non-empty
|
| 108 |
- JSON-serializable (no encoding issues)
|
| 109 |
-
- Category + subcategory + complexity tagged
|
| 110 |
- Deduplicated by user-content fingerprint (SHA-256, first 16 hex)
|
| 111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
## Usage
|
| 113 |
|
| 114 |
```python
|
| 115 |
from datasets import load_dataset
|
|
|
|
| 116 |
ds = load_dataset('VIRUS374/ai-developer-dataset')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
```
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
## License
|
| 120 |
|
| 121 |
-
MIT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ru
|
| 4 |
+
- en
|
| 5 |
+
license: mit
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
- conversational
|
| 9 |
+
tags:
|
| 10 |
+
- code
|
| 11 |
+
- programming
|
| 12 |
+
- ai-developer
|
| 13 |
+
- fine-tuning
|
| 14 |
+
- instruction-tuning
|
| 15 |
+
- coding
|
| 16 |
+
- web-development
|
| 17 |
+
- debugging
|
| 18 |
+
- llm
|
| 19 |
+
size_categories:
|
| 20 |
+
- n<1K
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
# AI Developer Dataset
|
| 24 |
|
| 25 |
+
Dataset for fine-tuning an open-weight LLM into a **universal AI developer assistant**.
|
| 26 |
+
|
| 27 |
+
The model trained on this dataset should be especially good at:
|
| 28 |
+
**PROGRAMMING + WEB DEVELOPMENT + UI/UX + ANIMATIONS + BOTS + SCRIPTS + AUTOMATION + BACKEND + API + DATABASES + DEBUGGING + LINUX + DEPLOYMENT + AI DEVELOPMENT**.
|
| 29 |
|
| 30 |
## Statistics
|
| 31 |
|
| 32 |
- **Total examples**: 68
|
| 33 |
- **Format**: JSONL (conversational)
|
| 34 |
+
- **Schema**: `{"messages":[{"role":"system|user|assistant","content":"..."}, ...], "metadata":{"category","subcategory","complexity","source"}}`
|
| 35 |
+
- **Splits**: train / validation / test
|
| 36 |
+
|
| 37 |
+
## Schema
|
| 38 |
+
|
| 39 |
+
Each line is a single JSON object:
|
| 40 |
+
|
| 41 |
+
```json
|
| 42 |
+
{
|
| 43 |
+
"messages": [
|
| 44 |
+
{"role": "system", "content": "Category: programming\nSubcategory: python_basics\n..."},
|
| 45 |
+
{"role": "user", "content": "Напиши асинхронный HTTP-клиент..."},
|
| 46 |
+
{"role": "assistant", "content": "Используем aiohttp для HTTP-запросов..."}
|
| 47 |
+
],
|
| 48 |
+
"metadata": {
|
| 49 |
+
"category": "programming",
|
| 50 |
+
"subcategory": "python_advanced",
|
| 51 |
+
"complexity": "intermediate",
|
| 52 |
+
"source": "handcrafted"
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
The system message encodes the example's category/subcategory/complexity, so the model learns to condition its style on task type.
|
| 58 |
|
| 59 |
## Categories
|
| 60 |
|
| 61 |
+
| Category | Examples | Target % |
|
| 62 |
+
|----------|----------|----------|
|
| 63 |
+
| programming | 10 | 25% |
|
| 64 |
+
| web_development | 9 | 20% |
|
| 65 |
+
| ui_ux_design | 10 | 15% |
|
| 66 |
+
| debugging | 6 | 10% |
|
| 67 |
+
| bots_automation | 8 | 10% |
|
| 68 |
+
| backend_api_db | 6 | 5% |
|
| 69 |
+
| linux_server_deploy | 6 | 5% |
|
| 70 |
+
| ai_ml | 7 | 5% |
|
| 71 |
+
| web_search_docs | 6 | 5% |
|
| 72 |
|
| 73 |
## Complexity
|
| 74 |
|
| 75 |
+
| Level | Count | Target % |
|
| 76 |
+
|-------|-------|----------|
|
| 77 |
+
| beginner | 12 | 20% |
|
| 78 |
+
| intermediate | 34 | 40% |
|
| 79 |
+
| advanced | 20 | 30% |
|
| 80 |
+
| expert | 2 | 10% |
|
| 81 |
|
| 82 |
## Subcategories
|
| 83 |
|
|
|
|
| 154 |
- `assistant` content length 200–25000 chars
|
| 155 |
- `user` content non-empty
|
| 156 |
- JSON-serializable (no encoding issues)
|
| 157 |
+
- Category + subcategory + complexity tagged in metadata
|
| 158 |
- Deduplicated by user-content fingerprint (SHA-256, first 16 hex)
|
| 159 |
|
| 160 |
+
## Content policy
|
| 161 |
+
|
| 162 |
+
- All code is **real and runnable** (no pseudocode where actual code is requested)
|
| 163 |
+
- No invented libraries or APIs
|
| 164 |
+
- Real library versions (aiogram 3.x, FastAPI 0.110+, Next.js 14+, React 19, SQLAlchemy 2.0+, transformers 4.45+, etc.)
|
| 165 |
+
- Russian explanations, English code/identifiers (consistent with target audience)
|
| 166 |
+
|
| 167 |
## Usage
|
| 168 |
|
| 169 |
```python
|
| 170 |
from datasets import load_dataset
|
| 171 |
+
|
| 172 |
ds = load_dataset('VIRUS374/ai-developer-dataset')
|
| 173 |
+
print(ds)
|
| 174 |
+
# DatasetDict({
|
| 175 |
+
# train: Dataset({{ features: ['messages', 'metadata'], num_rows: 57 }}),
|
| 176 |
+
# validation: Dataset({{ features: ['messages', 'metadata'], num_rows: 9 }}),
|
| 177 |
+
# test: Dataset({{ features: ['messages', 'metadata'], num_rows: 2 }})
|
| 178 |
+
# }})
|
| 179 |
+
|
| 180 |
+
# Iterate
|
| 181 |
+
for example in ds['train']:
|
| 182 |
+
messages = example['messages']
|
| 183 |
+
# ... feed to tokenizer
|
| 184 |
```
|
| 185 |
|
| 186 |
+
For fine-tuning with QLoRA:
|
| 187 |
+
|
| 188 |
+
```python
|
| 189 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, TrainingArguments
|
| 190 |
+
from peft import LoraConfig, get_peft_model
|
| 191 |
+
from trl import SFTTrainer
|
| 192 |
+
|
| 193 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 194 |
+
"meta-llama/Llama-3.1-8B-Instruct",
|
| 195 |
+
load_in_4bit=True,
|
| 196 |
+
device_map="auto",
|
| 197 |
+
)
|
| 198 |
+
|
| 199 |
+
# Convert messages to chat-formatted text using tokenizer.apply_chat_template
|
| 200 |
+
# Then use SFTTrainer with the formatted dataset
|
| 201 |
+
```
|
| 202 |
+
|
| 203 |
+
## Scaling plan
|
| 204 |
+
|
| 205 |
+
- **v0.1 (current)**: 68 handcrafted high-quality examples — this release.
|
| 206 |
+
- **v0.2**: 500 examples — synthetic generation with code validation pipeline.
|
| 207 |
+
- **v0.3**: 2000 examples — RAG-assisted generation for current API/library versions.
|
| 208 |
+
- **v1.0**: 20000 examples — final dataset for production fine-tuning.
|
| 209 |
+
|
| 210 |
+
The generator pipeline is in `/scripts/` of the source repository. Each category lives in its own Python module (`cat_*.py`) and can be extended independently.
|
| 211 |
+
|
| 212 |
## License
|
| 213 |
|
| 214 |
+
MIT — use freely for fine-tuning open-weight models.
|
| 215 |
+
|
| 216 |
+
## Citation
|
| 217 |
+
|
| 218 |
+
```bibtex
|
| 219 |
+
@dataset{{virus374_ai_developer_2024,
|
| 220 |
+
title = {{AI Developer Dataset}},
|
| 221 |
+
author = {{VIRUS374}},
|
| 222 |
+
year = {{2024}},
|
| 223 |
+
url = {{https://huggingface.co/datasets/VIRUS374/ai-developer-dataset}}
|
| 224 |
+
}}
|
| 225 |
+
```
|