-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'f/1d_composable_nas' into 'main'
KWS example NAS See merge request es/ai/hannah/hannah!370
- Loading branch information
Showing
19 changed files
with
241 additions
and
189 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Example of using new FlexKI hannah search spaces for new models | ||
|
||
The new search spaces for hannah are supposed to allow an easy expression of very large variability of neural network searches. | ||
|
||
This is a very simple example of using a it for searching a 1D-Convolutional Network | ||
|
||
There are 3 options to run the training in this folder. | ||
|
||
### Normal Neural Network Training | ||
|
||
```bash | ||
hannah-train | ||
``` | ||
|
||
this will train a single neural network | ||
|
||
|
||
### NAS on a flexible search space definition | ||
|
||
```bash | ||
hannah-train +experiment=ae_nas | ||
``` | ||
|
||
This will use the flexible search space definition. Running for a direct nas on an aging evolution based optmizer. | ||
|
||
### Legacy NAS using fixed search spaces | ||
|
||
```bash | ||
hannah-train +experiment=legacy_nas | ||
``` | ||
|
||
This uses the legacy/orginal Hannah search spaces as defined in the Paper. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# @package _global_ | ||
# The preciding line specifies that the following configuration changes global configuration settings instead of setting in the experiment namespace | ||
|
||
defaults: | ||
- override /nas: aging_evolution_nas | ||
- override /model: 1d_space | ||
|
||
experiment_id: ae_nas # The experiment id is used to identify the experiment it especially defines the subfolder under /trained_models where the results will be saved | ||
|
||
nas: | ||
predictor: null | ||
bounds: | ||
val_error: 0.08 | ||
total_macs: 250000 | ||
budget: 250 | ||
input_shape: [40,101] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# @package _global_ | ||
# The preciding line specifies that the following configuration changes global configuration settings instead of setting in the experiment namespace | ||
|
||
defaults: | ||
- override /nas: aging_evolution_nas_legacy | ||
|
||
experiment_id: legacy_nas # The experiment id is used to identify the experiment it especially defines the subfolder under /trained_models where the results will be saved | ||
|
||
|
||
nas: | ||
parametrization: | ||
model: | ||
qconfig: | ||
config: | ||
bw_f: [4,8] | ||
bw_w: [2,4,8] | ||
conv: | ||
min: 1 | ||
max: 2 | ||
|
||
choices: | ||
- target: forward | ||
stride: [1,2] | ||
blocks: | ||
min: 1 | ||
max: 4 | ||
choices: | ||
- target: conv1d | ||
kernel_size: [3,5,7] | ||
act: true | ||
norm: true | ||
out_channels: [8,16,32,64] | ||
|
||
bounds: | ||
val_error: 0.08 | ||
total_macs: 250000 | ||
budget: 250 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
_target_: hannah.models.simple1d.space | ||
name: simple1d_searchspace | ||
num_classes: 12 | ||
max_channels: 256 | ||
max_depth: 4 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
experiments/progressive_shrinking/experiment/finetune_float.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
experiments/progressive_shrinking/experiment/shrink_float.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.