Add README
Browse files
README.md
CHANGED
|
@@ -1,19 +1,47 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
num_bytes: 150513715
|
| 11 |
-
num_examples: 314318
|
| 12 |
-
download_size: 72521120
|
| 13 |
-
dataset_size: 150513715
|
| 14 |
-
configs:
|
| 15 |
-
- config_name: default
|
| 16 |
-
data_files:
|
| 17 |
-
- split: train
|
| 18 |
-
path: data/train-*
|
| 19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: other
|
| 5 |
+
tags:
|
| 6 |
+
- code
|
| 7 |
+
- seeds
|
| 8 |
+
- oss-instruct
|
| 9 |
+
- dataset-curation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
+
|
| 12 |
+
# oss-code-seeds
|
| 13 |
+
|
| 14 |
+
A combined dataset of open-source code snippets (seeds) curated from multiple
|
| 15 |
+
high-quality sources. The intended use is to serve as seeds for generating
|
| 16 |
+
coding instruction-response pairs via the OSS-Instruct approach — where a model
|
| 17 |
+
is prompted with a real code snippet to produce a grounded, diverse coding problem
|
| 18 |
+
and its solution.
|
| 19 |
+
|
| 20 |
+
## Columns
|
| 21 |
+
|
| 22 |
+
- `seed`: A raw code snippet from open-source software (OSS), serving as the seed
|
| 23 |
+
- `source`: The original HuggingFace dataset the seed was taken from
|
| 24 |
+
|
| 25 |
+
## Sources
|
| 26 |
+
|
| 27 |
+
| Dataset | Description |
|
| 28 |
+
|---|---|
|
| 29 |
+
| `ise-uiuc/Magicoder-OSS-Instruct-75K` | Seeds used to generate the Magicoder dataset via GPT-3.5, multi-language GitHub snippets |
|
| 30 |
+
| `bigcode/self-oss-instruct-sc2-concepts` | Filtered Python functions from The Stack V1 used in the SelfCodeAlign pipeline |
|
| 31 |
+
|
| 32 |
+
## Intended Use
|
| 33 |
+
|
| 34 |
+
Feed the `seed` column into your own model API to generate coding problems and
|
| 35 |
+
solutions, effectively replicating or improving upon the OSS-Instruct pipeline
|
| 36 |
+
with your own model.
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
from datasets import load_dataset
|
| 40 |
+
|
| 41 |
+
ds = load_dataset("PursuitOfDataScience/oss-code-seeds", split="train")
|
| 42 |
+
|
| 43 |
+
for row in ds:
|
| 44 |
+
seed = row["seed"]
|
| 45 |
+
source = row["source"]
|
| 46 |
+
# prompt your model with seed to generate a problem + solution
|
| 47 |
+
```
|