File size: 3,698 Bytes
2da25d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d9b3e7d
2da25d7
d9b3e7d
 
2da25d7
 
d9b3e7d
 
 
2da25d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
license: apache-2.0
task_categories:
- text-generation
language:
- ru
- en
tags:
- web-development
- html
- css
- javascript
- typescript
- react
- agentic-coding
- autocomplete
- fim
- dora
- reasoning
- fable-distillation
pretty_name: "WebDev Agentic Coder & Autocomplete with Distilled Reasoning (DoRA Ready)"
size_categories:
- 1K<n<10K
---

# WebDev Agentic Coder & Autocomplete Dataset (DoRA Ready)

**Curated, filtered, and distilled dataset** specifically designed for fine-tuning LLMs with **DoRA** (Weight-Decomposed Low-Rank Adaptation) and LoRA for:
1. **Web Development**: HTML5, CSS3, JavaScript (ES6+), TypeScript, React, responsive UI, DOM, and Web APIs.
2. **Agentic Coding**: Autonomous multi-turn problem solving, tool use (`read_file`, `write_file`, `edit_file`, `run_command`), and codebase refactoring.
3. **AI Autocomplete**: Fill-In-The-Middle (FIM) format (`<|fim_prefix|>`, `<|fim_suffix|>`, `<|fim_middle|>`) for IDE code completions.
4. **Distilled Reasoning (`<think>` Mode)**: Deep chain-of-thought analysis inspired by Fable / Claude-Code traces before generating code or calling tools.
5. **Bilingual (>= 40% Natural Russian)**: Real-world colloquial yet technical Russian paired with high-quality English.

---

## Dataset Statistics

- **Total Curated Examples**: 3707
- **Language Distribution**:
  - **Russian (ru)**: 2016 (54.4%)
  - **English (en)**: 1691 (45.6%)
- **Task Types**:
  - `web_reasoning_sft`: 2200
  - `autocomplete_fim`: 1126
  - `agentic_web`: 381
- **Reasoning Chains (`<think>`)**: 2500 examples (67.4%)
- **Quality Filtering Gate**: 100% passed strict heuristic filtering (>80% garbage confidence rejected).

---

## Data Format

Each row adheres to a unified schema supporting both conversational training (`messages`) and causal completion / FIM (`text`):

```json
{
  "id": "web-frontend-00042",
  "task_type": "web_reasoning_sft",
  "language": "ru",
  "framework": "javascript",
  "messages": [
    {"role": "system", "content": "..."},
    {"role": "user", "content": "..."},
    {"role": "assistant", "content": "<think>\n...\n</think>\n..."}
  ],
  "text": "<|im_start|>system\n...<|im_end|>...",
  "meta": {
    "source": "...",
    "has_think": true,
    "has_tools": false,
    "quality_score": 0.98
  }
}
```

### Autocomplete (FIM) Format
FIM examples use standard tokens compatible with Qwen2.5-Coder and DeepSeek-Coder:
```
<|fim_prefix|>...code before cursor...<|fim_suffix|>...code after cursor...<|fim_middle|>...predicted completion...
```

---

## Fine-tuning with DoRA (Example Config)

This dataset is pre-formatted for direct ingestion by **TRL / SFTTrainer**, **Unsloth**, **Axolotl**, and **LLaMA-Factory**:

```python
from transformers import TrainingArguments
from peft import LoraConfig
from trl import SFTTrainer
from datasets import load_dataset

dataset = load_dataset("68standard/webdev-agentic-coder-distill-dora")

peft_config = LoraConfig(
    use_dora=True,        # Enable DoRA (Weight-Decomposed LoRA)
    r=32,
    lora_alpha=64,
    lora_dropout=0.05,
    target_modules=["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"],
    bias="none",
    task_type="CAUSAL_LM"
)

trainer = SFTTrainer(
    model="Qwen/Qwen2.5-Coder-7B-Instruct",
    train_dataset=dataset["train"],
    dataset_text_field="text",
    max_seq_length=4096,
    peft_config=peft_config,
    args=TrainingArguments(
        output_dir="./dora-web-agent-coder",
        learning_rate=2e-4,
        warmup_ratio=0.03,
        lr_scheduler_type="cosine",
        bf16=True,
        logging_steps=10,
        per_device_train_batch_size=2,
        gradient_accumulation_steps=8
    )
)
trainer.train()
```