Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 886 Bytes

README.md

File metadata and controls

47 lines (33 loc) · 886 Bytes

Chatbot

This is a simple chatbot powered by Meta's LLaMA-3 8B Instruct model. It runs directly from your terminal.


Requirements

  • Python 3.12
  • Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate  
  • Install dependencies:
pip install -r requirements.txt
export HF_ACCESS_TOKEN='your_token'

Usage

Run the chatbot:

python llama_chatbot.py

Example session: LLaMA Chatbot is ready! Type your question below. Type "exit" or "quit" to exit.

User: What is the capital of France Bot: system

You are a helpful chatbot. user

What is the capital of France assistant

Bonjour! The capital of France is Paris!