Skip to content

Conversation

@Cloudef
Copy link
Contributor

@Cloudef Cloudef commented Oct 19, 2022

Provides way to get InvokeAI environment through nix [1]
This merely wraps miniconda into a own shell environment, and does not try to reproduce the build itself.
Tested on both linux-x86_64 and aarch64-darwin

1: https://nixos.org/

@colemickens
Copy link

Oh hey there @Cloudef. I'm sorta only willing to put time into this at rare moments, but I have a flake that actually can run invoke-ai already :D

If you wanted to help me get the last bits packaged, I'd love to be able to point to an ACTUALLY EASY TO RUN stable-diffusion fork.

@colemickens
Copy link

colemickens commented Oct 20, 2022

I guess linking to it would help: https://github.com/colemickens/stable-diffusion-flake

EDIT: to make things easy to grok, I use a fork of nixpkgs with some extra python derivations for the AI/ML space: https://github.com/colemickens/nixpkgs/tree/stable-diff these should all be relatively upstreamable though...

@colemickens
Copy link

(note that the flake's shell still uses pip for the last few packages, but it beats the pants off using miniconda imo)

@Cloudef
Copy link
Contributor Author

Cloudef commented Oct 20, 2022

@colemickens hey that actually looks really neat. By the way have you considered trying out https://github.com/DavHau/mach-nix ?

@colemickens
Copy link

whoa, no, I hadn't even come across that. It looks neat, seems like there's more and more efforts like this popping up for various languages.

(Sidenote, just opportunistically, @Cloudef, NixCon is going on this week in Paris and there's a hackathon on Saturday. If you want to collaborate on this, I think it'd be fun and I think our TZs overlap a bit. There's lots of discussion here about how to "market" Nix, and goodness, this feels like a good opportunity. I'm on matrix as @colemickens:matrix.org if you want to ping me and find/make a room to collab.)

@colemickens
Copy link

Here, it's busted right now but I'm going to be working on it here:
https://github.com/colemickens/InvokeAI/tree/flake

  1. Need to package a couple more python bits.
  2. InvokeAI really needs to support loading the model file from outside the repo or something.

@colemickens
Copy link

So, I have a version that works with nix run! It's still hacky, but I'm pretty darn pleased already.

@lstein lstein self-requested a review October 21, 2022 10:44
@lstein lstein changed the base branch from main to development October 21, 2022 10:46
@lstein lstein changed the base branch from development to main October 21, 2022 10:46
Copy link
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. My only request is that you change the PR to rebase it against development. Thanks.

@Cloudef Cloudef changed the base branch from main to development October 23, 2022 00:17
@Cloudef
Copy link
Contributor Author

Cloudef commented Oct 23, 2022

Done

Copy link
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lstein lstein merged commit ce1bfbc into invoke-ai:development Oct 25, 2022
@Cloudef Cloudef deleted the nix-shell-file branch October 25, 2022 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants