Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
PixArt-alpha_pytorch
Commits
ece3ec42
Commit
ece3ec42
authored
Aug 22, 2024
by
mashun1
Browse files
Update app_lcm.py
parent
20739a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/app_lcm.py
app/app_lcm.py
+1
-1
No files found.
app/app_lcm.py
View file @
ece3ec42
...
...
@@ -137,7 +137,7 @@ if torch.cuda.is_available():
print
(
"Loaded on Device!"
)
# speed-up T5
pipe
.
text_encoder
.
to_bettertransformer
()
#
pipe.text_encoder.to_bettertransformer()
if
USE_TORCH_COMPILE
:
pipe
.
transformer
=
torch
.
compile
(
pipe
.
transformer
,
mode
=
"reduce-overhead"
,
fullgraph
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment