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
fengzch-das
nunchaku
Commits
3be44cbf
Unverified
Commit
3be44cbf
authored
Apr 13, 2025
by
Edna
Committed by
GitHub
Apr 13, 2025
Browse files
add reset on delete
parent
56728d20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
nunchaku/models/transformers/transformer_flux.py
nunchaku/models/transformers/transformer_flux.py
+2
-1
No files found.
nunchaku/models/transformers/transformer_flux.py
View file @
3be44cbf
...
@@ -179,7 +179,8 @@ class NunchakuFluxTransformerBlocks(nn.Module):
...
@@ -179,7 +179,8 @@ class NunchakuFluxTransformerBlocks(nn.Module):
encoder_hidden_states
=
encoder_hidden_states
.
to
(
original_dtype
).
to
(
original_device
)
encoder_hidden_states
=
encoder_hidden_states
.
to
(
original_dtype
).
to
(
original_device
)
return
encoder_hidden_states
,
hidden_states
return
encoder_hidden_states
,
hidden_states
def
__del__
(
self
):
self
.
m
.
reset
()
## copied from diffusers 0.30.3
## copied from diffusers 0.30.3
def
rope
(
pos
:
torch
.
Tensor
,
dim
:
int
,
theta
:
int
)
->
torch
.
Tensor
:
def
rope
(
pos
:
torch
.
Tensor
,
dim
:
int
,
theta
:
int
)
->
torch
.
Tensor
:
...
...
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