Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cog Support #194

Open
RichardMcSorley opened this issue Jan 23, 2023 · 2 comments
Open

Add Cog Support #194

RichardMcSorley opened this issue Jan 23, 2023 · 2 comments
Labels
feature request New feature or request

Comments

@RichardMcSorley
Copy link

Adding cog to the project could make it easy to utilize imaginAIry on platforms such as replicate.com or simplify deploying imaginAIry to your own ML infrastructure.

Willing to give it a go on my end, when I have time and hopefully can get access to pushing to replicate soon.

A simple POC with command line arguments as input would be the easiest path forward imo but open to discuss.

@brycedrennan
Copy link
Owner

I'm not familiar with cog so my initial reaction is "i dont know".

I have deployed imaginairy in containers a few times this is the setup script I'm using currently:

  apt-get update
  apt-get install -y libgl1 libglib2.0-0

  wget https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.0-1_all.deb
  dpkg -i cuda-keyring_1.0-1_all.deb
  apt-get update
  apt-get install -y cuda=11.5.1-1

  pip install --upgrade pip setuptools wheel pip-tools;

  cat requirements-dev.txt | grep -v "^torch==" | grep -v "^torchvision==" > requirements-filtered.txt;
  cat testing_support/requirements-torch.txt >> requirements-filtered.txt
  pip-sync requirements-filtered.txt;

  pip install --no-deps -e .;
  imagine pizza --steps 2;
  touch /root/.initial-setup-done;

@brycedrennan brycedrennan added the feature request New feature or request label Jan 23, 2023
@dalaohuniu
Copy link

good thankyou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants