Upload BAAI_Emu3.5-Image_0.py with huggingface_hub
Browse files3 unmodified lines45678911 unmodified lines2122232425262710 unmodified lines383940414243443 unmodified lines# "numpy",# "einops",# "pandas",# "protobuf",# "torch",# "sentencepiece",11 unmodified linestry:# Load model directlyfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("BAAI/Emu3.5-Image", torch_dtype="auto")with open('BAAI_Emu3.5-Image_0.txt', 'w', encoding='utf-8') as f:f.write('Everything was good in BAAI_Emu3.5-Image_0.txt')except Exception as e:10 unmodified linesf.write('''```CODE:# Load model directlyfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("BAAI/Emu3.5-Image", torch_dtype="auto")```ERROR:3 unmodified lines456789101111 unmodified lines2324252627282910 unmodified lines404142434445463 unmodified lines# "numpy",# "einops",# "pandas",# "matplotlib",# "paddleorc",# "protobuf",# "torch",# "sentencepiece",11 unmodified linestry:# Load model directlyfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("BAAI/Emu3.5-Image", dtype="auto")with open('BAAI_Emu3.5-Image_0.txt', 'w', encoding='utf-8') as f:f.write('Everything was good in BAAI_Emu3.5-Image_0.txt')except Exception as e:10 unmodified linesf.write('''```CODE:# Load model directlyfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("BAAI/Emu3.5-Image", dtype="auto")```ERROR:
BAAI_Emu3.5-Image_0.py+4-2