Hugging Face inference chat CLI client.
Project description
LChat
Large Language Model (LLM) chat command line inteferace based using HuggingFace.
Installation
pip install lchat
Usage
You will likely need to login via huggingface_hub.
The usage is very simple, to enter the chat prompt run:
python -m lchat
The arguments that can be passed to lchat are as follows:
usage: lchat [-h] [-p PROMPT] [-m MODEL] [-l]
Sends an input to a HuggingFace LLM.
options:
-h, --help show this help message and exit
-p PROMPT, --prompt PROMPT
Type of prompt to use. '' for none, 'email' for email.
-m MODEL, --model MODEL
Hugging Face model to use.
-l, --list List default prompts.
- To quit from the chat prompt, type
q
orquit
. - To erase all message history type
c
orclear
. - To show the help menu, type
h
orhelp
.
Chats are not saved between sessions.
The >>>
prompt is the prompt that awaits your input.
The ['.'] ...
prompt is the LLM response.
License
This project is licensed under the GNU GPL v3 license which can be found here.
Contributing
Issues and pull requests welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lchat-0.2.3.tar.gz
(17.2 kB
view details)
Built Distribution
lchat-0.2.3-py3-none-any.whl
(18.5 kB
view details)
File details
Details for the file lchat-0.2.3.tar.gz
.
File metadata
- Download URL: lchat-0.2.3.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.6.47-gentoo-dist
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2810711b17c1fc7baec2ed2cca85f203d7cbe890b75120ce05235932dab59315 |
|
MD5 | ef9cd9fcf467d3f94744a7f7285dc7e6 |
|
BLAKE2b-256 | 60b42c4598c7fce201b015add3657baeacc98c9fcc17838363b5b8fb64f4e15d |
File details
Details for the file lchat-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: lchat-0.2.3-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.6.47-gentoo-dist
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 351e919b6b9e73dc4fd0b5ff87c18cbcac97a51a50a15e5a2eb78b47870209b9 |
|
MD5 | 678462e5863357e4819cdc151f978cb9 |
|
BLAKE2b-256 | 244e52cf0c874db3fee4ba58e55c319d8e16a3f09d42e38e23aea4dc2ed6072a |