Skip to content

Commit

Permalink
Merge pull request #34 from for-ai/gtranslate_updated
Browse files Browse the repository at this point in the history
Added example command for translation
  • Loading branch information
RishabhMaheshwary authored Sep 9, 2024
2 parents 122131c + 83ebd79 commit d230c18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/translate_preference_pairs_gtranslate.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,5 @@ def translate_dataset(dataset, columns_to_translate, target_language, subset_siz
args.output_dir,
args.batch_size,
)
# Example Command:
# python translate_preference_pairs_gtranslate.py --dataset_name allenai/reward-bench --target_language ar --columns_to_translate prompt chosen rejected --output_dir translated_results

0 comments on commit d230c18

Please sign in to comment.