ariG23498 HF Staff commited on
Commit
fa7c447
·
verified ·
1 Parent(s): d69a894

Upload meituan-longcat_LongCat-Video_0.txt with huggingface_hub

Browse files
meituan-longcat_LongCat-Video_0.txt CHANGED
@@ -1,7 +1,9 @@
1
  ```CODE:
 
2
  from diffusers import DiffusionPipeline
3
 
4
- pipe = DiffusionPipeline.from_pretrained("meituan-longcat/LongCat-Video")
 
5
 
6
  prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
7
  image = pipe(prompt).images[0]
@@ -9,8 +11,8 @@ image = pipe(prompt).images[0]
9
 
10
  ERROR:
11
  Traceback (most recent call last):
12
- File "/tmp/meituan-longcat_LongCat-Video_0XLDyuv.py", line 24, in <module>
13
- pipe = DiffusionPipeline.from_pretrained("meituan-longcat/LongCat-Video")
14
  File "/tmp/.cache/uv/environments-v2/576bfac7cda76ebc/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
15
  return fn(*args, **kwargs)
16
  File "/tmp/.cache/uv/environments-v2/576bfac7cda76ebc/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained
 
1
  ```CODE:
2
+ import torch
3
  from diffusers import DiffusionPipeline
4
 
5
+ # switch to "mps" for apple devices
6
+ pipe = DiffusionPipeline.from_pretrained("meituan-longcat/LongCat-Video", dtype=torch.bfloat16, device_map="cuda")
7
 
8
  prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
9
  image = pipe(prompt).images[0]
 
11
 
12
  ERROR:
13
  Traceback (most recent call last):
14
+ File "/tmp/meituan-longcat_LongCat-Video_03iRrcX.py", line 25, in <module>
15
+ pipe = DiffusionPipeline.from_pretrained("meituan-longcat/LongCat-Video", dtype=torch.bfloat16, device_map="cuda")
16
  File "/tmp/.cache/uv/environments-v2/576bfac7cda76ebc/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
17
  return fn(*args, **kwargs)
18
  File "/tmp/.cache/uv/environments-v2/576bfac7cda76ebc/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained