Commit Graph

3506 Commits

Author SHA1 Message Date
Henk
0342f0db78 Install submodules on requirements install
This helps people who clone the repository without knowing submodules need to be cloned, on the dependency installation it will now automatically check the submodules.
2023-01-06 18:11:48 +01:00
Henk
8fad03431d Merge branch 'main' into united 2023-01-06 16:55:18 +01:00
Henk
7fc5c46c1d Add Safetensors
Having the dependency adds basic support for safetensor models.
2023-01-06 16:40:56 +01:00
henk717
b4c2fa0dc1 Merge pull request #245 from pi6am/feat/flexible-memory-length
Change the maximum memory length to be based on the token budget
2023-01-06 16:30:58 +01:00
henk717
08e72d0f4d Merge pull request #244 from pi6am/fix/load-non-started
Fix loading a non-started V1 story json in UI2
2023-01-06 16:29:52 +01:00
Llama
b28cc01dba Change the maximum memory length to be based on the token budget
The maximum memory length was hardcoded to 512 tokens independent of
the overall context token budget. This was restrictive when the token
budget was increased, and excessive when the budget was decreased.

Based on feedback, this change modifies the max memory length to be 50%
of the context length. I tested with a memory consisting of the first
five paragraphs of The Three Musketeers, and the change seemed
reasonable with context lengths of 512, 1024 and 2048.

In order to minimize changes, this commit only modifies
max_memory_length; max_prompt_length and max_authornote_length are still
hardcoded as 512 tokens. We might want to make the max prompt length
flexible in the future, but since the author's note is injected into
the story, it's probably fine to restrict its length since a long
author's note will likely derail the AI.
2023-01-06 00:36:32 -08:00
Llama
ae215b94d5 ix loading a non-started V1 story json in UI2
There was an exception loading or importing a V1 story json into UI2 if
the story had zero actions. Do to incorrect indendation, the V1 load
process would attempt to use an uninitialized temp_story_class variable.

