WAFL-llm
WAFL is built to run as a two-part system. Both can be installed on the same machine. This is the LLM side of the WAFL project.
LLM side (needs a GPU to be efficient)
This is a model server for the speech-to-text model, the LLM, the embedding system, and the text-to-speech model.
Installation
In order to quickly run the LLM side, you can use the following installation commands:
pip install wafl-llm
wafl-llm start
which will use the default models and start the server on port 8080.
The installation will require MPI and Java installed on the system. One can install both with the following commands
sudo apt install libopenmpi-dev
sudo apt install default-jdk
Configuration
A use-case specific configuration can be set by creating a config.json file in the path where wafl-llm start is executed.
The file should look like this (the default configuration)
{
"llm_model": "fractalego/wafl-phi3-mini-4k",
"speaker_model": "microsoft/speecht5_tts",
"whisper_model": "fractalego/personal-whisper-distilled-model",
"sentence_embedder_models": "TaylorAI/gte-tiny",
"entailer_model": "vectara/hallucination_evaluation_model",
"device": "cuda",
"quantization": false
}
The models are downloaded from the HugggingFace repository. Any other compatible model should work.
The device can be set to cuda or cpu.
The quantization can be set to true or false and uses the vLLM fp8 option. This will only work if your GPU supports it.
Each model can be set to null to deactivate it (and save memory).
This is useful if you only want to use the LLM model, for example.
Docker
Run the following
docker/build.sh
docker run -p8080:8080 --env NVIDIA_DISABLE_REQUIRE=1 --gpus all wafl-llm
Metadata
Release files for wafl-llm 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wafl_llm-0.1.2.tar.gz | 17.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wafl_llm-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.4 kB
Release files / wafl_llm-0.1.2.tar.gz
| Download URL | wafl_llm-0.1.2.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b534b6dd56dc69fc96c2ae8ec655804f2c60985f70cbb9abe72489589b2cf5ed
|
|
BLAKE2b-256 checksum How to use checksums |
c185456f5f7f95e78fdad0f933007a37ed3c84ff96b360a8845b36c57eedf80d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.4
|
Release files / wafl_llm-0.1.2-py3-none-any.whl
| Download URL | wafl_llm-0.1.2-py3-none-any.whl |
|---|---|
| Size | 32.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25ea106201d721fa1eba1f63b4546b33269d6e6762900d21df729dacca2fa0ba
|
|
BLAKE2b-256 checksum How to use checksums |
6f6aee24aa158644850fe6f871fb1a4d8cd810b3043066d25afefb422f5ce721
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.4
|