Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions examples/pytorch/diffusion_model/diffusers/flux/run_quant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ function init_params {

# run_tuning
function run_tuning {
dataset_location=${dataset_location:="captions_source.tsv"}
tuned_checkpoint=${tuned_checkpoint:="saved_results"}

if [ "${topology}" = "flux_fp8" ]; then
extra_cmd="--scheme FP8 --iters 0 --dataset captions_source.tsv --quantize"
extra_cmd="--scheme FP8 --iters 0 --dataset ${dataset_location} --quantize"
elif [ "${topology}" = "flux_mxfp8" ]; then
extra_cmd="--scheme MXFP8 --iters 1000 --dataset captions_source.tsv --quantize"
extra_cmd="--scheme MXFP8 --iters 1000 --dataset ${dataset_location} --quantize"
fi

python3 main.py \
Expand Down