license: apache-2.0
language:
- en
tags:
- rust
- code
- instruction-tuning
- leptos
- chatml
size_categories:
- 1K<n<10K
task_categories:
- text-generation
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
Xet Storage Details
- Size:
- 2.7 kB
- Xet hash:
- e240817bcb4ef266219d5878f7370613944cf3b0a1535c49f7e8003c1cfbc621
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.