add Python code
Browse files
README.md
CHANGED
@@ -12,6 +12,14 @@ This is the dataset that can be used with Andrej Karpathy's [NanoGPT](https://gi
|
|
12 |
|
13 |
For more info on reproducing GPT-2 with NanuGPT code, [see here](https://github.com/sytelus/nanuGPT/blob/main/docs/openwebtext.md).
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
## Statistics
|
16 |
|
17 |
```text
|
|
|
12 |
|
13 |
For more info on reproducing GPT-2 with NanuGPT code, [see here](https://github.com/sytelus/nanuGPT/blob/main/docs/openwebtext.md).
|
14 |
|
15 |
+
Simple dataset loading:
|
16 |
+
|
17 |
+
```python
|
18 |
+
from datasets import load_dataset
|
19 |
+
dataset = load_dataset("sytelus/openwebtext")
|
20 |
+
```
|
21 |
+
|
22 |
+
|
23 |
## Statistics
|
24 |
|
25 |
```text
|