遇见数据集

Genesis-AI-Labs/GAIL-gsm8k-preference-small

收藏
Hugging Face2025-04-01 更新2025-11-01 收录
官方服务:

资源简介:

--- 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
二维码
社区交流群
二维码
科研交流群
商业服务