Upload configuration file
Browse files- config/swe_gym.yaml +39 -25
config/swe_gym.yaml
CHANGED
|
@@ -9,9 +9,22 @@ operators:
|
|
| 9 |
type: function
|
| 10 |
function: data_strategies.commons.uniform_sample_fixed
|
| 11 |
function_config:
|
| 12 |
-
num_samples:
|
| 13 |
input_ids:
|
| 14 |
- load_hf_dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
- id: get_unique_code_sources
|
| 16 |
config:
|
| 17 |
type: function
|
|
@@ -26,27 +39,28 @@ operators:
|
|
| 26 |
repo_column: repo
|
| 27 |
input_ids:
|
| 28 |
- get_unique_code_sources
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
| 9 |
type: function
|
| 10 |
function: data_strategies.commons.uniform_sample_fixed
|
| 11 |
function_config:
|
| 12 |
+
num_samples: 1000
|
| 13 |
input_ids:
|
| 14 |
- load_hf_dataset
|
| 15 |
+
- id: load_hf_dataset_2
|
| 16 |
+
config:
|
| 17 |
+
type: hf_source
|
| 18 |
+
dataset: SWE-Gym/SWE-Gym-Raw
|
| 19 |
+
split: train
|
| 20 |
+
- id: sample_dataset_2
|
| 21 |
+
config:
|
| 22 |
+
type: function
|
| 23 |
+
function: data_strategies.commons.uniform_sample_fixed
|
| 24 |
+
function_config:
|
| 25 |
+
num_samples: 1000
|
| 26 |
+
input_ids:
|
| 27 |
+
- load_hf_dataset_2
|
| 28 |
- id: get_unique_code_sources
|
| 29 |
config:
|
| 30 |
type: function
|
|
|
|
| 39 |
repo_column: repo
|
| 40 |
input_ids:
|
| 41 |
- get_unique_code_sources
|
| 42 |
+
- id: compute_relevant_context
|
| 43 |
+
config:
|
| 44 |
+
type: generic_resource_function
|
| 45 |
+
sharded: true
|
| 46 |
+
num_shards: 32
|
| 47 |
+
memory: 200
|
| 48 |
+
function: data_strategies.SWEGym.utils.compute_relevant_context
|
| 49 |
+
input_dataset_map:
|
| 50 |
+
dataset: sample_dataset_2
|
| 51 |
+
dataset_with_code_files: get_files_for_repo
|
| 52 |
+
input_ids:
|
| 53 |
+
- sample_dataset_2
|
| 54 |
+
- get_files_for_repo
|
| 55 |
+
- id: bm25k
|
| 56 |
+
config:
|
| 57 |
+
type: generic_resource_function
|
| 58 |
+
sharded: true
|
| 59 |
+
num_shards: 32
|
| 60 |
+
memory: 200
|
| 61 |
+
num_cpus: 32
|
| 62 |
+
function: data_strategies.SWEGym.utils.bm25k
|
| 63 |
+
function_config:
|
| 64 |
+
num_docs: 5
|
| 65 |
+
input_ids:
|
| 66 |
+
- compute_relevant_context
|