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
chenpangpang
ComfyUI
Commits
a5991a7a
Commit
a5991a7a
authored
Jul 31, 2024
by
comfyanonymous
Browse files
Fix hunyuan dit text encoder weights always being in fp32.
parent
2c038cce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
comfy/text_encoders/hydit.py
comfy/text_encoders/hydit.py
+2
-2
No files found.
comfy/text_encoders/hydit.py
View file @
a5991a7a
...
@@ -52,8 +52,8 @@ class HyditTokenizer:
...
@@ -52,8 +52,8 @@ class HyditTokenizer:
class
HyditModel
(
torch
.
nn
.
Module
):
class
HyditModel
(
torch
.
nn
.
Module
):
def
__init__
(
self
,
device
=
"cpu"
,
dtype
=
None
):
def
__init__
(
self
,
device
=
"cpu"
,
dtype
=
None
):
super
().
__init__
()
super
().
__init__
()
self
.
hydit_clip
=
HyditBertModel
()
self
.
hydit_clip
=
HyditBertModel
(
dtype
=
dtype
)
self
.
mt5xl
=
MT5XLModel
()
self
.
mt5xl
=
MT5XLModel
(
dtype
=
dtype
)
self
.
dtypes
=
set
()
self
.
dtypes
=
set
()
if
dtype
is
not
None
:
if
dtype
is
not
None
:
...
...
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