Skip to content

Commit

Permalink
upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo committed Jun 25, 2023
1 parent 74d9d66 commit 02297f7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def generate_msg(data):
ASCIIColors.green("Starting message generation by"+self.personality.name)

task = self.socketio.start_background_task(self.start_message_generation, message, message_id)
self.socketio.sleep(0)
ASCIIColors.info("Started generation task")
#tpe = threading.Thread(target=self.start_message_generation, args=(message, message_id))
#tpe.start()
Expand Down
6 changes: 2 additions & 4 deletions c_webui.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@echo off

set environment_path=%cd%/lollms-webui/env


Expand Down Expand Up @@ -121,11 +120,10 @@ if %errorlevel% equ 0 (
echo Deactivating any activated environment
conda deactivate

set INSTALL_ENV_DIR=%cd%\lollms-webui\env
echo checking %INSTALL_ENV_DIR% existance
echo checking %environment_path% existance

rem Check the error level to determine if the file exists
if not exist "%INSTALL_ENV_DIR%" (
if not exist "%environment_path%" (
REM Create a new Conda environment
echo Creating Conda environment...
conda create --prefix ./env python=3.10
Expand Down
14 changes: 13 additions & 1 deletion docs/youtube/script_lollms.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,16 @@ Copy and paste the model link to the console then press enter.
Downloading the model takes some time, so let's fast forward.
Once the model is downloaded, you can select it.
Now open your browser at the shown address. The default one is localhost:9600. You can change the address or port in the configuration file that you can find in your personal folder / configs / local_config.yaml. if you put 0.0.0.0 all your ip addresses will expose the ui. Make sure you use this in trustworthy networks as people may have access to your discussions. To stay safe, just use localhost to force a local use. The remote use may be useful if you want to use the app on your phone or another low power terminal. I will show you later how you can use multi servers / clients with secure access while keeping your data private without exposing them.
Now to start a conversation, just press + and start typing your prompt to the ai in the input area. you validate either by pressing enter, or by pressing the validation button. You can make a multiline prompt by holding shift key and pressing enter.
Now to start a conversation, just press + and start typing your prompt to the ai in the input area. you validate either by pressing enter, or by pressing the validation button. You can make a multiline prompt by holding shift key and pressing enter.
Let's ask it to make a short love story.
As you can see, the ai did come up with something. This model is very very small, so don't expect it to have a high peformance.
Now let's install a littble bit bigger model like the Falcon 7B.
To do this, we go to settings tab.
There are many changes since last time. Now you can monitor disk usage as well as both ram and v-ram usages if you have a cuda enabled GPU.
You can also install more bindings and select them as well as updating their configuration from the ui.
Check out the new models zoo. There are many many models out there. Feel free to try some of them to find which one fits you better.
Now let's find our falcon 7B model. For now the search option is not yet implemented but it is going to be implemented next week, so stay tuned.

Let's select a 4 bits quantization which is a good ratio between size and performance.
Press install and wait for it to download the model. You can install multiple models simultaniously. Make sure you have enough disk space as some of those models are very big.
Once installed, we can ask the same question and compare the output.
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 02297f7

Please sign in to comment.