Gnome Ann
661cca63e8
Make sure stopping criteria still work with dynamic scan off
2021-12-13 18:10:51 -05:00
Gnome Ann
338d437ea3
Use eventlet instead of gevent-websocket
2021-12-13 17:19:04 -05:00
Gnome Ann
fb6762bc1a
Add "AVAILABLE" and "ACTIVE" headings to userscript menu
2021-12-13 12:45:52 -05:00
Gnome Ann
ed9c2a4d52
Fix a bug that occurs when userscript doesn't have all 3 modifiers
2021-12-13 11:50:10 -05:00
Gnome Ann
34c52a1a23
Remove escape characters from all error messages
2021-12-13 11:47:34 -05:00
Gnome Ann
11f9866dbe
Enable more of the IO library in Lua sandbox
...
Also changes the Lua warning color to red.
2021-12-13 11:22:58 -05:00
Gnome Ann
28e86563b8
Change `self.scores` to `scores` in aiserver.py
2021-12-13 11:18:01 -05:00
Gnome Ann
a06cc3d37b
Make sure the "Lua error" GUI message is always visible
2021-12-13 03:21:08 -05:00
Gnome Ann
d870f193b2
Create userscripts folder if it doesn't exist
2021-12-13 02:33:36 -05:00
Gnome Ann
82e149ee02
Catch Lua errors properly
2021-12-13 02:32:09 -05:00
Gnome Ann
5f06d20085
Format Lua printed messages and warnings
2021-12-13 01:59:53 -05:00
Gnome Ann
b99e9f1292
Don't wrap `koboldbridge` in bridge.lua
2021-12-13 01:06:05 -05:00
Gnome Ann
d2f5544468
Add Userscripts menu into GUI
2021-12-13 01:03:26 -05:00
Gnome Ann
5d13339a52
Allow the retry button to call the Lua scripts properly
2021-12-12 20:48:10 -05:00
Gnome Ann
39bfb0862a
Allow user input to be modified from Lua
...
Also adds some handlers in the Lua code for when the game is not started
yet
2021-12-12 20:44:03 -05:00
Gnome Ann
fbf3e7615b
Add API for generated tokens and output text
2021-12-12 19:27:20 -05:00
Gnome Ann
ceabd2ef7b
Add Lua API for editing logits during generation
...
TPU backend not supported yet.
2021-12-12 16:18:45 -05:00
Gnome Ann
e2c3ac041b
Complete the Lua generation halting API
2021-12-12 12:52:03 -05:00
Gnome Ann
e06861bb0b
Rename `v` to `wrapped_func` in `metawrapper.__newindex()`
2021-12-12 12:20:01 -05:00
Gnome Ann
d76dd35791
Add Lua API for reading model information
2021-12-12 12:09:59 -05:00
Gnome Ann
09df371d99
Handle nested wrapped functions in bridge.lua properly
2021-12-12 11:30:04 -05:00
Gnome Ann
00eb125ad0
Allow Lua API to toggle dynamic scan
2021-12-12 01:55:46 -05:00
Gnome Ann
5692a7dfe2
Add Lua API for reading the text the user submitted to the AI
2021-12-12 01:52:42 -05:00
Gnome Ann
2a752c073e
Changing story chunks in Lua API should require regeneration
2021-12-12 01:43:40 -05:00
Gnome Ann
3b87c58de9
Make `KoboldStory` iterators methods instead of static functions
2021-12-12 01:33:49 -05:00
Gnome Ann
03453c4e27
Change script directory tree
...
Userscripts have been moved from /scripts/userscripts to /userscripts.
Core scripts have been moved from /scripts/corescripts to /cores.
2021-12-11 23:46:30 -05:00
Gnome Ann
36209bfe69
Add Lua API for story chunks
2021-12-11 23:44:07 -05:00
Gnome Ann
8e6a62259e
Fix the Lua tokenizer API
2021-12-11 21:24:34 -05:00
Gnome Ann
67974947b2
Fix numerous problems in the Lua world info API
2021-12-11 19:11:38 -05:00
Gnome Ann
3327f1b471
Fix Lua settings API
2021-12-11 17:01:41 -05:00
Gnome Ann
f8aa578f41
Enable generation modifiers for transformers backend only
2021-12-11 16:28:25 -05:00
Gnome Ann
1111408cc2
Switch default userscript order for inmods and outmods
2021-12-11 16:27:16 -05:00
Gnome Ann
e289a0d360
Connect bridge.lua to aiserver.py
...
Also enables the use of input modifiers and output modifiers, but not
generation modifiers.
2021-12-11 12:45:45 -05:00
Gnome Ann
68685698a4
Fix parts of bridge.lua where `t` is used instead of `k` or `v`
2021-12-11 12:13:56 -05:00
Gnome Ann
4710ea3949
Restructure the `execute` API in bridge.lua
2021-12-11 02:42:40 -05:00
Gnome Ann
68c2cb3b98
Fix a few problems in bridge.lua
...
* Use `python.iter` instead of `pairs` to iterate through `_bridged`
* Use `old_loadfile` instead of `safe_require_with_env` to load scripts
in order to handle unusual file names
* Prevent modules imported by scripts from accessing bridge.lua's
environment
* Fix behaviour of `KoboldWorldInfoEntry_mt._kobold_next(t, k)`
* New `next` implementation now has more safety checks
2021-12-11 01:21:18 -05:00
Gnome Ann
35966b2007
Upload bridge.lua, default.lua and some Lua libs
...
base64
inspect
json.lua
Lua-hashings
Lua-nums
Moses
mt19937ar-lua
Penlight
Serpent
2021-12-10 19:45:57 -05:00
Gnome Ann
cb384ce25b
Merge branch 'united' into world-info
2021-12-10 16:09:43 -05:00
henk717
64ca337c5d
Update colabkobold.sh
2021-12-10 21:34:41 +01:00
henk717
47f2544630
Location Fix
...
Fix the extraction location for zstd
2021-12-10 21:24:23 +01:00
henk717
bc1c0c4fa7
pip requirements
...
For Colab
2021-12-09 23:50:21 +01:00
henk717
d546cbd8c6
Update dependencies
...
Updates dependencies, play.sh didn't work properly so removing that for now since manually running aiserver.py is superior on Linux until I can get conda to init inside the script
2021-12-09 23:49:35 +01:00
henk717
9054c71515
zstd path fix
2021-12-09 18:06:54 +01:00
Gnome Ann
8212fb701b
Merge branch 'united' into world-info
2021-12-08 22:54:12 -05:00
henk717
d15b50f334
Conda based Play
...
For people who want to use Conda instead of Docker.
2021-12-08 18:44:13 +01:00
henk717
20e0b59fb9
Migrate to official transformers
...
No longer using VE's fork since its obsolete, in line with what we already did for the CUDA varient.
2021-12-07 23:35:28 +01:00
Gnome Ann
683bcb824f
Merge branch 'united' into world-info
2021-12-05 13:06:32 -05:00
henk717
c36bc376c0
Revert typo fix
...
Wasn't a typo (Testing on git again since its easier with the colabs)
2021-12-05 18:36:54 +01:00
henk717
337941e356
Typo fix
...
Accidentally had a negative which should have been a positive, this should fix repo downloads.
2021-12-05 18:34:20 +01:00
henk717
a442a2a67e
Merge pull request #41 from VE-FORBRYDERNE/jax21
...
TPU backend improvements
2021-12-05 18:10:52 +01:00