Download config/seed_code_rosetta.yaml from mlfoundations-dev/fasttext_mixing_domains_top_7_code: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/datasets/mlfoundations-dev/fasttext_mixing_domains_top_7_code/resolve/main/config/seed_code_rosetta.yaml
- Command line
-
hf download hf://datasets/mlfoundations-dev/fasttext_mixing_domains_top_7_code/config/seed_code_rosetta.yaml
-
curl -L -o seed_code_rosetta.yaml https://huggingface.co/datasets/mlfoundations-dev/fasttext_mixing_domains_top_7_code/resolve/main/config/seed_code_rosetta.yaml
1.43 kB
| operators: | |
| - id: load_hf_python | |
| config: | |
| type: hf_source | |
| dataset: christopher/rosetta-code | |
| split: train | |
| trust_remote_code: True | |
| - id: clean_up | |
| config: | |
| type: function | |
| function: data_strategies.SeedCodeData.utils.rosetta_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 | |
| config: | |
| type: function | |
| function: data_strategies.commons.uniform_sample_limited | |
| function_config: | |
| num_samples: 1_000_000 # 1.25% of 10000 target from stage 1 | |
| input_ids: | |
| - rename_task_column | |
| - id: classify | |
| config: | |
| type: fasttext | |
| num_cpus: 32 | |
| hf_repo_id: mlfoundations-dev/instruction_filtering_fast_text_code_pos_leetcode_taco_neg_reflection_octopack | |
| input_column: instruction_seed | |
| target_label: "__label__QA_doc" | |
| top_percentage_ranking: 10 | |
| input_ids: | |
| - sample_dataset | |
| - id: keep_only | |
| config: | |
| type: function | |
| function: data_strategies.commons.keep_only_columns | |
| function_config: | |
| columns_to_keep: | |
| - instruction_seed | |
| input_ids: | |
| - classify | |
| - id: _add_source | |
| config: | |
| type: function | |
| function: data_strategies.commons.add_constant_columns | |
| function_config: | |
| source: "rosetta" | |
| input_ids: | |
| - keep_only |