360 GB
219 files
Updated 3 months ago
Ctrl+K
Arcwright-Leptos
An instruction-tuning dataset for the Leptos Rust crate, built for the Arcwright fine-tuned model.
Leptos is a reactive web UI framework for Rust with fine-grained reactivity, server-side rendering, and a component model inspired by modern frontend frameworks.
Dataset Summary
- 2,034 instruction-response pairs covering reactive signals, components,
view!macro, server functions, ssr, hydration, routing, and resource management - Generated from real source code using the OSS-Instruct methodology via Claude Code sub-agents
- Validated for structural correctness and deduplicated using MinHash (Jaccard threshold 0.7)
- Format: ChatML (messages array with system/user/assistant roles)
Category Distribution
| Category | Count | % |
|---|---|---|
| Code Generation | 711 | 34% |
| Code Explanation | 364 | 17% |
| Api Usage | 320 | 15% |
| Bug Detection | 242 | 11% |
| Refactoring | 211 | 10% |
| Test Generation | 198 | 9% |
Format
Each example is a JSON object with a messages array:
{
"messages": [
{"role": "system", "content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns."},
{"role": "user", "content": "Write a Leptos component that displays a counter with increment and decrement buttons using reactive signals."},
{"role": "assistant", "content": "..."}
],
"category": "code_generation",
"crate": "leptos"
}
Usage
from datasets import load_dataset
dataset = load_dataset("y0sif/Arcwright-Leptos")
print(dataset["train"][0]["messages"])
Part of Arcwright
This dataset is one of three crate-specific datasets used to train Arcwright-E4B-v1:
| Dataset | Crate | Pairs |
|---|---|---|
| Arcwright-Leptos | Leptos | 2,046 |
| Arcwright-Axum | Axum | 741 |
| Arcwright-Rig | Rig | 697 |
Source
All instruction pairs were generated from source code in the Leptos repository. Code was chunked using tree-sitter into meaningful units (functions, impl blocks, modules), then used as seed material for instruction generation.
License
Apache 2.0
- Total size
- 360 GB
- Files
- 219
- Last updated
- Sep 18
- Pre-warmed CDN
- US EU US EU