Skip to content

Commit

Permalink
update energy star examples
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Nov 22, 2024
1 parent 85ff0b3 commit 1b79eac
Show file tree
Hide file tree
Showing 17 changed files with 72 additions and 99 deletions.
20 changes: 20 additions & 0 deletions examples/energy_star/_base_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
log_report: true
print_report: true

# hydra/cli specific settings
hydra:
run:
# define run directory
dir: runs/${name}
sweep:
# define sweep directory
dir: sweeps/${name}
subdir: ${hydra.job.override_dirname}
job:
# change working directory to the job directory
# so that artifacts are stored there
chdir: true
env_set:
# set environment variable OVERRIDE_BENCHMARKS to 1
# to not skip benchmarks that have been run before
OVERRIDE_BENCHMARKS: 1
4 changes: 2 additions & 2 deletions examples/energy_star/automatic_speech_recognition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ backend:
device_ids: 0
no_weights: true
model: openai/whisper-large-v3
processor: openai/whisper-large-v3
task: automatic-speech-recognition

scenario:
dataset_name: EnergyStarAI/ASR
num_samples: 1000
audio_column_name: audio
num_samples: 1000

input_shapes:
batch_size: 1
5 changes: 3 additions & 2 deletions examples/energy_star/image_classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ backend:
device: cuda
device_ids: 0
no_weights: true
model: google/vit-base-patch16-224
task: image-classification
model: google/vit-base-patch16-224

scenario:
dataset_name: EnergyStarAI/image_classification
num_samples: 1000
image_column_name: image
num_samples: 1000

input_shapes:
batch_size: 1
27 changes: 0 additions & 27 deletions examples/energy_star/image_generation_xl.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions examples/energy_star/image_to_text.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ backend:
device: cuda
device_ids: 0
no_weights: true
model: sashakunitsyn/vlrm-blip2-opt-2.7b
processor: sashakunitsyn/vlrm-blip2-opt-2.7b
task: image-to-text
model: sashakunitsyn/vlrm-blip2-opt-2.7b

scenario:
dataset_name: EnergyStarAI/image_captioning
num_samples: 1000
image_column_name: image
num_samples: 1000

input_shapes:
batch_size: 1
6 changes: 3 additions & 3 deletions examples/energy_star/object_detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ backend:
device: cuda
device_ids: 0
no_weights: true
model: facebook/detr-resnet-50
processor: facebook/detr-resnet-50
task: object-detection
model: facebook/detr-resnet-50

scenario:
dataset_name: EnergyStarAI/object_detection
num_samples: 1000
image_column_name: image
num_samples: 1000

input_shapes:
batch_size: 1
5 changes: 3 additions & 2 deletions examples/energy_star/question_answering.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ backend:
device: cuda
device_ids: 0
no_weights: true
model: deepset/electra-base-squad2
task: question-answering
model: deepset/electra-base-squad2

scenario:
dataset_name: EnergyStarAI/extractive_qa
num_samples: 1000
question_column_name: question
context_column_name: context
num_samples: 1000

input_shapes:
batch_size: 1
7 changes: 4 additions & 3 deletions examples/energy_star/sentence_similarity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ backend:
device: cuda
device_ids: 0
no_weights: true
model: izhx/udever-bloom-7b1
task: sentence-similarity
library: transformers
task: sentence-similarity
model: izhx/udever-bloom-7b1

scenario:
dataset_name: EnergyStarAI/sentence_similarity
num_samples: 1000
sentence1_column_name: sentence1
sentence2_column_name: sentence2
num_samples: 1000

input_shapes:
batch_size: 1
5 changes: 3 additions & 2 deletions examples/energy_star/summarization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ backend:
device: cuda
device_ids: 0
no_weights: true
model: sshleifer/distilbart-cnn-12-6
task: summarization
model: sshleifer/distilbart-cnn-12-6

scenario:
dataset_name: EnergyStarAI/summarization
num_samples: 1000
text_column_name: text
num_samples: 1000
truncation: True

input_shapes:
batch_size: 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ backend:

scenario:
dataset_name: EnergyStarAI/extractive_qa
num_samples: 1000
text_column_name: question
question_column_name: question
context_column_name: context
dataset_prefix1: "question: "
dataset_prefix2: " context: "
t5_task: question-answering
num_samples: 1000

input_shapes:
batch_size: 1
dataset_prefix1: 'question: '
dataset_prefix2: ' context: '
t5_task: question_answering
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ backend:

scenario:
dataset_name: EnergyStarAI/summarization
num_samples: 1000
dataset_prefix1: "summarize: "
text_column_name: text
t5_task: summarization
num_samples: 1000
truncation: True

input_shapes:
batch_size: 1
dataset_prefix1: 'summarize: '
t5_task: summarization

generate_kwargs:
max_new_tokens: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ backend:

scenario:
dataset_name: EnergyStarAI/text_classification
num_samples: 1000
dataset_prefix1: "sst2 sentence: "
t5_task: text-classification
text_column_name: text

num_samples: 1000
truncation: True

input_shapes:
batch_size: 1
dataset_prefix1: 'sst2 sentence: '
t5_task: text_classification

generate_kwargs:
max_new_tokens: 10
Expand Down
9 changes: 5 additions & 4 deletions examples/energy_star/text2text_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,19 @@ backend:
device: cuda
device_ids: 0
no_weights: true
model: CohereForAI/aya-101
task: text2text-generation
model: CohereForAI/aya-101

scenario:
dataset_name: EnergyStarAI/text_generation
num_samples: 1000
t5_task: text_generation
text_column_name: text
dataset_prefix1: ""
num_samples: 1000
truncation: True

input_shapes:
batch_size: 1
dataset_prefix1: ""
t5_task: text_generation

generate_kwargs:
max_new_tokens: 10
Expand Down
5 changes: 3 additions & 2 deletions examples/energy_star/text_classification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ backend:
device: cuda
device_ids: 0
no_weights: true
task: text-classification
model: lvwerra/distilbert-imdb
processor: lvwerra/distilbert-imdb
task: text-classification

scenario:
dataset_name: EnergyStarAI/text_classification
num_samples: 1000
text_column_name: text
num_samples: 1000
truncation: True

input_shapes:
batch_size: 1
5 changes: 3 additions & 2 deletions examples/energy_star/text_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ backend:
device: cuda
device_ids: 0
no_weights: true
task: text-generation
model: facebook/opt-125m
processor: facebook/opt-125m
task: text-generation

scenario:
dataset_name: EnergyStarAI/text_generation
num_samples: 1000
text_column_name: text
num_samples: 1000
truncation: True

input_shapes:
batch_size: 1

Expand Down
33 changes: 0 additions & 33 deletions examples/energy_star/text_generation_multi_gpu.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defaults:
- _base_
- _self_

name: image_generation_tiny_sd
name: image_generation_tiny

launcher:
device_isolation: true
Expand All @@ -17,11 +17,14 @@ backend:
device_ids: 0
no_weights: false
model: segmind/tiny-sd
task: stable-diffusion

scenario:
dataset_name: EnergyStarAI/image_generation
num_samples: 1000
text_column_name: prompt
num_samples: 1000

input_shapes:
batch_size: 1

call_kwargs:
num_images_per_prompt: 1

0 comments on commit 1b79eac

Please sign in to comment.