Last active
January 17, 2025 11:10
-
-
Save mcamiano/8d84a8f557d12a1965c2b0e0e14bbbcb to your computer and use it in GitHub Desktop.
Installing OmniGen on Apple hardware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Immediately ran into this problem: VectorSpaceLab/OmniGen#189