3X Your Interview Chances
AI Resume Builder
Import LinkedIn, get AI suggestions, land more interviews
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