Datasets:
YCWTG commited on
Commit ·
4a0e502
1
Parent(s): e4a3281
Convert samples to messages schema
Browse files- README.md +15 -10
- train.jsonl +2 -2
README.md
CHANGED
|
@@ -4,17 +4,17 @@ language:
|
|
| 4 |
license: other
|
| 5 |
task_categories:
|
| 6 |
- text-generation
|
| 7 |
-
pretty_name: Luau Stack HQ
|
| 8 |
size_categories:
|
| 9 |
- 10K<n<100K
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# Dataset Card for YCWTG/luau-stack-hq-
|
| 13 |
|
| 14 |
## Summary
|
| 15 |
|
| 16 |
This dataset is a pretraining-oriented repackaging of `khtsly/luau-stack-hq`.
|
| 17 |
-
It keeps only the source code content and stores it in a
|
| 18 |
|
| 19 |
- Rows: 21,704
|
| 20 |
- File format: JSONL
|
|
@@ -26,7 +26,11 @@ It keeps only the source code content and stores it in a single field named `tex
|
|
| 26 |
Each row has one field:
|
| 27 |
|
| 28 |
```json
|
| 29 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
```
|
| 31 |
|
| 32 |
## Processing
|
|
@@ -34,23 +38,24 @@ Each row has one field:
|
|
| 34 |
The source file `/luau-stack.jsonl` was transformed with the following rule:
|
| 35 |
|
| 36 |
1. Read each JSON line.
|
| 37 |
-
2. Extract the original `code` field.
|
| 38 |
-
3.
|
|
|
|
| 39 |
4. Drop all other fields.
|
| 40 |
|
| 41 |
-
No filtering, deduplication, or normalization was applied beyond field selection/renaming.
|
| 42 |
|
| 43 |
## Intended Use
|
| 44 |
|
| 45 |
-
This dataset is intended for code language model pretraining or continued pretraining where a
|
| 46 |
|
| 47 |
## Load with `datasets`
|
| 48 |
|
| 49 |
```python
|
| 50 |
from datasets import load_dataset
|
| 51 |
|
| 52 |
-
ds = load_dataset("YCWTG/luau-stack-hq-
|
| 53 |
-
print(ds[0]["
|
| 54 |
```
|
| 55 |
|
| 56 |
## Source and Attribution
|
|
|
|
| 4 |
license: other
|
| 5 |
task_categories:
|
| 6 |
- text-generation
|
| 7 |
+
pretty_name: Luau Stack HQ ChatML
|
| 8 |
size_categories:
|
| 9 |
- 10K<n<100K
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Dataset Card for YCWTG/luau-stack-hq-ChatML
|
| 13 |
|
| 14 |
## Summary
|
| 15 |
|
| 16 |
This dataset is a pretraining-oriented repackaging of `khtsly/luau-stack-hq`.
|
| 17 |
+
It keeps only the source code content and stores it in a ChatML-style `messages` field.
|
| 18 |
|
| 19 |
- Rows: 21,704
|
| 20 |
- File format: JSONL
|
|
|
|
| 26 |
Each row has one field:
|
| 27 |
|
| 28 |
```json
|
| 29 |
+
{
|
| 30 |
+
"messages": [
|
| 31 |
+
{"role": "assistant", "content": "<luau source code>"}
|
| 32 |
+
]
|
| 33 |
+
}
|
| 34 |
```
|
| 35 |
|
| 36 |
## Processing
|
|
|
|
| 38 |
The source file `/luau-stack.jsonl` was transformed with the following rule:
|
| 39 |
|
| 40 |
1. Read each JSON line.
|
| 41 |
+
2. Extract the original `code` field as `text`.
|
| 42 |
+
3. Wrap `text` into `messages` as:
|
| 43 |
+
`{"messages": [{"role": "assistant", "content": text}]}`.
|
| 44 |
4. Drop all other fields.
|
| 45 |
|
| 46 |
+
No filtering, deduplication, or normalization was applied beyond field selection/renaming/wrapping.
|
| 47 |
|
| 48 |
## Intended Use
|
| 49 |
|
| 50 |
+
This dataset is intended for code language model pretraining or continued pretraining where a ChatML-style assistant message format is required.
|
| 51 |
|
| 52 |
## Load with `datasets`
|
| 53 |
|
| 54 |
```python
|
| 55 |
from datasets import load_dataset
|
| 56 |
|
| 57 |
+
ds = load_dataset("YCWTG/luau-stack-hq-ChatML", split="train")
|
| 58 |
+
print(ds[0]["messages"][0]["content"][:200])
|
| 59 |
```
|
| 60 |
|
| 61 |
## Source and Attribution
|
train.jsonl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e041b5e166e7e58bc3f094433e441a40bd11d548c50d1b4eacb9a204b58d79ee
|
| 3 |
+
size 66322596
|