File size: 562 Bytes
8f8de28
 
 
 
 
 
 
 
 
 
 
 
 
ea9ae0d
8f8de28
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
license: openrail++
---

Exported with

```bash
optimum-cli export neuron --model PixArt-alpha/PixArt-XL-2-512x512 --batch_size 1 --height 512 --width 512 --num_images_per_prompt 1 --torch_dtype bfloat16 --sequence_length 120 pixart_alpha_neuron_512/
```

Inference

```python
from optimum.neuron import NeuronPixArtAlphaPipeline

neuron_model = NeuronPixArtAlphaPipeline.from_pretrained(save_directory)
prompt = "Mario got caught in a McDonald's while eating hamburgers with pickles."
image = neuron_model(prompt=prompt).images[0]
image.save("out.png")
```