The `saveas` method was modified to take a data dict but one of the
else blocks still referred to the previous `name` parameter. Assign
to `name` to fix the `NameError: name 'name' is not defined` exception.
This is a breaking change that allows 4.25.1 to work because they also have done breaking changes. If you do not make use of our automatic updater please update the dependencies when updating to this build.
This commit restores the chat models menu now we finally have good chat models available again.
Unfortunately huggingface reports back pytorch_model.bin even if the model's name is model.safetensors. I don't have a good way to combat this at the moment, so instead we now do a hack where if the model copy fails it manually tries model.safetensors instead hoping that it will work.
This fixes Pygmalion for now, if new issues arise from this in the future from other models we have to implement a cleaner method.
This commit decouples single line mode, well behaved models no longer need this since we stop at the You:.
There are scenario's however where this potentially breaks chatmode completely or makes models more frustrating to use. Users who experience this can enable the Single Line mode in the formatting menu to restore the old behavior.
I have also allowed token streaming again, since the issues with it have already been resolved.
Allows square bracket syntax for using token ids, curly bracket syntax
for strict phrasing, and normal now biases alternative phrases with
space prefixes
Currently switching models makes the TPU cry and we do not want to upset
our dearest hardware friend.
In the future it'd probably be best to teach the TPU how to not be
afraid of switching models, provided we have some limitations that
prevent loading itty bitty or way too big models on the TPU.
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.