However, even after fixing this, it was impossible to continue playing
the saved story, because it was not possible to submit a blank action
when a story only had a prompt and zero actions. Modify the logic around
the first submission to handle a non-empty initial prompt. This allows
the player to begin playing the loaded game.
2023-01-05 23:42:24 -08:00
Henk
482e8152b4 Docker Submodule Fixes
Adding proper support for the submodules so that Horde Bridges work correctly.
2023-01-05 21:34:11 +01:00
Henk
9b9ff307e7 Docker changes
The .github folder was causing workflow errors for everyone who didn't configure this correctly. I have updated the docker with the latest ideas for flexibility. If a quick build is desirable people can build upon the official KoboldAI United image a seperate base image should not be needed.
2023-01-05 19:57:46 +01:00
henk717
b80bad9c3d Merge pull request #243 from one-some/screenshot
Fix so-called "typo"
2023-01-05 17:44:23 +01:00
somebody
23047cdb81 Fix so-called "typo" 2023-01-05 06:39:45 -06:00
henk717
5a76bf94e0 Merge pull request #242 from one-some/screenshot
Removed model attribution optionality
2023-01-05 00:35:32 +01:00
somebody
8460b0de68 Removed option to disable model attribution
Some models have robot attribution as a requirement in the usage
agreement
2023-01-04 17:22:47 -06:00
henk717
0a3433a98e Merge pull request #241 from one-some/screenshot
Screenshot tool
2023-01-04 23:49:24 +01:00
somebody
ab0277549c Merge branch 'united' of https://github.com/henk717/KoboldAI into screenshot 2023-01-02 12:14:38 -06:00
henk717
0dd0634f19 Merge pull request #239 from MightyAlex200/united
Clean up the CSS
2023-01-02 16:27:35 +01:00
henk717
001d4e6391 Merge pull request #238 from one-some/ui2-edit-fixes
New frontend bugfixes
2023-01-02 16:25:09 +01:00
henk717
ba6a0eca21 Merge pull request #240 from pi6am/feat/image-prompt-improvements
Feat/image prompt improvements
2023-01-02 16:22:38 +01:00
Llama
48dd451a8c Add the ability to insert the story prompt into the art guide.
The art guide now optionally supports the sequence <|>
If this exists in the art guide, <|> is replaced by the story summary.
Otherwise, the art guide is appended to the summary as before.
Update the default art guide to place the medium before the summary.
Also update the art guide tooltip to include the new default.
2023-01-01 21:12:25 -08:00
somebody
0fbfcbe17d Better cross-browser styling for WI item type
The WI item type styling for Chrome is now (as far as I can tell) 1:1
with Firefox. This means there is actually now typing feedback!!!
2023-01-01 15:55:49 -06:00
Taylor
86ede6a2d6 Nudge the toggles in CSS 2022-12-29 23:31:33 -05:00
Taylor
ab043e78dc Clean up CSS significantly 2022-12-29 23:20:52 -05:00
Taylor
5f78ab2f90 Clean up "load model" area in new UI 2022-12-29 13:12:49 -05:00
somebody
1d938d843e Fix newlines
Because sometimes it just doesn't work
2022-12-27 21:49:59 -06:00
somebody
80cb15d602 Fix null image issue 2022-12-27 21:31:07 -06:00
somebody
34c13ee760 Track who wrote original action 2022-12-27 21:20:07 -06:00
somebody
d1b9f83241 Trim whitespace 2022-12-27 20:48:31 -06:00
somebody
f002ea234d Shave off unselected text
That was surprisingly difficult
2022-12-27 20:38:25 -06:00
somebody
6c89f2e722 Remove unused author name length warning
If a user wants to have a 100_000 character name, so be it!
2022-12-27 19:09:20 -06:00
somebody
00b10d2081 Implement boring colors 2022-12-27 19:05:27 -06:00
somebody
c20dba7c81 Largely finish frontend 2022-12-27 18:52:51 -06:00
somebody
0a6dd8f7d8 Add prompt "support" 2022-12-27 18:52:22 -06:00
somebody
25c089e171 Redact original text 2022-12-27 18:18:34 -06:00
somebody
e772860d18 Add endpoint to get action composition 2022-12-27 17:33:46 -06:00
somebody
941f86145e Track original text 2022-12-27 16:36:28 -06:00
somebody
901322b66b Make settings work 2022-12-27 15:22:57 -06:00
somebody
17eaae81dc Remove enable/disable for generated images
Not really a point of having a disabled state if you can just not check
images...
2022-12-26 22:57:04 -06:00
somebody
90bd7c8d71 Integrate actual images 2022-12-26 22:54:51 -06:00
somebody
528861ab14 Fix layout of inference scratchpad 2022-12-26 21:35:25 -06:00
somebody
80a58f1be9 Oops 2022-12-26 21:14:45 -06:00
somebody
46438b96c3 Fix selection after line bugging out
And push big check encapsulating all of select_game_text to the
beginning to be a bit neater
2022-12-26 17:05:15 -06:00
somebody
2ee9ef8d23 add html2canvas 2022-12-23 23:48:43 -06:00
somebody
42b7c918f2 Initial screenshot 2022-12-23 23:41:52 -06:00
somebody
76aeabf9e3 Oops 2022-12-22 22:48:03 -06:00
somebody
a77fbf7fb7 Privacy Mode: Don't close popups right after loading 2022-12-22 22:43:05 -06:00
Llama
26185b4b4e Merge pull request #8 from henk717/united
Merge united (including UI2)
2022-12-22 10:03:35 -08:00
Henk
ca52b07f13 ColabKobold Fixes
Made a few mistakes in my initial commit
2022-12-22 01:56:44 +01:00
ebolam
092c31b0eb Add message for new features when opening for the first time. 2022-12-21 19:55:33 -05:00
Henk
29c4762039 ColabKobold Update
Allows ColabKobold to handle the new directories
2022-12-22 01:53:11 +01:00
henk717
43d75c60cb Merge pull request #233 from ebolam/UI2
Implementation of UI2
2022-12-22 01:46:15 +01:00