fnlp/character-llm-data
收藏资源简介:
Character-LLM是一个用于训练角色扮演代理的数据集,包含九个角色的经验数据。数据集分为`prompted/`和`generated/`两个目录,前者包含可直接用于监督微调的数据,后者包含由gpt-3.5-turbo生成的原始数据,可以转换为`prompted`风格。数据集的统计信息包括每个角色的场景数量、单词数量和对话轮次等。
Character-LLM is a dataset dedicated to training role-playing AI agents, containing empirical data for nine distinct characters. The dataset is divided into two directories: `prompted/` and `generated/`. The `prompted/` directory holds data directly usable for supervised fine-tuning, while the `generated/` directory contains raw data generated by gpt-3.5-turbo, which can be converted to the `prompted` style. Statistical metrics of the dataset include the number of scenarios, word count, dialogue turns per character, and so on.
Character-LLM 数据集概述
数据集描述
Character-LLM 数据集包含九个角色的经验数据,用于训练 Character-LLM 模型。
数据下载
数据集可通过以下 Python 代码下载,下载的数据将保存在指定路径 /path/to/local_dir。
python from huggingface_hub import snapshot_download snapshot_download( local_dir_use_symlinks=True, repo_type="dataset", repo_id="fnlp/character-llm-data", local_dir="/path/to/local_dir")
数据结构
数据集包含两个主要部分:
prompted/:可直接用于监督微调的数据集。generated/:由 gpt-3.5-turbo 生成的原始数据,可转换为prompted风格。
数据统计
以下是训练数据的统计信息:
| 角色名称 | 场景数量 | 单词数量 | 对话轮数 |
|---|---|---|---|
| Cleopatra VII | 1.4K | 723K | 14.3 |
| Lord Voldemort | 1.4K | 599K | 13.1 |
| Spartacus | 1.4K | 646K | 12.3 |
| Hermione Granger | 1.5K | 628K | 15.5 |
| Isaac Newton | 1.6K | 772K | 12.6 |
| Julius Caesar | 1.6K | 820K | 12.9 |
| Ludwig van Beethoven | 1.6K | 663K | 12.2 |
| Socrates | 1.6K | 896K | 14.1 |
| Martin Luther King | 2.2K | 1,038K | 12.0 |
| 平均值 | 1.6K | 754K | 13.2 |




