Dataset Viewer
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    TypeError
Message:      Couldn't cast array of type struct<id: string, messages: list<item: struct<content: string, role: string>>, source: string> to string
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 2285, in __iter__
                  for key, example in ex_iterable:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1856, in __iter__
                  for key, pa_table in self._iter_arrow():
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1888, in _iter_arrow
                  pa_table = cast_table_to_features(pa_table, self.features)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2220, in cast_table_to_features
                  arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2220, in <listcomp>
                  arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1796, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1796, in <listcomp>
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2103, in cast_array_to_feature
                  return array_cast(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1798, in wrapper
                  return func(array, *args, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1951, in array_cast
                  raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}")
              TypeError: Couldn't cast array of type struct<id: string, messages: list<item: struct<content: string, role: string>>, source: string> to string

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

General_English_only_SFT_Filtered_25k

数据集描述

这是一个包含25k条英文指令跟随数据的高质量数据集,经过精心筛选和过滤。

文件结构

  • dataset.jsonl: 主数据文件(JSONL格式)

数据格式

数据集包含以下字段:

  • text: str
  • source: str
  • category: str
  • original_data: dict

使用方法

方法1: 使用datasets库

from datasets import load_dataset

# 加载数据集
dataset = load_dataset("Ibisbill/General_English_only_SFT_Filtered_25k")
print(dataset)

方法2: 直接下载JSONL文件

from huggingface_hub import hf_hub_download
import json

# 下载文件
file_path = hf_hub_download(
    repo_id="Ibisbill/General_English_only_SFT_Filtered_25k",
    filename="dataset.jsonl",
    repo_type="dataset"
)

# 读取JSONL
data = []
with open(file_path, 'r', encoding='utf-8') as f:
    for line in f:
        data.append(json.loads(line))

print(f"加载了 {len(data)} 条记录")

示例数据

{
  "text": "Is the premise \"Two young boys are headed toward a bicycle parked next to a brick house.\" true if \"Two boys are heading toward a bike.\"?\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\nyes\nQ: \"Two people are eating something strange, as evidenced by her laugh and his nose-holding.\" Does this mean that \"Three people are eating something strange, as evidenced by her laugh and his nose-holding.\"? OPTIONS:\n- yes\n- it is not possible to tell\n- no\nA: no\nPremise & Hypothesis & Options: A group of students looking over a balcony on a senior trip.\nSome young people peer over a short wall.\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\nIs the hypothesis true or not: yes\nPremise & hypothesis: Is the premise \"A man and small boy are playing with a wooden toy track system on the floor.\" true if \"The man and the boy are playing.\"?\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\nA: yes\nPremise & hypothesis.\nA little girl runs on the wet sand near the ocean.\n\nHer feet sink into the sand.\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\n++++++++++\ntrue or not.\nyes\nIs the premise \"A little girl in a red dress is standing on a trail in the forest with a horse in the background.\" true if \"a girl is waiting to ride her horse\"?\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\n it is not possible to tell",
  "source": "tulu3",
  "category": "general",
  "original_data": {
    "id": "ai2-adapt-dev/flan_v2_converted_26714",
    "messages": [
      {
        "content": "Is the premise \"Two young boys are headed toward a bicycle parked next to a brick house.\" true if \"Two boys are heading toward a bike.\"?\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\nyes\nQ: \"Two people are eating something strange, as evidenced by her laugh and his nose-holding.\" Does this mean that \"Three people are eating something strange, as evidenced by her laugh and his nose-holding.\"? OPTIONS:\n- yes\n- it is not possible to tell\n- no\nA: no\nPremise & Hypothesis & Options: A group of students looking over a balcony on a senior trip.\nSome young people peer over a short wall.\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\nIs the hypothesis true or not: yes\nPremise & hypothesis: Is the premise \"A man and small boy are playing with a wooden toy track system on the floor.\" true if \"The man and the boy are playing.\"?\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\nA: yes\nPremise & hypothesis.\nA little girl runs on the wet sand near the ocean.\n\nHer feet sink into the sand.\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\n++++++++++\ntrue or not.\nyes\nIs the premise \"A little girl in a red dress is standing on a trail in the forest with a horse in the background.\" true if \"a girl is waiting to ride her horse\"?\nOPTIONS:\n- yes\n- it is not possible to tell\n- no\n",
        "role": "user"
      },
      {
        "content": "it is not possible to tell",
        "role": "assistant"
      }
    ],
    "source": "ai2-adapt-dev/flan_v2_converted"
  }
}

数据统计

  • 总样本数: 25000
  • 数据格式: JSONL
  • 文件大小: 约 25 MB
Downloads last month
95