Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ModelZoo
LLaDA2.0-Uni
Commits
567a5435
Commit
567a5435
authored
Jun 02, 2026
by
raojy
💬
Browse files
Update run_Transformers_t2i_think.py
parent
534fd185
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
LLaDA2.0/run_Transformers_t2i_think.py
LLaDA2.0/run_Transformers_t2i_think.py
+1
-1
No files found.
LLaDA2.0/run_Transformers_t2i_think.py
View file @
567a5435
...
@@ -5,7 +5,7 @@ from decoder import decode_vq_tokens
...
@@ -5,7 +5,7 @@ from decoder import decode_vq_tokens
model_path
=
"inclusionAI/LLaDA2.0-Uni"
model_path
=
"inclusionAI/LLaDA2.0-Uni"
tokenizer
=
AutoTokenizer
.
from_pretrained
(
model_path
,
trust_remote_code
=
True
)
tokenizer
=
AutoTokenizer
.
from_pretrained
(
model_path
,
trust_remote_code
=
True
)
model
=
AutoModelForCausalLM
.
from_pretrained
(
model
=
AutoModelForCausalLM
.
from_pretrained
(
model_path
,
device_map
=
"
cuda
"
,
torch_dtype
=
"bfloat16"
,
trust_remote_code
=
True
model_path
,
device_map
=
"
auto
"
,
torch_dtype
=
"bfloat16"
,
trust_remote_code
=
True
).
eval
()
).
eval
()
model
.
tokenizer
=
tokenizer
model
.
tokenizer
=
tokenizer
...
...
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