Genesis-AI-Labs/GAIL-gsm8k-preference-small
收藏Hugging Face2025-04-01 更新2025-11-01 收录
下载链接:
https://hf-mirror.com/datasets/Genesis-AI-Labs/GAIL-gsm8k-preference-small
下载链接
链接失效反馈官方服务:
资源简介:
---
license: apache-2.0
---
How to load the dataset
(Usage code):
```python
from datasets import load_from_disk
saved_dataset_path = "path/to/dataset/folder"
loaded_preference_dataset = load_from_disk(saved_dataset_path)
print(f"\nSuccessfully loaded dataset from {saved_dataset_path}:")
print(loaded_preference_dataset)
# Now 'loaded_preference_dataset' can be used directly with DPOTrainer
# Example:
# dpo_trainer = DPOTrainer(..., train_dataset=loaded_preference_dataset, ...)
except Exception as e:
print(f"Error loading dataset from {saved_dataset_path}: {e}")
```
提供机构:
Genesis-AI-Labs



