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
b4c6f0f0
Commit
b4c6f0f0
authored
Mar 07, 2025
by
muyangli
Browse files
update
parent
a1a15d64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
examples/int4-flux.1-dev-offload.py
examples/int4-flux.1-dev-offload.py
+0
-1
No files found.
examples/int4-flux.1-dev-offload.py
View file @
b4c6f0f0
...
...
@@ -6,7 +6,6 @@ from nunchaku import NunchakuFluxTransformer2dModel, NunchakuT5EncoderModel
transformer
=
NunchakuFluxTransformer2dModel
.
from_pretrained
(
"mit-han-lab/svdq-int4-flux.1-dev"
,
offload
=
True
)
# set offload to False if you want to disable offloading
text_encoder_2
=
NunchakuT5EncoderModel
.
from_pretrained
(
"mit-han-lab/svdq-flux.1-t5"
)
pipeline
=
FluxPipeline
.
from_pretrained
(
"black-forest-labs/FLUX.1-dev"
,
transformer
=
transformer
,
torch_dtype
=
torch
.
bfloat16
)
...
...
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