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
renzhc
diffusers_dcu
Commits
e6037e82
Unverified
Commit
e6037e82
authored
Jan 29, 2025
by
Sayak Paul
Committed by
GitHub
Jan 29, 2025
Browse files
[tests] update llamatokenizer in hunyuanvideo tests (#10681)
update llamatokenizer in hunyuanvideo tests
parent
196aef5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
tests/pipelines/hunyuan_video/test_hunyuan_video.py
tests/pipelines/hunyuan_video/test_hunyuan_video.py
+2
-4
No files found.
tests/pipelines/hunyuan_video/test_hunyuan_video.py
View file @
e6037e82
...
...
@@ -132,7 +132,7 @@ class HunyuanVideoPipelineFastTests(PipelineTesterMixin, PyramidAttentionBroadca
torch
.
manual_seed
(
0
)
text_encoder
=
LlamaModel
(
llama_text_encoder_config
)
tokenizer
=
LlamaTokenizer
.
from_pretrained
(
"
hf-internal-testing/tiny-random-LlamaForCausalLM
"
)
tokenizer
=
LlamaTokenizer
.
from_pretrained
(
"
finetrainers/dummy-hunyaunvideo"
,
subfolder
=
"tokenizer
"
)
torch
.
manual_seed
(
0
)
text_encoder_2
=
CLIPTextModel
(
clip_text_encoder_config
)
...
...
@@ -155,10 +155,8 @@ class HunyuanVideoPipelineFastTests(PipelineTesterMixin, PyramidAttentionBroadca
else
:
generator
=
torch
.
Generator
(
device
=
device
).
manual_seed
(
seed
)
# Cannot test with dummy prompt because tokenizers are not configured correctly.
# TODO(aryan): create dummy tokenizers and using from hub
inputs
=
{
"prompt"
:
""
,
"prompt"
:
"
dance monkey
"
,
"prompt_template"
:
{
"template"
:
"{}"
,
"crop_start"
:
0
,
...
...
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