Slimpajama Dataset

December 25, 2025 ยท View on GitHub

Dataset Introduction

This dataset aims to evaluate the accuracy of the built-in rules in dingo. Therefore, the open-source dataset Slimpajama was selected, and data was extracted from it to construct the test set.

Field NameDescription
data_idData ID, without special meaning, can be modified according to user needs
contentData to be tested
languageLanguage type
eval_statusData status, True for negative examples, False for positive examples
type_listNegative example types for negative data, empty list for positive data
name_listNegative example names for negative data, empty list for positive data
reason_listNegative example descriptions for negative data, empty list for positive data

Links: https://huggingface.co/datasets/chupei/slimpajama_badcase_rule https://huggingface.co/datasets/chupei/slimpajama_goodcase_rule

Dataset Composition

TypeCount
Positive examples82
Negative examples: RuleAlphaWords27
Negative examples: RuleCapitalWords26
Negative examples: RuleCharNumber5
Negative examples: RuleDocRepeat17
Negative examples: RuleHtmlEntity3
Negative examples: RuleLineEndWithEllipsis5
Negative examples: RuleLineEndWithTerminal5
Negative examples: RuleLineStartWithBulletpoint6
Negative examples: RuleLoremIpsum5
Negative examples: RuleMeanWordLength12
Negative examples: RuleNoPunc7
Negative examples: RuleSentenceNumber8
Negative examples: RuleSpecialCharacter4
Negative examples: RuleStopWord24
Negative examples: RuleSymbolWordRatio5
Negative examples: RuleUniqueWords7
Negative examples: RuleWordNumber7

Rules Introduction

This test uses the built-in pretrain as the eval_group. For specific rules included, please refer to: Group Introduction.
For rules within the group, please refer to: Rules Introduction.

Evaluation Results

Definitions

After evaluation, both positive and negative data will generate corresponding summary files. Therefore, the results need to be defined with clear concepts.

TermDescription
TPTrue Positive: Number of positive examples correctly identified
FPFalse Positive: Number of negative examples incorrectly identified as positive
TNTrue Negative: Number of negative examples correctly identified
FNFalse Negative: Number of positive examples incorrectly identified as negative
AccuracyTP / (TP + FP) Ratio of positive examples in the identified positives
RecallTP / (TP + FN) Ratio of positive examples correctly identified
F1(Accuracy + Recall) / 2

Results Display

Dataset NameTPFPTNFNAccuracy%Recall%F1
slimpajama7851034949594.5

Evaluation Method

Translate this markdown into English.

from dingo.config import InputArgs
from dingo.exec import Executor

input_data = {
    "eval_group": "pretrain",
    "input_path": "chupei/slimpajama_badcase_rule",
    "save_data": True,
    "save_correct": True,
    "save_raw": True,
    "max_workers": 10,
    "batch_size": 10,
    "data_format": "jsonl",
    "column_content": "content",
}
input_args = InputArgs(**input_data)
executor = Executor.exec_map["local"](input_args)
result = executor.execute()
print(result)