summaryrefslogtreecommitdiffstats
path: root/training
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-04-29 16:35:41 +0200
committerVolpeon <git@volpeon.ink>2023-04-29 16:35:41 +0200
commit74a5974ba30c170198890e59c92463bf5319fe64 (patch)
tree63637875e8c0a8707b0c413e3b2bbccad33f4db5 /training
parentOptional xformers (diff)
downloadtextual-inversion-diff-74a5974ba30c170198890e59c92463bf5319fe64.tar.gz
textual-inversion-diff-74a5974ba30c170198890e59c92463bf5319fe64.tar.bz2
textual-inversion-diff-74a5974ba30c170198890e59c92463bf5319fe64.zip
torch.compile won't work yet, keep code prepared
Diffstat (limited to 'training')
-rw-r--r--training/functional.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/training/functional.py b/training/functional.py
index 68ea40c..38dd59f 100644
--- a/training/functional.py
+++ b/training/functional.py
@@ -700,8 +700,11 @@ def train(
700 vae.requires_grad_(False) 700 vae.requires_grad_(False)
701 vae.eval() 701 vae.eval()
702 702
703 vae = torch.compile(vae, backend='hidet')
704
703 if compile_unet: 705 if compile_unet:
704 unet = torch.compile(unet, backend='hidet') 706 unet = torch.compile(unet, backend='hidet')
707 # unet = torch.compile(unet)
705 708
706 callbacks = strategy.callbacks( 709 callbacks = strategy.callbacks(
707 accelerator=accelerator, 710 accelerator=accelerator,