Commit Graph

516 Commits

Author SHA1 Message Date
3018322963 Detect and show properly when story is unsaved 2022-01-18 17:20:45 -05:00
1951ccd2ce Show author and SP length in soft prompt menu 2022-01-18 16:30:09 -05:00
4da1a2d247 Prevent tokenizer from taking extra time the first time it's used 2022-01-17 22:55:25 -05:00
703c092577 Fix settings callback, and genout.shape[-1] in tpumtjgenerate() 2022-01-17 14:52:29 -05:00
3ba0e3f9d9 Dynamic TPU backend should support dynamic warpers and abort button 2022-01-17 14:10:32 -05:00
6502af086f Use vars._actions in tpumtjgenerate and its callbacks 2022-01-17 13:24:11 -05:00
45bfde8d5d generated_cols needs to be set properly by TPU static backend 2022-01-17 13:19:57 -05:00
9594b2db1c Fix soft prompt length calculation in calcsubmitbudget()
In TPU instances, `vars.sp.shape[0]` is not always the actual number of
tokens in the soft prompt. We have to use `vars.sp_length` to get an
accurate token count.
2022-01-17 13:17:20 -05:00
74f79081d1 Use vars.model_type to check for GPT-2 models 2022-01-17 13:13:54 -05:00
54a587d6a3 Show confirmation dialog when navigating away from UI window 2022-01-17 12:11:06 -05:00
1627afa8c5 Merge branch 'united' into patch 2022-01-17 10:44:34 -05:00
33f9f2dc82 Show message when TPU backend is compiling 2022-01-16 21:09:10 -05:00
03b16ed920 Merge branch 'united' into patch 2022-01-16 00:36:55 -05:00
4f0c8b6552 Merge branch 'united' into xmap 2022-01-15 23:32:12 -05:00
f4eb896a69 Use original TPU backend if possible 2022-01-15 23:31:07 -05:00
9802d041aa Colab Optimizations
Breakmodel is useless on Colab, so for the sake of efficiency if --colab is present we will always assume a model is incompatible. The same applies to the conversion, colab's are discarded so converting the model to a .bin file only wastes time since the HDD isn't fast. Finally we automatically set all the useful variables for Colab, so that in the future this can be removed from ckds and other scripts.

Lastly ckds has been adapted not to copy the examples folder and to add the new --colab parameter.

Local players are much better off running the old --remote command.
2022-01-16 00:56:03 +01:00
9bcc24c07e Merge pull request #58 from VE-FORBRYDERNE/xmap
Dynamic TPU backend xmaps
2022-01-15 16:20:58 +01:00
877fa39b8a Change TPU regeneration indicator message 2022-01-14 23:21:27 -05:00
bdfde33e8a Add an indicator for when dynamic WI scan is triggered in TPU Colabs 2022-01-14 23:13:55 -05:00
e0fdce2cc6 Fix TPU generation modifier 2022-01-14 23:00:06 -05:00
932c393d6a Add TPU support for dynamic WI scan and generation modifiers 2022-01-14 21:39:02 -05:00
cf9a4b7e6b Fix typos in error messages 2022-01-13 22:33:55 -05:00
53b91c6406 Small changes 2022-01-14 02:03:46 +01:00
a3d6dc93e8 xmaps for moving things onto TPU 2022-01-12 21:45:30 -05:00
f0b5cc137f Merge branch 'united' into patch 2022-01-12 19:50:01 -05:00
49e2bcab1a Allow unique chatnames in multiplayer
No longer update the chatname outside of the config, this will not effect singleplayer tab at all, but it will allow people in multiplayer to chat with their own names.
2022-01-11 21:31:44 +01:00
3f88b4f840 Server clarification
To prevent confusion with users who have not used KoboldAI for a while, or who are following old tutorials I have added a disclaimer that informs people that most Colab links should not be used with this feature and instead opened in the browser.
2022-01-11 00:35:20 +01:00
d2947bd1cc Small model description update 2022-01-11 00:29:35 +01:00
43586c8f60 Fix some of the logic for generation aborting 2022-01-10 17:09:47 -05:00
902b6b0cee Always save all world info entries 2022-01-10 16:36:36 -05:00
f718fdf65e Allow pressing send button again to stop generation 2022-01-10 16:36:15 -05:00
c84d864021 Fix a bug with dynamic WI scan when using a soft prompt
The problem was that when a soft prompt is being used, the dynamic
scanning criteria searches a different set of tokens for world info
keys than the `_generate()` function, which results in generation loops
when a world info key appears in the former set of tokens but not the
latter.
2022-01-10 15:52:49 -05:00
fbc3a73c0f Compile TPU backend in background 2022-01-07 13:47:21 -05:00
01479c29ea Fix the type hint for bridged_kwarg decorator 2022-01-04 20:48:34 -05:00
fc6caa0df0 Easier method of adding kwargs to bridged in aiserver.py 2022-01-04 19:36:21 -05:00
fbf5062074 Add option to compute_context() to not scan story 2022-01-04 19:26:59 -05:00
6edc6387f4 Accept command line arguments in KOBOLDAI_ARGS environment var
So that you can use gunicorn or whatever with command-line arguments by
passing the arguments in an environment variable.
2022-01-04 17:11:14 -05:00
aa86c6001c --breakmodel_gpublocks should handle -1 properly now 2022-01-04 14:43:37 -05:00
e20452ddd8 Retrying random story generation now also remembers memory 2022-01-04 14:40:10 -05:00
f46ebd2359 Always pass 1.1 as repetition penalty to generator
The `dynamic_processor_wrap` makes it so that the repetition penalty is
read directly from `vars`, but this only works if the initial repetition
sent to `generator` is not equal to 1. So we are now forcing the initial
repetition penalty to be something other than 1.
2022-01-04 14:18:58 -05:00
63bb76b073 Make sure vars.wifolders_u is set up properly on loading a save 2022-01-04 14:13:36 -05:00
b88d49e359 Make all WI commands use UIDs instead of nums 2021-12-31 21:22:51 -05:00
ccfafe4f0a Lua API fixes for deleting/editing story chunks 2021-12-31 18:28:03 -05:00
7241188408 Make sure tokenizer is initialized when used in read-only mode 2021-12-31 17:13:11 -05:00
796c71b7f7 ANTemplate in Model Configs
This commit exposes antemplates to the model config, this lets authors specify what kind of authors notes template they would like to use for their model. Users can still change it if they desire.
2021-12-31 00:11:18 +01:00
455dbd503b Merge pull request #52 from VE-FORBRYDERNE/memory
Random story persist, author's note template and changes to behaviour when not connected to server
2021-12-30 23:57:55 +01:00
557d062381 Finetuneanon Models
Uploaded with permission, so now Finetuneanon's models can be added to the main menu
2021-12-30 14:16:04 +01:00
4d06ebb45a Consistent capitalization of "Author's note" 2021-12-30 01:48:25 -05:00
de8a5046df Make sure we don't keep the trimmed memory in randomGameRequest() 2021-12-30 01:45:27 -05:00
276f24029e Author's Note Template 2021-12-29 23:43:36 -05:00