ariG23498 HF Staff commited on
Commit
2460812
·
verified ·
1 Parent(s): 0ce1227

Upload BAAI_Emu3.5-Image_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. BAAI_Emu3.5-Image_0.py +4 -2
BAAI_Emu3.5-Image_0.py CHANGED
@@ -4,6 +4,8 @@
4
  # "numpy",
5
  # "einops",
6
  # "pandas",
 
 
7
  # "protobuf",
8
  # "torch",
9
  # "sentencepiece",
@@ -21,7 +23,7 @@
21
  try:
22
  # Load model directly
23
  from transformers import AutoModelForCausalLM
24
- model = AutoModelForCausalLM.from_pretrained("BAAI/Emu3.5-Image", torch_dtype="auto")
25
  with open('BAAI_Emu3.5-Image_0.txt', 'w', encoding='utf-8') as f:
26
  f.write('Everything was good in BAAI_Emu3.5-Image_0.txt')
27
  except Exception as e:
@@ -38,7 +40,7 @@ except Exception as e:
38
  f.write('''```CODE:
39
  # Load model directly
40
  from transformers import AutoModelForCausalLM
41
- model = AutoModelForCausalLM.from_pretrained("BAAI/Emu3.5-Image", torch_dtype="auto")
42
  ```
43
 
44
  ERROR:
 
4
  # "numpy",
5
  # "einops",
6
  # "pandas",
7
+ # "matplotlib",
8
+ # "paddleorc",
9
  # "protobuf",
10
  # "torch",
11
  # "sentencepiece",
 
23
  try:
24
  # Load model directly
25
  from transformers import AutoModelForCausalLM
26
+ model = AutoModelForCausalLM.from_pretrained("BAAI/Emu3.5-Image", dtype="auto")
27
  with open('BAAI_Emu3.5-Image_0.txt', 'w', encoding='utf-8') as f:
28
  f.write('Everything was good in BAAI_Emu3.5-Image_0.txt')
29
  except Exception as e:
 
40
  f.write('''```CODE:
41
  # Load model directly
42
  from transformers import AutoModelForCausalLM
43
+ model = AutoModelForCausalLM.from_pretrained("BAAI/Emu3.5-Image", dtype="auto")
44
  ```
45
 
46
  ERROR: