File size: 3,475 Bytes
d33305e
 
 
 
 
eb3e54f
 
 
d33305e
 
eb3e54f
 
 
 
 
 
 
 
 
 
 
 
 
 
d33305e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7c070e6
 
 
 
 
33362f0
7c070e6
f95728a
7c070e6
f95728a
7c070e6
33362f0
7c070e6
f95728a
7c070e6
f95728a
7c070e6
f95728a
7c070e6
270eec6
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
language:
- ja
pretty_name: lambda-corpus
license: other
license_name: mixed-source-licenses
license_link: https://huggingface.co/datasets/KeisukeMiyamoto/lambda-corpus#source-data
license_details: Each row remains subject to the license and terms of its source dataset.
task_categories:
- text-generation
annotations_creators:
- no-annotation
language_creators:
- found
- machine-generated
multilinguality:
- monolingual
source_datasets:
- KeisukeMiyamoto/CleanedFineWeb2Edu-jp
- hpprc/jawiki-bullet-points
- kanhatakeyama/CommonCrawl-RAG-QA-Calm3-22b-chat
- hpprc/llmjp-kaken
models:
- google/gemma-4-12B
tags:
- japanese
- pretraining
- corpus
- parquet
size_categories:
- 10M<n<100M
configs:
- config_name: default
  data_files:
  - split: train
    path: "data/train-*.parquet"
  - split: validation
    path: "data/validation.parquet"
  - split: test
    path: "data/test.parquet"
---

# lambda-corpus

lambda-corpus is a Japanese text corpus for language model pretraining. It combines openly available Japanese datasets into a consistent format and provides predefined train, validation, and test splits.

## Purpose

The dataset is intended for pretraining of Japanese language models. It contains web documents, Wikipedia-derived text, academic grant records, and synthetic question-answer text.

## Source Data

| Source | Rows | Tokens | License |
| --- | ---: | ---: | --- |
| [KeisukeMiyamoto/CleanedFineWeb2Edu-jp](https://huggingface.co/datasets/KeisukeMiyamoto/CleanedFineWeb2Edu-jp) | 11,772,204 | 7.61B | ODC-BY |
| [hpprc/jawiki-bullet-points](https://huggingface.co/datasets/hpprc/jawiki-bullet-points) | 3,523,358 | 1.55B | CC BY-SA 4.0 |
| [kanhatakeyama/CommonCrawl-RAG-QA-Calm3-22b-chat](https://huggingface.co/datasets/kanhatakeyama/CommonCrawl-RAG-QA-Calm3-22b-chat) | 2,525,793 | 1.04B | Other |
| [hpprc/llmjp-kaken](https://huggingface.co/datasets/hpprc/llmjp-kaken) | 1,079,030 | 1.03B | CC BY 4.0 |

## Dataset Size

| Split | Rows |
| --- | ---: |
| train | 18,522,556 |
| validation | 189,174 |
| test | 188,655 |
| total | 18,900,385 |

The dataset contains approximately 11.23B tokens measured with the gemma 4 tokenizer.

## Columns

| Column | Description |
| --- | --- |
| `id` | Identifier inherited from the source dataset |
| `text` | Normalized document text |
| `output_tokens` | Number of tokens in `text`, measured with the gemma 4 tokenizer |
| `source` | Name of the source dataset |

## Example

```python
from datasets import load_dataset

dataset = load_dataset("KeisukeMiyamoto/lambda-corpus")
print(dataset["train"][0])
```

---

## Support Lambda

[Lambda](https://github.com/KeisukeMiyamoto1324/lambda) is an open-source project for building small Japanese language models from scratch. As a student, I have funded this project with income from my part-time job, but the growing training costs are becoming difficult to cover.

Your support helps cover GPU costs and develop larger models. Thank you for helping Lambda continue to grow.

### Vast.ai

Vast.ai offers affordable cloud GPUs for AI training, with **NVIDIA H100 SXM GPUs available from around $1.54 per hour**. If you purchase credits through the link below, I receive 3% in GPU credits at no extra cost to you.

https://cloud.vast.ai/?ref_id=521936

### Ko-fi

Support Lambda with a donation starting from $5.

<a href="https://ko-fi.com/lambda_llm">
  <img src="assets/support_me_on_kofi_badge_blue.png" alt="Support Lambda on Ko-fi" width="240">
</a>