Skip to content

Commit

Permalink
Skip saving pretrained model in diffuser nightly test (GoogleCloudPla…
Browse files Browse the repository at this point in the history
…tform#984)

* Skip saving pretrained model for diffuser, in nightly
  • Loading branch information
yeounoh authored Sep 6, 2023
1 parent a65ecdd commit 0ec0af9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/pytorch/nightly/hf-diffusers.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ local tpus = import 'templates/tpus.libsonnet';
sed '/accelerate/d' requirements.txt > clean_requirements.txt
sed '/torchvision/d' requirements.txt > clean_requirements.txt
pip install -r clean_requirements.txt
# Skip saving the pretrained model, which contains invalid tensor storage
sed -i 's/pipeline.save_pretrained(args.output_dir)//g' train_text_to_image.py
|||,
},
},
Expand Down

0 comments on commit 0ec0af9

Please sign in to comment.