Datasets:
messages listlengths 3 3 | metadata dict |
|---|---|
[
{
"role": "system",
"content": "Category: programming\nSubcategory: python_basics\nComplexity: beginner\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ±ΡΡΡΠ½ΠΈ, ΡΡΠΎ ΡΠ°ΠΊΠΎΠ΅ list comprehension Π² Python ΠΈ ΠΏΠΎΠΊΠ°ΠΆΠΈ ΠΏΡΠΈΠΌΠ΅ΡΡ."
},
{
"role": "assistant",
"content": "List comprehension β ... | {
"category": "programming",
"subcategory": "python_basics",
"complexity": "beginner",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: python_basics\nComplexity: beginner\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΊ ΡΠ°Π±ΠΎΡΠ°ΡΡ *args ΠΈ **kwargs Π² Python?"
},
{
"role": "assistant",
"content": "`*args` ΠΈ `**kwargs` ΠΏΠΎΠ·Π²ΠΎΠ»ΡΡΡ ΡΡΠ½ΠΊΡΠΈΠΈ ΠΏΡΠΈΠ½ΠΈΠΌΠ°... | {
"category": "programming",
"subcategory": "python_basics",
"complexity": "beginner",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: python_advanced\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ Π°ΡΠΈΠ½Ρ
ΡΠΎΠ½Π½ΡΠΉ HTTP-ΠΊΠ»ΠΈΠ΅Π½Ρ Π½Π° aiohttp Ρ ΠΎΠ³ΡΠ°Π½ΠΈΡΠ΅Π½ΠΈΠ΅ΠΌ ΠΏΠ°ΡΠ°Π»Π»Π΅Π»ΠΈΠ·ΠΌΠ° ΠΈ retry-Π»ΠΎΠ³ΠΈΠΊΠΎΠΉ."
},
{
"role": "assistant",
"cont... | {
"category": "programming",
"subcategory": "python_advanced",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: python_advanced\nComplexity: advanced\nSource: handcrafted"
},
{
"role": "user",
"content": "Π Π΅Π°Π»ΠΈΠ·ΡΠΉ LRU-ΠΊΡΡ Π½Π° Python Ρ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΊΠΎΠΉ TTL Π±Π΅Π· ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ functools.lru_cache."
},
{
"role": "assistant",
"content": "Π ... | {
"category": "programming",
"subcategory": "python_advanced",
"complexity": "advanced",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: typescript\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ ΡΠΈΠΏΠΎΠ±Π΅Π·ΠΎΠΏΠ°ΡΠ½ΡΠΉ fetch-ΠΎΠ±ΡΡΡΠΊΡ Π½Π° TypeScript, ΠΊΠΎΡΠΎΡΠ°Ρ Π²Π°Π»ΠΈΠ΄ΠΈΡΡΠ΅Ρ ΠΎΡΠ²Π΅Ρ ΡΠ΅ΡΠ΅Π· Zod ΠΈ Π±ΡΠΎΡΠ°Π΅Ρ ΡΠΈΠΏΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½ΡΠ΅ ΠΎΡΠΈΠ±ΠΊΠΈ."
},
{
"ro... | {
"category": "programming",
"subcategory": "typescript",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: bash\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ bash-ΡΠΊΡΠΈΠΏΡ, ΠΊΠΎΡΠΎΡΡΠΉ ΠΌΠΎΠ½ΠΈΡΠΎΡΠΈΡ Π»ΠΎΠ³-ΡΠ°ΠΉΠ» ΠΈ ΡΠ»ΡΡ ΡΠ²Π΅Π΄ΠΎΠΌΠ»Π΅Π½ΠΈΠ΅ Π² webhook ΠΏΡΠΈ ΠΏΠΎΡΠ²Π»Π΅Π½ΠΈΠΈ ERROR."
},
{
"role": "assistant",
"conte... | {
"category": "programming",
"subcategory": "bash",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: sql\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΡΡΡ ΡΠ°Π±Π»ΠΈΡΡ users(id, name, created_at) ΠΈ orders(id, user_id, amount, created_at). ΠΠ°ΠΉΠ΄ΠΈ ΡΠΎΠΏ-10 ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»Π΅ΠΉ ΠΏΠΎ ΡΡΠΌΠΌΠ΅ Π·Π°ΠΊΠ°Π·ΠΎΠ² Π·Π° ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΠ΅ 30... | {
"category": "programming",
"subcategory": "sql",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: go\nComplexity: advanced\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ Π½Π° Go HTTP-ΡΠ΅ΡΠ²Π΅Ρ Ρ graceful shutdown, health-check ΠΈ middleware-Π»ΠΎΠ³ΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ΠΌ."
},
{
"role": "assistant",
"content": "ΠΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΠΌ ... | {
"category": "programming",
"subcategory": "go",
"complexity": "advanced",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: code_review\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "Π‘Π΄Π΅Π»Π°ΠΉ code review ΡΡΠΎΠ³ΠΎ Python-ΠΊΠΎΠ΄Π°:\n\n```python\ndef get_user_data(id, db):\n cur = db.cursor()\n cur.execute(f'SELECT * FROM ... | {
"category": "programming",
"subcategory": "code_review",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: programming\nSubcategory: refactoring\nComplexity: advanced\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΡΡΠ΅ΡΠ°ΠΊΡΠΎΡΠΈ ΡΡΠΎΡ ΠΊΠΎΠ΄ ΡΠ°ΠΊ, ΡΡΠΎΠ±Ρ ΠΎΠ½ Π±ΡΠ» ΡΠ΅ΡΡΠΈΡΡΠ΅ΠΌΡΠΌ ΠΈ Π½Π΅ Π·Π°Π²ΠΈΡΠ΅Π» ΠΎΡ Π³Π»ΠΎΠ±Π°Π»ΡΠ½ΠΎΠ³ΠΎ ΡΠΎΡΡΠΎΡΠ½ΠΈΡ:\n\n```python\nimport requests\nimport os\n\nAPI_U... | {
"category": "programming",
"subcategory": "refactoring",
"complexity": "advanced",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: react\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ ΠΊΠ°ΡΡΠΎΠΌΠ½ΡΠΉ Ρ
ΡΠΊ useDebounce Π½Π° TypeScript ΠΈ ΠΏΠΎΠΊΠ°ΠΆΠΈ ΠΏΡΠΈΠΌΠ΅Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ Π² ΠΏΠΎΠΈΡΠΊΠΎΠ²ΠΎΠΉ ΡΡΡΠΎΠΊΠ΅ Ρ Π·Π°ΠΏΡΠΎΡΠΎΠΌ ΠΊ API."
},
{
"role": "... | {
"category": "web_development",
"subcategory": "react",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: nextjs\nComplexity: advanced\nSource: handcrafted"
},
{
"role": "user",
"content": "Π‘ΠΎΠ·Π΄Π°ΠΉ Next.js 14 (App Router) ΡΡΡΠ°Π½ΠΈΡΡ Ρ server component Π΄Π»Ρ ΡΠΏΠΈΡΠΊΠ° ΠΏΠΎΡΡΠΎΠ² ΠΈ client component Π΄Π»Ρ Π»Π°ΠΉΠΊΠΎΠ² Ρ optimistic update."
},
{
... | {
"category": "web_development",
"subcategory": "nextjs",
"complexity": "advanced",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: tailwind\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ Π½Π° Tailwind CSS ΠΊΡΠ°ΡΠΈΠ²ΡΡ ΠΊΠ°ΡΡΠΎΡΠΊΡ ΡΠΎΠ²Π°ΡΠ° Π΄Π»Ρ e-commerce Ρ hover-ΡΡΡΠ΅ΠΊΡΠΎΠΌ, badge \"-20%\" ΠΈ ΠΊΠ½ΠΎΠΏΠΊΠΎΠΉ \"Π ΠΊΠΎΡΠ·ΠΈΠ½Ρ\". Responsive."
... | {
"category": "web_development",
"subcategory": "tailwind",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: dashboard\nComplexity: advanced\nSource: handcrafted"
},
{
"role": "user",
"content": "Π‘ΠΎΠ·Π΄Π°ΠΉ React + TypeScript dashboard Π΄Π»Ρ ΡΠΏΡΠ°Π²Π»Π΅Π½ΠΈΡ ΡΠ΅ΡΠ²Π΅ΡΠ°ΠΌΠΈ: ΡΠΏΠΈΡΠΎΠΊ ΡΠ΅ΡΠ²Π΅ΡΠΎΠ² Ρ CPU/RAM/disk, ΡΠΈΠ»ΡΡΡΡ ΠΏΠΎ ΡΡΠ°ΡΡΡΡ, ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ Π² ΡΠ΅Π°Π»ΡΠ½ΠΎΠΌ Π²... | {
"category": "web_development",
"subcategory": "dashboard",
"complexity": "advanced",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: websockets\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ WebSocket-ΡΠ΅ΡΠ²Π΅Ρ Π½Π° Node.js + ws, ΠΊΠΎΡΠΎΡΡΠΉ Π΄Π΅ΡΠΆΠΈΡ ΠΊΠΎΠΌΠ½Π°ΡΡ ΠΈ Π±ΡΠΎΠ΄ΠΊΠ°ΡΡΠΈΡ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ ΡΠΎΠ»ΡΠΊΠΎ Π²Π½ΡΡΡΠΈ ΠΊΠΎΠΌΠ½Π°ΡΡ."
},
{
"role": ... | {
"category": "web_development",
"subcategory": "websockets",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: api_integration\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ React-ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ Π΄Π»Ρ Π·Π°Π³ΡΡΠ·ΠΊΠΈ ΡΠ°ΠΉΠ»Π° Π½Π° ΡΠ΅ΡΠ²Π΅Ρ Ρ ΠΏΡΠΎΠ³ΡΠ΅ΡΡ-Π±Π°ΡΠΎΠΌ, ΠΎΡΠΌΠ΅Π½ΠΎΠΉ ΠΈ ΠΎΠ±ΡΠ°Π±ΠΎΡΠΊΠΎΠΉ ΠΎΡΠΈΠ±ΠΎΠΊ."
},
{
"role": "assis... | {
"category": "web_development",
"subcategory": "api_integration",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: landing_page\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "Π‘Π΄Π΅Π»Π°ΠΉ ΠΎΠ΄Π½ΠΎΡΡΡΠ°Π½ΠΈΡΠ½ΡΠΉ landing Π΄Π»Ρ SaaS-ΠΏΡΠΎΠ΄ΡΠΊΡΠ° \"AI Code Reviewer\" Ρ hero, ΡΠΈΡΠ°ΠΌΠΈ, ΡΠ΅Π½Π°ΠΌΠΈ ΠΈ CTA. Tailwind, responsive, ΡΡΠΌΠ½Π°Ρ ΡΠ΅... | {
"category": "web_development",
"subcategory": "landing_page",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: forms_auth\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ°ΠΏΠΈΡΠΈ Π½Π° React + TypeScript ΡΠΎΡΠΌΡ Π»ΠΎΠ³ΠΈΠ½Π° Ρ Π²Π°Π»ΠΈΠ΄Π°ΡΠΈΠ΅ΠΉ ΡΠ΅ΡΠ΅Π· react-hook-form + zod, ΠΏΠΎΠΊΠ°Π·ΠΎΠΌ ΡΠ΅ΡΠ²Π΅ΡΠ½ΡΡ
ΠΎΡΠΈΠ±ΠΎΠΊ ΠΈ disabled-ΡΠΎΡΡΠΎΡΠ½ΠΈΠ΅ΠΌ ΠΊ... | {
"category": "web_development",
"subcategory": "forms_auth",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: web_development\nSubcategory: vite\nComplexity: beginner\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ±ΡΡΡΠ½ΠΈ, ΡΡΠΎ ΡΠ°ΠΊΠΎΠ΅ Vite ΠΈ ΡΠ΅ΠΌ ΠΎΠ½ Π»ΡΡΡΠ΅ webpack. ΠΠΎΠΊΠ°ΠΆΠΈ Π±Π°Π·ΠΎΠ²ΡΡ Π½Π°ΡΡΡΠΎΠΉΠΊΡ React + TypeScript ΠΏΡΠΎΠ΅ΠΊΡΠ°."
},
{
"role": "assistant",
"c... | {
"category": "web_development",
"subcategory": "vite",
"complexity": "beginner",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: debugging\nSubcategory: python_exceptions\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠΎΠΉ ΠΊΠΎΠ΄ ΠΏΠ°Π΄Π°Π΅Ρ Ρ ΠΎΡΠΈΠ±ΠΊΠΎΠΉ:\n\n```\nTraceback (most recent call last):\n File \"app.py\", line 23, in <module>\n user = users[0][... | {
"category": "debugging",
"subcategory": "python_exceptions",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: debugging\nSubcategory: javascript_errors\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "React-ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ ΠΏΠ°Π΄Π°Π΅Ρ:\n\n```\nTypeError: Cannot read properties of undefined (reading 'map')\n at UserList (UserList.tsx:12:23... | {
"category": "debugging",
"subcategory": "javascript_errors",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: debugging\nSubcategory: react_errors\nComplexity: advanced\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠ΅ΡΠΊΠΎΠ½Π΅ΡΠ½ΡΠΉ re-render. Π ΠΊΠΎΠ½ΡΠΎΠ»ΠΈ:\n\n```\nWarning: Maximum update depth exceeded. This can happen when a component calls setState inside com... | {
"category": "debugging",
"subcategory": "react_errors",
"complexity": "advanced",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: debugging\nSubcategory: npm_errors\nComplexity: intermediate\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΡΠΈ `npm install` ΠΏΠΎΠ»ΡΡΠ°Ρ:\n\n```\nnpm error ERESOLVE unable to resolve dependency tree\nnpm error Found: react@18.2.0\nnpm error Could no... | {
"category": "debugging",
"subcategory": "npm_errors",
"complexity": "intermediate",
"source": "handcrafted"
} |
[
{
"role": "system",
"content": "Category: debugging\nSubcategory: http_api_errors\nComplexity: beginner\nSource: handcrafted"
},
{
"role": "user",
"content": "ΠΠΎΠΉ fetch Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΎΡΠΈΠ±ΠΊΡ CORS:\n\n```\nAccess to fetch at 'https://api.example.com/data' from origin 'http://localhost:3000'\nhas been... | {
"category": "debugging",
"subcategory": "http_api_errors",
"complexity": "beginner",
"source": "handcrafted"
} |
AI Developer Dataset
A large-scale instruction-tuning dataset for fine-tuning an open-weight LLM into a universal AI developer assistant.
The model trained on this dataset should be especially good at: PROGRAMMING + WEB DEVELOPMENT + UI/UX + ANIMATIONS + BOTS + SCRIPTS + AUTOMATION + BACKEND + API + DATABASES + DEBUGGING + LINUX + DEPLOYMENT + AI DEVELOPMENT + SECURITY.
π Statistics
- Total examples: 1,124,699
- File size: 2.13 GB
- Format: JSONL (conversational)
- Average assistant length: ~1,222 characters
- Schema:
{"messages":[{"role":"system|user|assistant","content":"..."}, ...], "metadata":{"category","subcategory","complexity","source"}}
π Sources
This dataset is a curated merge of high-quality open-source code instruction datasets from HuggingFace, plus handcrafted examples in Russian covering UI/UX, security, and other specialized topics.
| Source | Examples |
|---|---|
hf:glaiveai/glaive-code-assistant-v2 |
213,670 |
hf:glaiveai/glaive-code-assistant |
135,195 |
hf:mwitiderrick/glaive-code-assistant |
104,336 |
hf:b-mc2/sql-create-context |
78,573 |
hf:TokenBender/code_instructions_122k_alpaca_style |
78,433 |
hf:iamtarun/code_instructions_120k_alpaca |
78,433 |
hf:ajibawa-2023/Code-74k-ShareGPT |
68,790 |
hf:Locutusque/code-feedback-sharegpt |
62,866 |
hf:m-a-p/Code-Feedback |
62,866 |
hf:HuggingFaceH4/Code-Feedback |
61,923 |
hf:WizardLMTeam/WizardLM_evol_instruct_70k |
60,411 |
hf:nickrosh/Evol-Instruct-Code-80k-v1 |
58,265 |
hf:Data-Agora/magpie_code_gpt4o_mini_50000 |
36,818 |
hf:ajibawa-2023/Python-Code-23k-ShareGPT |
17,737 |
hf:HuggingFaceH4/CodeAlpaca_20K |
6,307 |
handcrafted |
76 |
π Categories
| Category | Examples | % |
|---|---|---|
| programming | 1,046,060 | 93.0% |
| backend_api_db | 78,579 | 7.0% |
| ui_ux_design | 10 | 0.0% |
| web_development | 9 | 0.0% |
| bots_automation | 8 | 0.0% |
| security | 8 | 0.0% |
| ai_ml | 7 | 0.0% |
| debugging | 6 | 0.0% |
| linux_server_deploy | 6 | 0.0% |
| web_search_docs | 6 | 0.0% |
π― Complexity Distribution
| Level | Examples | % |
|---|---|---|
| intermediate | 686,519 | 61.0% |
| advanced | 438,166 | 39.0% |
| beginner | 12 | 0.0% |
| expert | 2 | 0.0% |
π Schema
Each line is a single JSON object:
{
"messages": [
{"role": "system", "content": "Category: programming\nSubcategory: code_alpaca\n..."},
{"role": "user", "content": "Write a Python function to..."},
{"role": "assistant", "content": "Here is the implementation..."}
],
"metadata": {
"category": "programming",
"subcategory": "code_alpaca",
"complexity": "intermediate",
"source": "hf:HuggingFaceH4/CodeAlpaca_20K"
}
}
π οΈ Quality Control
Every example passes:
- JSON-serializable (validated on 100% of examples)
- Non-empty user and assistant content
- Assistant length between 200 and 25,000 characters
- Per-source deduplication by user-content fingerprint (SHA-256, first 16 hex chars)
- Schema validation (messages + metadata required)
π Usage
from datasets import load_dataset
# Load the full dataset
ds = load_dataset("VIRUS374/ai-developer-dataset", data_files="dataset.jsonl", split="train")
print(ds)
# Dataset({
# features: ["messages", "metadata"],
# num_rows: 1,124,699
# })
# Or use streaming for memory-efficient iteration
ds = load_dataset("VIRUS374/ai-developer-dataset", data_files="dataset.jsonl", split="train", streaming=True)
for example in ds:
messages = example["messages"]
# ... feed to tokenizer with chat template
ποΈ Fine-tuning Recipe (QLoRA)
from transformers import AutoModelForCausalLM, AutoTokenizer, TrainingArguments
from peft import LoraConfig, get_peft_model, prepare_model_for_kbit_training
from trl import SFTTrainer
from datasets import load_dataset
import torch
MODEL = "meta-llama/Llama-3.1-8B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(MODEL)
tokenizer.pad_token = tokenizer.eos_token
model = AutoModelForCausalLM.from_pretrained(
MODEL,
torch_dtype=torch.bfloat16,
load_in_4bit=True,
device_map="auto",
)
model = prepare_model_for_kbit_training(model)
lora_config = LoraConfig(
r=16, lora_alpha=32,
target_modules=["q_proj", "v_proj", "k_proj", "o_proj", "gate_proj", "up_proj", "down_proj"],
lora_dropout=0.05, bias="none", task_type="CAUSAL_LM",
)
model = get_peft_model(model, lora_config)
ds = load_dataset("VIRUS374/ai-developer-dataset", data_files="dataset.jsonl", split="train")
def format_example(example):
text = tokenizer.apply_chat_template(
example["messages"], tokenize=False, add_generation_prompt=False,
)
return {"text": text}
ds = ds.map(format_example, remove_columns=ds.column_names)
trainer = SFTTrainer(
model=model,
train_dataset=ds,
args=TrainingArguments(
output_dir="./output",
num_train_epochs=3,
per_device_train_batch_size=2,
gradient_accumulation_steps=8,
warmup_steps=50,
learning_rate=2e-4,
bf16=True,
logging_steps=10,
save_steps=500,
),
max_seq_length=4096,
)
trainer.train()
π License & Attribution
This dataset aggregates multiple open-source datasets. Each retains its original license:
- HuggingFaceH4/CodeAlpaca_20K β Apache 2.0
- HuggingFaceH4/Code-Feedback β Apache 2.0
- nickrosh/Evol-Instruct-Code-80k-v1 β Apache 2.0
- WizardLMTeam/WizardLM_evol_instruct_70k β Apache 2.0 (Non-commercial)
- TokenBender/code_instructions_122k_alpaca_style β Apache 2.0
- iamtarun/code_instructions_120k_alpaca β Apache 2.0
- m-a-p/Code-Feedback β CC BY-NC 4.0
- Locutusque/code-feedback-sharegpt β Apache 2.0
- ajibawa-2023/Code-74k-ShareGPT β Apache 2.0
- ajibawa-2023/Python-Code-23k-ShareGPT β Apache 2.0
- b-mc2/sql-create-context β CC BY 4.0
- glaiveai/glaive-code-assistant β Apache 2.0
- glaiveai/glaive-code-assistant-v2 β Apache 2.0
- mwitiderrick/glaive-code-assistant β Apache 2.0
- Data-Agora/magpie_code_gpt4o_mini_50000 β Apache 2.0
- Handcrafted examples (VIRUS374) β MIT
Important: If you use this dataset for commercial purposes, please review the WizardLM and m-a-p licenses β they may have non-commercial restrictions.
π Acknowledgements
Thanks to all the original dataset creators:
- HuggingFace H4 team
- WizardLM team
- TokenBender
- iamtarun
- m-a-p
- Locutusque
- ajibawa-2023
- b-mc2
- glaiveai
- mwitiderrick
- Data-Agora
π Citation
@dataset{virus374_ai_developer_2024,
title = {AI Developer Dataset},
author = {VIRUS374},
year = {2024},
url = {https://huggingface.co/datasets/VIRUS374/ai-developer-dataset},
note = {Aggregated from open-source code instruction datasets + handcrafted examples}
}
- Downloads last month
- 109