Skip to content

Instantly share code, notes, and snippets.

@mcamiano
Last active January 17, 2025 11:10
Show Gist options
  • Save mcamiano/8d84a8f557d12a1965c2b0e0e14bbbcb to your computer and use it in GitHub Desktop.
Save mcamiano/8d84a8f557d12a1965c2b0e0e14bbbcb to your computer and use it in GitHub Desktop.
Installing OmniGen on Apple hardware
# I'm using brew; do some housekeeping if needed w/ "brew cleanup" and check "brew doctor"
# if not already installed...
brew install openssl readline sqlite3 xz zlib tcl-tk@8
brew install pyenv
# Common user-specific Pyenv setup in zshrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init - zsh)"' >> ~/.zshrc
# Using python 3.10.13 ; Check previous installs w/ "pyenv install -l"
pyenv install 3.10.13
pyenv global 3.10.13
# Do housekeeping on pip if needed...
pip install --upgrade pip
# OmniGen's package management is imprecise and may install the wrong combinations of packages
# Without precise version specs things go wrong for a lot of people. It's quite sloppy right now.
# One suggestion was to install: "pip install torch torchvision torchaudio" but this was equally sloppy.
# Another suggestion resolved problems after uninstalling everything and starting over:
pip install transformers==4.45.2
git clone https://github.com/VectorSpaceLab/OmniGen.git
cd OmniGen
# Sloppy install, but transformers is already set to 4.45.2
# The package settings in OmniGen need to be made more precise, or locked in some manner to avoid this.
pip install -e .
@mcamiano
Copy link
Author

Immediately ran into this problem: VectorSpaceLab/OmniGen#189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment