Skip to content

GateNLP/Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages