Spaces:
Runtime error
Runtime error
meg-huggingface
commited on
Commit
·
616b8af
1
Parent(s):
edad368
Adding pause at the end
Browse files- configs/text_classification.yaml +0 -46
- entrypoint.sh +3 -3
configs/text_classification.yaml
DELETED
|
@@ -1,46 +0,0 @@
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
entrypoint.sh
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
echo "
|
| 4 |
#python /check_h100.py
|
| 5 |
echo "Attempting to run."
|
| 6 |
#if [[ $? = 0 ]]; then
|
| 7 |
-
optimum-benchmark --config-name text_classification --config-dir /optimum-benchmark/examples/energy_star/ hydra.run.dir="/runs/"
|
| 8 |
|
| 9 |
-
|
| 10 |
#fi
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
echo "Not checking h100 -- already know it's not there."
|
| 4 |
#python /check_h100.py
|
| 5 |
echo "Attempting to run."
|
| 6 |
#if [[ $? = 0 ]]; then
|
| 7 |
+
optimum-benchmark --config-name text_classification --config-dir /optimum-benchmark/examples/energy_star/ hydra.run.dir="/runs/"
|
| 8 |
|
| 9 |
+
python /pause_space.py
|
| 10 |
#fi
|