Commit Graph

1448 Commits

Author SHA1 Message Date
ebolam
4dfbf80929 Not sure why this fixes it, or why we need this line...... 2022-12-01 11:04:43 -05:00
ebolam
94953def32 More 8 bit debuging 2022-12-01 09:20:24 -05:00
somebody
8847744944 Streamline image generation and save to directory 2022-11-30 23:15:13 -06:00
somebody
9ddb849040 Fix wrong function calls to warning 2022-11-30 23:14:52 -06:00
ebolam
e278abd7c9 Copy of VE's 8 bit lazyloading/breakmodel code 2022-11-30 18:56:22 -05:00
ebolam
06a25b4663 Fix for possible recursion bug 2022-11-30 07:48:41 -05:00
ebolam
aa5207f5c6 Ensure we don't save 8bit models 2022-11-30 07:21:16 -05:00
ebolam
18db7b98f5 8 bit 2022-11-29 20:20:15 -05:00
ebolam
1b5adf8af5 8 bit 2022-11-29 20:19:11 -05:00
ebolam
f0fa80cd98 8 bit testing 2022-11-29 20:09:39 -05:00
ebolam
85a5997cc8 8 bit mode fix 2022-11-29 19:55:54 -05:00
ebolam
0581a74ead Debug for 8 bit 2022-11-29 19:34:43 -05:00
ebolam
aabc73b3f7 Adding debug for 8 bit 2022-11-29 19:29:06 -05:00
ebolam
604b42d602 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-29 17:06:37 -05:00
ebolam
20851485e0 Experimental 8-bit support (option will only show on linux systems) 2022-11-29 17:06:23 -05:00
somebody
ec854a808a More save stuff 2022-11-28 20:47:34 -06:00
somebody
e7930101c1 Save v3 renaming support 2022-11-28 17:01:30 -06:00
somebody
0f8a669eac More work on new save 2022-11-28 16:50:07 -06:00
somebody
4035221b9c Don't activate attention bias until needed 2022-11-28 16:18:45 -06:00
somebody
4ed1955aff Work on new save 2022-11-28 16:11:09 -06:00
somebody
654216e2b6 Allow direct prompting of the image generation pipeline 2022-11-27 19:43:12 -06:00
somebody
9c5a1e1ad9 Make image generation pipeline more generic 2022-11-27 19:42:30 -06:00
somebody
efb1995b9a Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-27 18:10:15 -06:00
ebolam
fa3c7ca52e Default Preset Fix 2022-11-27 19:08:35 -05:00
somebody
34d0cfc989 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-27 18:07:10 -06:00
ebolam
bcff1e6de7 Default Preset Fix 2022-11-27 18:18:45 -05:00
ebolam
3f8b6f3a37 Added back in default preset
Fix for unicorn theme for the progress bar
2022-11-27 15:59:37 -05:00
somebody
38cbc357b2 Improve SD error handling 2022-11-27 12:57:21 -06:00
somebody
471b652bbe Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into ui2-lorecard-img 2022-11-26 22:19:20 -06:00
somebody
01e3ba05cf WI and Generated Image link up 2022-11-26 22:17:24 -06:00
ebolam
5bf7c500ee Merge pull request #314 from pi6am/fix/simplify_append
Combine append and append_submit, add docstring to append.
2022-11-26 11:12:02 -05:00
ebolam
ab718f72ec Merge pull request #313 from one-some/ui2-lorecard-img
Flesh out WI images a bit
2022-11-26 11:11:35 -05:00
Llama
8e538ba300 Combine append and append_submit, add docstring to append.
Combine the append and append_submit methods, and add an optional
parameter to append to indicate whether it is a submission.
Add a docstring to append.
2022-11-25 21:35:01 -08:00
somebody
896f197adf Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into ui2-lorecard-img 2022-11-25 22:41:45 -06:00
somebody
f6d3349b56 Add ability to remove image from wi 2022-11-25 22:26:28 -06:00
ebolam
2d78d9400b Fix retry to not keep the action in the log 2022-11-25 20:14:14 -05:00
ebolam
37257ca6fd Merge pull request #308 from pi6am/fix/calc_ai_text
Several fixes to calc_ai_text and lua_compute_context
2022-11-25 18:09:52 -05:00
somebody
61b9bdcf98 Remove redundant format 2022-11-24 23:39:52 -06:00
somebody
ec20b31931 Remove reset switch for sd web api
Automatically recover from errors
2022-11-24 23:37:19 -06:00
somebody
a48d31c746 Changes on sd webui api stuff
- Strip url of trailing slashes, this caused issues when your api url
  ended with a slash (such as the default! at least i think)
- Notify the user if they didn't call sd webui with the --api argument,
  which is required to use the api
- Don't try to write to non-existant art directory, just send b64 image
  like the diffusers function does it. In the future we probably want to
  save these, but it would be in standardized manner most likely tied to
  story files somehow
2022-11-24 23:37:14 -06:00
somebody
3f0511d7bd Don't add commas to join prompts when one is empty 2022-11-24 23:18:24 -06:00
somebody
44385730f6 Allow logging to server log from show_error_notification 2022-11-24 23:17:35 -06:00
Llama
51f1121681 Several fixes to calc_ai_text and lua_compute_context
The method lua_compute_context no longer ignores its arguments.
  This restores support for overriding the submitted text and
  allowed WI entries and folders to lua_compute_context.
Add optional allowed_wi_entries and allowed_wi_folders parameters to
  calc_ai_text.  These allow restricting which WI is added to the
  context.  The default is no restriction.
Fix an issue in which streaming tokens were returned by calc_ai_text.
  This fixes an issue in which lua_compute_context would receive
  streamed tokens (only if token streaming was turned on).
Add docstrings to calc_ai_text and to_sentences.
Improve the regular expression used to split actions by sentence.
  The new regular expression allows quotation marks after punctuation
  to be attached to the sentence.
Improve the interaction between AN and WI depth and actions split
  by sentence.  The author's note was added after the sentence
  that pushed the action count up to or greater than the depth.
  This included "empty" actions from undoing actions, as well as
  continuation actions.  As a result, the author's note text
  was often inserted at the end of the context, which often prevented
  the model from generating coherent continuation text.
Consider sentence count in addition to action count for AN and WI depth.
Ignore completely empty actions when determining AN and WI depth.
Insert AN text before the sentence that crosses the AN depth, instead of
  after the sentence.  This means that at least one sentence from the
  action alwasy appears at the end of the context, which gives the AI
  something to continue from.
A few extremely minor optimizations from reducing redundant work.
  Pre-compile the sentence splitting regular expression.
  Don't join action sentences multiple times just to compute their
  length.
Fix a few typos and remove some commented out code.
2022-11-24 11:40:57 -08:00
ebolam
5b4faff5df Fix for model info on ready only crashing 2022-11-23 14:02:41 -05:00
ebolam
08ad5dbe39 Potential chat mode stopper fix 2022-11-23 11:30:34 -05:00
ebolam
385ad49bd8 Additional Presets 2022-11-23 08:46:26 -05:00
ebolam
e8861b517a Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-23 07:33:36 -05:00
ebolam
f826c39b43 Additional error message 2022-11-23 07:33:30 -05:00
ebolam
773d143c86 Preset Rework 2022-11-22 21:27:36 -05:00
Henk
2603f1fd5d Version bump 2022-11-20 16:22:33 +01:00