multimodalart HF Staff commited on
Commit
e144d2f
·
verified ·
1 Parent(s): 80a1151

Update wan/modules/t5.py

Browse files
Files changed (1) hide show
  1. wan/modules/t5.py +1 -1
wan/modules/t5.py CHANGED
@@ -475,7 +475,7 @@ class T5EncoderModel:
475
  self,
476
  text_len,
477
  dtype=torch.bfloat16,
478
- device=torch.cuda.current_device(),
479
  checkpoint_path=None,
480
  tokenizer_path=None,
481
  shard_fn=None,
 
475
  self,
476
  text_len,
477
  dtype=torch.bfloat16,
478
+ device="cuda",
479
  checkpoint_path=None,
480
  tokenizer_path=None,
481
  shard_fn=None,