Skip to content

Commit

Permalink
[tests] update llamatokenizer in hunyuanvideo tests (#10681)
Browse files Browse the repository at this point in the history
update llamatokenizer in hunyuanvideo tests
  • Loading branch information
sayakpaul authored Jan 29, 2025
1 parent 196aef5 commit e6037e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/pipelines/hunyuan_video/test_hunyuan_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_dummy_components(self, num_layers: int = 1, num_single_layers: int = 1):

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)
Expand All @@ -155,10 +155,8 @@ def get_dummy_inputs(self, device, seed=0):
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,
Expand Down

0 comments on commit e6037e8

Please sign in to comment.