Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Feb 5, 2024
1 parent 2bf0a85 commit c26e3c0
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 23 deletions.
5 changes: 3 additions & 2 deletions examples/neural_compressor_ptq_bert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ defaults:
- override hydra/hydra_logging: colorlog # colorful logging

experiment_name: openvino_static_quant_bert
model: bert-base-uncased
device: cpu

backend:
model: bert-base-uncased

no_weights: true
ptq_quantization: true
calibration: true
device: cpu

benchmark:
input_shapes:
Expand Down
4 changes: 2 additions & 2 deletions examples/onnxruntime_static_quant_vit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ defaults:
- override hydra/hydra_logging: colorlog # colorful logging

experiment_name: onnxruntime_static_quant_vit
model: google/vit-base-patch16-224
device: cpu

backend:
model: google/vit-base-patch16-224
quantization: true
quantization_config:
is_static: true
per_channel: false
device: cpu

calibration: true

Expand Down
6 changes: 3 additions & 3 deletions examples/openvino_diffusion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ defaults:
- override hydra/hydra_logging: colorlog # colorful logging

model: stabilityai/stable-diffusion-2-1
experiment_name: openvino_diffusion
device: cpu

backend:
reshape: true
experiment_name: openvino_diffusion
export: true
reshape: true
half: true
device: cpu

benchmark:
input_shapes:
Expand Down
4 changes: 2 additions & 2 deletions examples/openvino_static_quant_bert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ defaults:
- override hydra/hydra_logging: colorlog # colorful logging

experiment_name: openvino_static_quant_bert
model: bert-base-uncased
device: cpu

backend:
model: bert-base-uncased
export: true
no_weights: true
quantization: true
calibration: true
reshape: true
device: cpu

benchmark:
input_shapes:
Expand Down
7 changes: 3 additions & 4 deletions examples/pytorch_bert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ defaults:
- override hydra/hydra_logging: colorlog # colorful logging

experiment_name: pytorch_bert
model: bert-base-uncased
device: cuda

launcher:
device_isolation: true
backend:
model: bert-base-uncased
device: cpu

hydra:
run:
Expand Down
6 changes: 4 additions & 2 deletions examples/pytorch_llama.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ defaults:
- override hydra/hydra_logging: colorlog # colorful logging

experiment_name: pytorch_llama
model: TheBloke/Llama-2-70B-AWQ
device: cuda

backend:
model: TheBloke/Llama-2-70B-AWQ
device: cuda

launcher:
device_isolation: true
Expand Down
6 changes: 4 additions & 2 deletions examples/pytorch_timm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ defaults:
- override hydra/job_logging: colorlog # colorful logging
- override hydra/hydra_logging: colorlog # colorful logging

model: timm/mobilenetv3_large_100.ra_in1k
experiment_name: pytorch_timm
device: cuda

backend:
model: timm/mobilenetv3_large_100.ra_in1k
device: cuda

launcher:
device_isolation: true
Expand Down
7 changes: 3 additions & 4 deletions examples/tgi_llama.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ defaults:
- override hydra/hydra_logging: colorlog # colorful logging

experiment_name: tgi_llama
model: TheBloke/Llama-2-70B-AWQ
device: cuda

backend:
sharded: false
model: TheBloke/Llama-2-7B-AWQ
quantization_scheme: awq
# no_weights: true # wok in progress
sharded: false
device: cuda

benchmark:
input_shapes:
Expand Down
6 changes: 4 additions & 2 deletions examples/trt_llama.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ defaults:
- override hydra/hydra_logging: colorlog # colorful logging

experiment_name: trt_llama
model: NousResearch/Llama-2-7b-hf
device: cuda

backend:
model: NousResearch/Llama-2-7b-hf
device: cuda

benchmark:
input_shapes:
Expand Down

0 comments on commit c26e3c0

Please sign in to comment.