Skip to content

Commit

Permalink
Merge pull request #52 from nixified-ai/mc/wip-text-generation-webui
Browse files Browse the repository at this point in the history
Major Upgrade/Refactor
  • Loading branch information
max-privatevoid authored Oct 19, 2023
2 parents 0c58f8c + 079f83b commit 2aeb76f
Show file tree
Hide file tree
Showing 47 changed files with 1,835 additions and 1,098 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<p align="center">
<br/>
<a href="nixified.ai">
Expand All @@ -25,19 +24,19 @@ The outputs run primarily on Linux, but can also run on Windows via [NixOS-WSL](

The main outputs of the `flake.nix` at the moment are as follows:

#### KoboldAI ( A WebUI for GPT Writing )
#### [InvokeAI](https://github.com/invoke-ai/InvokeAI) ( A Stable Diffusion WebUI )

- `nix run .#koboldai-amd`
- `nix run .#koboldai-nvidia`
- `nix run .#invokeai-amd`
- `nix run .#invokeai-nvidia`

![koboldai](/../images/koboldai.webp)
![invokeai](https://raw.githubusercontent.com/nixified-ai/flake/images/invokeai.webp)

#### InvokeAI ( A Stable Diffusion WebUI )
#### [textgen](https://github.com/oobabooga/text-generation-webui) ( Also called text-generation-webui: A WebUI for LLMs and LoRA training )

- `nix run .#invokeai-amd`
- `nix run .#invokeai-nvidia`
- `nix run .#textgen-amd`
- `nix run .#textgen-nvidia`

![invokeai](/../images/invokeai.webp)
![textgen](https://raw.githubusercontent.com/nixified-ai/flake/images/textgen.webp)

## Install NixOS-WSL in Windows

Expand Down
159 changes: 57 additions & 102 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 22 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
url = "github:NixOS/nixpkgs/nixos-unstable";
};
invokeai-src = {
url = "github:invoke-ai/InvokeAI/v2.3.1.post2";
url = "github:invoke-ai/InvokeAI/v3.3.0post3";
flake = false;
};
koboldai-src = {
url = "github:koboldai/koboldai-client/1.19.2";
textgen-src = {
url = "github:oobabooga/text-generation-webui/v1.7";
flake = false;
};
flake-parts = {
Expand All @@ -29,16 +29,31 @@
};
outputs = { flake-parts, invokeai-src, hercules-ci-effects, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
perSystem = { system, ... }: {
_module.args.pkgs = import inputs.nixpkgs { config.allowUnfree = true; inherit system; };
legacyPackages = {
koboldai = builtins.throw ''
koboldai has been dropped from nixified.ai due to lack of upstream development,
try textgen instead which is better maintained. If you would like to use the last
available version of koboldai with nixified.ai, then run:
nix run github:nixified.ai/flake/0c58f8cba3fb42c54f2a7bf9bd45ee4cbc9f2477#koboldai
'';
};
};
systems = [
"x86_64-linux"
];
debug = true;
imports = [
hercules-ci-effects.flakeModule
./modules/dependency-sets
./modules/aipython3
# ./modules/nixpkgs-config
./overlays
./projects/invokeai
./projects/koboldai
./projects/textgen
./website
];
};
};
}
28 changes: 0 additions & 28 deletions modules/aipython3/default.nix

This file was deleted.

Loading

0 comments on commit 2aeb76f

Please sign in to comment.