Skip to content

A TK based graphical user interface for gpt4all. It uses the python bindings. Run LLMs in a very slimmer environment and leave maximum resources for inference

License

Notifications You must be signed in to change notification settings

woheller69/gpt4all-TK-CHAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT4All TK CHAT GUI

Quickstart

The TK GUI is based on the gpt4all Python bindings and the typer and tkinter package.

The following shows one way to get started with the GUI. Typically, you will want to replace python with python3 on Unix-like systems. Also, it's assumed you have all the necessary Python components already installed.

The GUI is a self-contained Python script named appGUI.py. As long as its package dependencies are present, you can download and run it from wherever you like.

# pip-install the necessary packages;
python -m pip install --upgrade gpt4all typer tkinter

Specify the path to the model with the -m/--model argument and an optional prompt template with -p/--prompt. A system prompt can also be set with -s/--sysprompt. Context length defaults to 2048, it can be set with -c/--context-length. The number of threads can be set with -t/--n-threads. The device to use, e.g. gpu, amd, nvidia, intel, can be set with -d/--device. It defaults to CPU.

python appGUI.py --model /home/user/my-gpt4all-models/gpt4all-13b-snoozy-q4_0.gguf --prompt 'Human: {0} Assistant: '

(or --prompt $'Human:\n{0}\n Assistant:\n' with line breaks)

Input your request in the bottom window and click Generate.

Inference can be interrupted using the Stop button.

About

A TK based graphical user interface for gpt4all. It uses the python bindings. Run LLMs in a very slimmer environment and leave maximum resources for inference

Topics

Resources

License

Stars

Watchers

Forks

Languages