Skip to content

EberronBruce/ibm_simple_llm_chatbot_huggingface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

BlenderBot Chatbot in Python

A simple chatbot using an LLM from Hugging Face, built as part of IBM’s AI Developer certification.

This project is a simple command-line chatbot built using the Facebook BlenderBot 400M distilled model, powered by Hugging Face's transformers library.


Tech Stack

  • Python 3.x
  • Hugging Face Transformers
  • IBM Cloud
  • Skills Network

🧰 Features

  • πŸ” Text-based conversational interface
  • πŸ€— Hugging Face transformer models
  • 🧠 AI-driven responses powered by LLMs
  • βœ… Based on an IBM lab project
  • Uses the facebook/blenderbot-400M-distill conversational model.

πŸ”§ Setup Instructions

  1. Clone this repo:
git clone https://github.com/EberronBruce/ibm_simple_llm_chatbot_huggingface.git
cd ibm_simple_llm_chatbot_huggingface

Before running the chatbot, follow these steps to set up a Python virtual environment and install dependencies:

1. Install virtualenv (if not already installed)

pip3 install virtualenv

2. Create and activate a virtual environment

virtualenv my_env        # Create a virtual environment named my_env
source my_env/bin/activate  # Activate the environment (use my_env\Scripts\activate on Windows)

3. Install required Python packages

python3 -m pip install transformers==4.30.2 torch

πŸš€ Running the Chatbot

python3 chatbot.py

(Replace chatbot.py with the actual name of your script file if different.)

The bot will start an interactive loop in the terminal. You can chat with it by typing messages after the > prompt.

To stop the conversation, use Ctrl+C.

πŸ“¦ Dependencies

  • transformers==4.30.2
  • torch

πŸ“„ License

This project is provided for educational purposes and uses models under the terms of the Facebook BlenderBot model license.

About

This is a simple chatbot for the IBM Generative AI Course.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages