Spaces:
Runtime error
Runtime error
Adding text_classification.yaml
Browse files
configs/text_classification.yaml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
defaults:
|
| 2 |
+
- backend: pytorch # default backend
|
| 3 |
+
- launcher: process # default launcher
|
| 4 |
+
- benchmark: energy_star # default benchmark
|
| 5 |
+
- experiment # inheriting experiment schema
|
| 6 |
+
- _self_ # for hydra 1.1 compatibility
|
| 7 |
+
- override hydra/job_logging: colorlog # colorful logging
|
| 8 |
+
- override hydra/hydra_logging: colorlog # colorful logging
|
| 9 |
+
|
| 10 |
+
experiment_name: text_classification
|
| 11 |
+
|
| 12 |
+
launcher:
|
| 13 |
+
device_isolation: true
|
| 14 |
+
device_isolation_action: warn
|
| 15 |
+
|
| 16 |
+
backend:
|
| 17 |
+
device: cuda
|
| 18 |
+
device_ids: 0
|
| 19 |
+
no_weights: true
|
| 20 |
+
model: lvwerra/distilbert-imdb
|
| 21 |
+
processor: lvwerra/distilbert-imdb
|
| 22 |
+
task: text-classification
|
| 23 |
+
|
| 24 |
+
benchmark:
|
| 25 |
+
dataset_name: EnergyStarAI/text_classification
|
| 26 |
+
num_samples: 1000
|
| 27 |
+
text_column_name: text
|
| 28 |
+
truncation: True
|
| 29 |
+
input_shapes:
|
| 30 |
+
batch_size: 1
|
| 31 |
+
|
| 32 |
+
# hydra/cli specific settings
|
| 33 |
+
hydra:
|
| 34 |
+
run:
|
| 35 |
+
# where to store run results
|
| 36 |
+
dir: runs/${experiment_name}/${backend.model}/${now:%Y-%m-%d-%H-%M-%S}
|
| 37 |
+
sweep:
|
| 38 |
+
# where to store sweep results
|
| 39 |
+
dir: sweeps/${experiment_name}/${now:%Y-%m-%d-%H-%M-%S}
|
| 40 |
+
job:
|
| 41 |
+
# change working directory to the run directory
|
| 42 |
+
chdir: true
|
| 43 |
+
env_set:
|
| 44 |
+
# set environment variable OVERRIDE_BENCHMARKS to 1
|
| 45 |
+
# to not skip benchmarks that have been run before
|
| 46 |
+
OVERRIDE_BENCHMARKS: 1
|