A lightweight desktop chat application powered by TinyLlama for local AI conversation.
- Chat interface powered by TinyLlama LLM
- Customizable generation parameters
- Cross-platform desktop application
- Runs locally for privacy
- Python 3.8 or higher
- GPU recommended for faster inference (but CPU works too)
- Clone the repository:
git clone https://github.com/yourusername/wawachat.git
cd wawachat- Run the setup script:
# For macOS/Linux
chmod +x setup.sh
./setup.sh
# For Windows
./setup.sh- Edit the
.envfile to add your Hugging Face token:
HUGGINGFACE_TOKEN=your_token_here
- Run the application:
python wawachat-v1.5.py- Clone the repository:
git clone https://github.com/yourusername/wawachat.git
cd wawachat- Create and activate a virtual environment (optional but recommended):
# For macOS/Linux
python3 -m venv venv
source venv/bin/activate
# For Windows
python -m venv venv
venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create a
.envfile with your Hugging Face token:
HUGGINGFACE_TOKEN=your_token_here
- Run the application:
python wawachat-v1.5.py- Type your message in the input box and press Enter to send
- The AI will respond in the conversation window
- Adjust generation parameters in the side panel as needed
- Use the Clear button to reset the conversation
Adjust the following parameters to customize the AI's responses:
- Max new tokens: Maximum number of tokens to generate
- Temperature: Controls randomness (higher = more random)
- Top P: Controls diversity via nucleus sampling
- Num Beams: Number of beams for beam search
- Truncation: Whether to truncate input tokens
- Do Sample: Whether to use sampling
- Early Stopping: Whether to stop generation when all beams are finished
This error occurs when the python-dotenv package is not installed. Fix it by running:
pip install python-dotenvIf you encounter other missing dependencies, make sure to install all requirements:
pip install -r requirements.txtTinyLlama is a large language model. The first time you run the application, it will download the model which may take some time depending on your internet connection. Subsequent runs will be faster.
MIT
- TinyLlama for the language model
- Hugging Face for model hosting
