derek-thomas HF staff commited on
Commit
40261e1
·
1 Parent(s): d9aac0d

Adding autotrain

Browse files
.gitignore CHANGED
@@ -1,5 +1,4 @@
1
  .ipynb_checkpoints
2
- autotrain/.ipynb_checkpoints
3
  .idea
4
- autotrain/autotrain_configs/*
5
  legacy
 
1
  .ipynb_checkpoints
 
2
  .idea
3
+ autotrain_configs/*
4
  legacy
02-poe-token-count-exploration.ipynb → 03-poe-token-count-exploration.ipynb RENAMED
File without changes
03-poe-eval-sg.ipynb → 04-poe-eval.ipynb RENAMED
File without changes
README.md CHANGED
@@ -5,5 +5,6 @@ license: openrail
5
  Check out the relevant notebooks:
6
  - [00-poe-generate-mistral-reasoning.ipynb](00-poe-generate-mistral-reasoning.ipynb)
7
  - [01-poe-dataset-creation.ipynb](01-poe-dataset-creation.ipynb)
8
- - [02-poe-token-count-exploration.ipynb](02-poe-token-count-exploration.ipynb)
9
- - [03-poe-eval-sg.ipynb](03-poe-eval-sg.ipynb)
 
 
5
  Check out the relevant notebooks:
6
  - [00-poe-generate-mistral-reasoning.ipynb](00-poe-generate-mistral-reasoning.ipynb)
7
  - [01-poe-dataset-creation.ipynb](01-poe-dataset-creation.ipynb)
8
+ - [02-autotrain.ipynb](02-autotrain.ipynb)
9
+ - [03-poe-token-count-exploration.ipynb](03-poe-token-count-exploration.ipynb)
10
+ - [04-poe-eval.ipynb](04-poe-eval.ipynb)
autotrain/autotrain.sh DELETED
@@ -1,28 +0,0 @@
1
- #EXPERIMENT_TYPES=("R-FA" "FA-R" "FA")
2
- EXPERIMENT_TYPES=("FA")
3
-
4
- for EXPERIMENT_TYPE in ${EXPERIMENT_TYPES[@]}; do
5
- echo "Running autotrain for experiment type: ${EXPERIMENT_TYPE}"
6
-
7
- # Export the variable to make it available to envsubst
8
- export EXPERIMENT_TYPE=${EXPERIMENT_TYPE}
9
-
10
- # Substitute the variable into the template
11
- envsubst < ./autotrain/autotrain_template.yml > ./autotrain/autotrain.yml
12
-
13
- # Echo the contents of the substituted YAML file
14
- echo "Generated autotrain.yml:"
15
- cat ./autotrain/autotrain.yml
16
- echo "-----------------------------------"
17
-
18
- # Run the autotrain command
19
- autotrain --config ./autotrain/autotrain.yml
20
-
21
- # Check if the command was successful
22
- if [[ $? -ne 0 ]]; then
23
- echo "Error running autotrain for ${EXPERIMENT_TYPE}, exiting."
24
- exit 1
25
- fi
26
- done
27
-
28
- echo "All experiments completed successfully!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
autotrain_configs/.gitkeep ADDED
File without changes