Update README.md
Browse files
README.md
CHANGED
|
@@ -17,9 +17,9 @@ task_categories:
|
|
| 17 |
|
| 18 |
# 🦀 Magicoder-OSS-Instruct-Rust (3.9K Cleaned)
|
| 19 |
|
| 20 |
-
**Magicoder-OSS-Instruct-Rust** is a high-quality, syntax-verified dataset of **3,
|
| 21 |
|
| 22 |
-
This dataset is extracted from [ise-uiuc/Magicoder-OSS-Instruct-75K](https://huggingface.co/datasets/ise-uiuc/Magicoder-OSS-Instruct-75K), filtered specifically for Rust, and validated via in-memory compiler checks.
|
| 23 |
|
| 24 |
---
|
| 25 |
|
|
@@ -38,7 +38,7 @@ The dataset was processed using the following technical pipeline:
|
|
| 38 |
Out of the original 75,000 multi-language samples:
|
| 39 |
1. Non-Rust programming languages were filtered out.
|
| 40 |
2. Incomplete snippets or entries failing `rustc` syntax checks were removed.
|
| 41 |
-
3. A clean, verified set of **3,
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
@@ -69,7 +69,7 @@ The dataset follows the **ChatML** (`messages`) format:
|
|
| 69 |
"messages": [
|
| 70 |
{
|
| 71 |
"role": "system",
|
| 72 |
-
"content": "
|
| 73 |
},
|
| 74 |
{
|
| 75 |
"role": "user",
|
|
@@ -81,10 +81,28 @@ The dataset follows the **ChatML** (`messages`) format:
|
|
| 81 |
}
|
| 82 |
]
|
| 83 |
}
|
|
|
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
@article{wei2023magicoder,
|
| 86 |
title={Magicoder: Source Code Is All You Need},
|
| 87 |
author={Wei, Yuxiang and Wang, Zhe and Liu, Jiawei and Ding, Yuhang and Zhang, Lingming},
|
| 88 |
journal={arXiv preprint arXiv:2312.02120},
|
| 89 |
year={2023}
|
| 90 |
-
}
|
|
|
|
|
|
| 17 |
|
| 18 |
# 🦀 Magicoder-OSS-Instruct-Rust (3.9K Cleaned)
|
| 19 |
|
| 20 |
+
**Magicoder-OSS-Instruct-Rust** is a high-quality, syntax-verified dataset of **3,909** Rust coding instructions derived from real-world open-source GitHub projects.
|
| 21 |
|
| 22 |
+
This dataset is extracted from [ise-uiuc/Magicoder-OSS-Instruct-75K](https://huggingface.co/datasets/ise-uiuc/Magicoder-OSS-Instruct-75K), filtered specifically for Rust, and validated via in-memory compiler checks. No language translation was applied; the dataset remains in its original English format.
|
| 23 |
|
| 24 |
---
|
| 25 |
|
|
|
|
| 38 |
Out of the original 75,000 multi-language samples:
|
| 39 |
1. Non-Rust programming languages were filtered out.
|
| 40 |
2. Incomplete snippets or entries failing `rustc` syntax checks were removed.
|
| 41 |
+
3. A clean, verified set of **3,909 high-quality Rust instructions** was produced.
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
|
|
| 69 |
"messages": [
|
| 70 |
{
|
| 71 |
"role": "system",
|
| 72 |
+
"content": "You are an expert assistant who solves Rust programming problems and generates correct code."
|
| 73 |
},
|
| 74 |
{
|
| 75 |
"role": "user",
|
|
|
|
| 81 |
}
|
| 82 |
]
|
| 83 |
}
|
| 84 |
+
```
|
| 85 |
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
## 💻 Usage
|
| 89 |
+
|
| 90 |
+
```python
|
| 91 |
+
from datasets import load_dataset
|
| 92 |
+
|
| 93 |
+
dataset = load_dataset("WrittenWithRust/Magicoder-OSS-Instruct-Rust-3.9K")
|
| 94 |
+
print(dataset["train"][0])
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
## 📜 Citation
|
| 100 |
+
|
| 101 |
+
```bibtex
|
| 102 |
@article{wei2023magicoder,
|
| 103 |
title={Magicoder: Source Code Is All You Need},
|
| 104 |
author={Wei, Yuxiang and Wang, Zhe and Liu, Jiawei and Ding, Yuhang and Zhang, Lingming},
|
| 105 |
journal={arXiv preprint arXiv:2312.02120},
|
| 106 |
year={2023}
|
| 107 |
+
}
|
| 108 |
+
```
|