readme: ---
  license: apache-2.0
  ---
  Install lumi:
  ```
  git clone https://github.com/ontocord/lumi
  pip install transformers  sentencepiece
  ```
  
  Load model:
  ```
  from lumi.modeling_dalle import *
  import torch
  minidalle = DalleModel.from_pretrained("ontocord/minidalle").eval().half().to('cuda')
  ```
  
  Use:
  ```
  text="""A woman riding a black horse next to a blue fence in central park"""
  
  img = minidalle.generate(
      text=text,
      image_output=True,
      token_output=False
  )
     
  ```