Hi there! This application offers a build of an application for chat locally with the language model and monitoring the system from the terminal. This version is usefull only for linux, because the necessary software components and convenience for which the application was created are only available on it. For windows users is necessary install WSL, prefer Debian distro.
Tmux is used to track the consumption of system resources and monitor the life cycle of the application. The main application uses the design from Chainlit. Chat history support, necessary (in the author's opinion) settings are included, support for using vision models(not fully tested...).
Default user name and pass is admin admin.
You can always check README on the web app, just open Readme buttom on the right top corner.
You should have can execute docker command without sudo, or go to root and execute start-app.bash. And preinstalled ollama is required, install ollama.
- Ollama(Docker Hub)
- volume: ollama
- network: asukaNet
- port: 11434:11434(original ollama port)
- Custom postgres with prisma official schema from chainlit, build from postgres latest image(Docker Hub)
- volume: asuka_datalayer
- network: asukaNet
- port: 5432:5432(original postgres port)
- Custom asuka app, build from python latest image(Docker Hub)
- volume: asuka_app
- network: asukaNet
- port: 8080:80
-
Execute
start-app.bashscript with paramentersstart-app.bash apt/yum/dnf nvidia/radeon/<none>. During installation you will be asked to enter a sudo password, to downloadbtop tmux nvtopvia your package manager.- cpu only example with apt
./start-app.bash apt - nvidia gpu example with yum
./start-app.bash yum nvidia - amd gpu example with dnf
./start-app.bash dnf radeon
- cpu only example with apt
-
For remove all containers, volumes, images(ollama on it too), execute
end-app.bash. -
You can add alias
alias asuka-dump="docker container stop ollama asuka postgresAsuka; docker container rm ollama asuka postgresAsuka; tmux kill-session -t asuka_admin"for quick dump all containers and tmux session. After that you can usestart-app.bashwith healthy execution. You can remove this alias with commandunalias asuka-dump. Also, you can use./asuka-dump.bash.
- First window have btop to check your cpu, ram, process, ...
- Second window have asuka web logging on the left side and nvtop on the right side
- Third window get be able to pull onother models via terminal You can use tmux it however you want, open and run whatever you want, it's just basic.
tmuxStart a new tmux session.tmux new -s <session_name>Start a new session with a specific name.
Ctrl+b dDetach from the current session.tmux lsList all active sessions.tmux attach -t session_nameReattach to a session by its name.
Ctrl+b cCreate a new window.Ctrl+b nMove to the next window.Ctrl+b pMove to the previous window.
Ctrl+b "Split the window horizontally.Ctrl+b %Split the window vertically.Ctrl+b oCycle through panes.Ctrl+b xClose the current pane.
tmux kill-session -t <session_name>Kill session by name
Ctrl+b ?Display a list of key bindings.