Create Your Imagination
AI-Powered Image Editing
No restrictions, just pure creativity. Browser-based and free!
2 min to read
git
clone https://huggingface.co/deepseek-ai/Janus-Pro-7Bcd
Janus-Pro-7Bpip install
transformers torch torchvision torchaudiofrom transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("deepseek-ai/Janus-Pro-7B")
tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/Janus-Pro-7B")
input_text = "Describe a futuristic city."
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
By following these steps, you should be able to successfully install and run the DeepSeek Janus-Pro 7B model on your Windows machine.
To run in on mac, check this link
Need expert guidance? Connect with a top Codersera professional today!