---
title: alpaca-cot-en-refined-by-data-juicer
canonical_url: "https://www.modelscope.cn/datasets/Data-Juicer/alpaca-cot-en-refined-by-data-juicer"
md_url: "https://www.modelscope.cn/datasets/Data-Juicer/alpaca-cot-en-refined-by-data-juicer.md"
repository: Data-Juicer/alpaca-cot-en-refined-by-data-juicer
last_updated: 2024-09-02
license: "Apache License 2.0"
storage_size: "12 KB"
domain:
  - configs
  - text
tasks:
  - "{config_name=default, data_files=[{path=alpaca-cot-en-refine-result-preview.jsonl, split=train}]}"
  - text-generation
language:
  - en
downloads: 349
stars: 1
---

# alpaca-cot-en-refined-by-data-juicer

> alpaca-cot-en-refined-by-data-juicer - Data-Juicer 在 ModelScope 开源的数据集。A refined English version of Alpaca-CoT dataset by Data-Juicer. Removing some "bad" samples from the original dataset to make it higher-quality. This dataset is usually used to fine-tune…

Data-Juicer/alpaca-cot-en-refined-by-data-juicer 是 ModelScope 魔搭社区上的{config_name=default, data_files=[{path=alpaca-cot-en-refine-result-preview.jsonl, split=train}]}、text-generation数据集，涉及 configs、text 领域，存储大小 12 KB，采用 Apache License 2.0 许可。

- **Repository**: Data-Juicer/alpaca-cot-en-refined-by-data-juicer
- **License**: Apache License 2.0
- **Tasks**: {config_name=default, data_files=[{path=alpaca-cot-en-refine-result-preview.jsonl, split=train}]}, text-generation
- **Domain**: configs, text
- **Storage size**: 12 KB
- **Downloads**: 349
- **Stars**: 1
- **Last updated**: 2024-09-02

Source: https://www.modelscope.cn/datasets/Data-Juicer/alpaca-cot-en-refined-by-data-juicer

---

# Alpaca-CoT -- EN (refined by Data-Juicer)

A refined English version of Alpaca-CoT dataset by [Data-Juicer](https://github.com/alibaba/data-juicer). Removing some "bad" samples from the original dataset to make it higher-quality.

This dataset is usually used to fine-tune a Large Language Model.

**Notice**: Here is a small subset for previewing. The whole dataset is available [here](https://dail-wlcb.oss-cn-wulanchabu.aliyuncs.com/LLM_data/our_refined_datasets/CFT/alpaca-cot-en-refine_result.jsonl) (About 226GB).

## Dataset Information

- Number of samples: 72,855,345 (Keep ~54.48% from the original dataset)

## Refining Recipe
```yaml
# global parameters
project_name: 'Data-Juicer-recipes-alpaca-cot-en'
dataset_path: '/path/to/your/dataset'  # path to your dataset directory or file
export_path: '/path/to/your/dataset.jsonl'

np: 50  # number of subprocess to process your dataset
open_tracer: true

# process schedule
# a list of several process operators with their arguments
process:
  - document_deduplicator:
      lowercase: true
      ignore_non_character: true

  - alphanumeric_filter:
      tokenization: false
      min_ratio: 0.1  
  - character_repetition_filter:
      rep_len: 10
      max_ratio: 0.6
  - flagged_words_filter:
      lang: en
      tokenization: true
      max_ratio: 0.017
  - maximum_line_length_filter:
      min_len: 20
  - text_length_filter:
      min_len: 30

  - document_simhash_deduplicator:
      tokenization: space
      window_size: 3
      lowercase: true
      ignore_pattern: '\p{P}'
      num_blocks: 9
      hamming_distance: 7
```
