File size: 2,283 Bytes
3d0aa61 e5d1d74 3d0aa61 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | operators:
- id: load_hf
config:
type: hf_source
dataset: KodCode/KodCode-V1-SFT-R1
split: train
trust_remote_code: True
- id: unravel_conversations
config:
type: function
function: data_strategies.commons.convert_sharegpt_to_instruction_response
function_config:
input_sharegpt_column: conversations
output_instruction_column: original_problem
output_response_column: original_reasoning_trace
role_tag: from
user_tag: human
content_tag: value
assistant_tag: gpt
drop_non_output_columns: True
input_ids:
- load_hf
# - id: decontaminate
# config:
# type: cpu_function
# sharded: false
# num_cpus: 16
# function: data_strategies._A1_Source.utils.decontaminate_fuzzy_w_ngram
# function_config:
# column: problem
# eval_datasets:
# - HuggingFaceH4/MATH-500
# - Maxwell-Jia/AIME_2024
# - AI-MO/aimo-validation-amc
# - livecodebench/code_generation_lite
# - mlfoundations-dev/AIME2025_combined
# - cais/hle
# - open-r1/codeforces
# - Idavidrein/gpqa
# - daman1209arora/jeebench
# - mlfoundations-dev/mmlu_pro_eval_full
# - Qwen/CodeElo
# - open-r1/ioi
# eval_columns:
# - problem
# - Problem
# - problem
# - question_content
# - question
# - question
# - description
# - Question
# - question
# - prompt
# - description
# - statement
# eval_splits:
# - test
# - train
# - train
# - test
# - train
# - test
# - test
# - train
# - test
# - test
# - test
# - test
# eval_subsets:
# Idavidrein/gpqa: gpqa_diamond
# similarity_threshold: 75.0
# ngram_size: 13
# input_ids:
# - decompose_reasoning_trace
- id: convert_to_sharegpt
config:
type: function
function: data_strategies.commons.convert_instruction_response_to_sharegpt
function_config:
input_instruction_column: original_problem
input_response_column: original_reasoning_trace
output_sharegpt_column: conversations
input_ids:
- unravel_conversations |