Skip to content

Instantly share code, notes, and snippets.

@shinshin86
Created June 1, 2024 00:29
Show Gist options
  • Save shinshin86/984a81b03b806a708c3f0d1b048c20a8 to your computer and use it in GitHub Desktop.
Save shinshin86/984a81b03b806a708c3f0d1b048c20a8 to your computer and use it in GitHub Desktop.
This shell script is designed to initialize and run the Omost on Google Colab.
!git clone https://github.com/shinshin86/Omost.git
%cd Omost
!git checkout add-share-option
!pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
!pip install -r requirements.txt
!python gradio_app.py --share
@AnalyticsXXI
Copy link

Did you generate any image using Colab?

@Nears-115
Copy link

(I'm sorry if the meaning has changed due to the language barrier and I'm using a translation app)

Thank you very much.I am now playing Omost on colab pro.
Personally, I continue to connect google drive and use the customized gradio_app.py.
By copying it and starting it from there, you can change the LLM you use to "omost-dolphin-2.9-llama3-8b-4bits".
I've been doing things like changing the SDXL model to "Lykon/AAM_XL_AnimeMix"...
The relative path "%cd Omost" on the second line is changed to the absolute path "%cd /content/Omost".
This change was made because if it was a relative path, the Omost directory would be nested multiple times and installed each time it was restarted and shut down.

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