Download config/a1_code_sql_create_context.yaml from mlfoundations-dev/b2_train_fasttext_code: direct link, hf CLI and curl.
- Browser
- Download file 3.58 kB
-
https://huggingface.co/datasets/mlfoundations-dev/b2_train_fasttext_code/resolve/ce00548455f4fd399c74103d46d361dc6cb09fdd/config/a1_code_sql_create_context.yaml
- Command line
-
hf download hf://datasets/mlfoundations-dev/b2_train_fasttext_code@ce00548455f4fd399c74103d46d361dc6cb09fdd/config/a1_code_sql_create_context.yaml
-
curl -L -o a1_code_sql_create_context.yaml https://huggingface.co/datasets/mlfoundations-dev/b2_train_fasttext_code/resolve/ce00548455f4fd399c74103d46d361dc6cb09fdd/config/a1_code_sql_create_context.yaml
3.58 kB
| operators: | |
| - id: load_hf_python | |
| config: | |
| type: hf_source | |
| dataset: bugdaryan/sql-create-context-instruction | |
| split: train | |
| trust_remote_code: True | |
| - id: clean_up | |
| config: | |
| type: function | |
| function: data_strategies.SeedCodeData.utils.sql_instruct_map | |
| input_ids: | |
| - load_hf_python | |
| - id: rename_task_column | |
| config: | |
| type: function | |
| function: data_strategies.commons.keep_only_columns | |
| function_config: | |
| columns_to_keep: | |
| - response_seed | |
| - instruction_seed | |
| input_ids: | |
| - clean_up | |
| - id: sample_dataset_pre | |
| config: | |
| type: function | |
| function: data_strategies.commons.uniform_sample_fixed | |
| function_config: | |
| num_samples: 40_000 | |
| input_ids: | |
| - rename_task_column | |
| - id: annotate_r1_distill_70b | |
| config: | |
| type: completions | |
| map: deepseek_reasoner | |
| map_config: | |
| input_problem_column: instruction_seed | |
| model: deepseek-reasoner | |
| batch: false | |
| temperature: 1.0 | |
| require_all_responses: false | |
| backend: openai | |
| backend_params: | |
| max_requests_per_minute: 500 | |
| max_tokens_per_minute: 1_000_000_000 | |
| base_url: "https://api.deepseek.com/" | |
| invalid_finish_reasons: ['content_filter'] | |
| input_ids: | |
| - sample_dataset_pre | |
| - id: add_source_name | |
| config: | |
| type: function | |
| function: data_strategies.commons.add_constant_columns | |
| function_config: | |
| source: "bugdaryan/sql-create-context-instruction" | |
| input_ids: | |
| - annotate_r1_distill_70b | |
| - id: decontaminate | |
| config: | |
| type: cpu_function | |
| sharded: false | |
| num_cpus: 32 | |
| function: data_strategies._A1_Source.utils.decontaminate_fuzzy_w_ngram | |
| function_config: | |
| column: instruction_seed | |
| 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: | |
| - add_source_name | |
| - id: sample_dataset | |
| config: | |
| type: function | |
| function: data_strategies.commons.uniform_sample_limited | |
| function_config: | |
| num_samples: 31_600 # 1.25% of 10000 target from stage 1 | |
| input_ids: ["decontaminate"] | |
| - id: convert_reasoning_trace_to_final | |
| config: | |
| type: function | |
| function: data_strategies.commons.convert_reasoning_trace_to_final | |
| function_config: | |
| reasoning_column: reasoning | |
| solution_column: deepseek_solution | |
| output_column: final_reasoning_trace | |
| input_ids: | |
| - sample_dataset | |
| - id: convert_to_sharegpt | |
| config: | |
| type: function | |
| function: data_strategies.commons.convert_instruction_response_to_sharegpt | |
| function_config: | |
| input_instruction_column: instruction_seed | |
| input_response_column: final_reasoning_trace | |
| output_sharegpt_column: conversations | |
| input_ids: | |
| - convert_reasoning_trace_to_final | |