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


