Dataset Viewer
Auto-converted to Parquet Duplicate
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" }
End of preview. Expand in Data Studio

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