Skip to content

Welcome to the Falcon 40B Chatbot Demo repository! This project demonstrates how to utilize the Falcon-40B-Instruct model from Hugging Face in combination with the LangChain framework. The code showcases how to set up and interact with the model, while also integrating it into the LangChain library for advanced conversational capabilities.

License

Notifications You must be signed in to change notification settings

Illia-the-coder/Falcon40B-Chatbot-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Falcon 40B Chatbot in Hugging Face and LangChain πŸ¦…πŸ€–

Welcome to the Falcon 40B Chatbot Demo repository! This project demonstrates how to utilize the Falcon-40B-Instruct model from Hugging Face in combination with the LangChain framework. The code showcases how to set up and interact with the model, while also integrating it into the LangChain library for advanced conversational capabilities.

πŸ“œ Overview

This repository provides a Jupyter Notebook (falcon-40b-chatbot.ipynb) that illustrates how to:

  • Install the required libraries for model setup and interaction
  • Initialize the Hugging Face pipeline for text generation
  • Integrate the pipeline with the LangChain framework
  • Set up a conversational agent using Falcon 40B
  • Implement output parsing to clean up generated text

πŸ“ Repository Structure

πŸ“¦ Falcon_40B_Chatbot_Demo
 ┣ πŸ“‚ notebooks
 ┃ β”— πŸ“ falcon-40b-chatbot.ipynb
 ┣ πŸ“œ .gitignore
 ┣ πŸ“œ LICENSE
 β”— πŸ“œ README.md

πŸ› οΈ Libraries Used

Here's a table of the main libraries used in this project:

Library Version Description
transformers Hugging Face Transformers library
accelerate Accelerate library for efficient model loading
einops Library for array reshaping
langchain LangChain framework for language models
xformers Transformative deep learning library
bitsandbytes Library for quantization of models
torch PyTorch library

πŸš€ Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/yourusername/Falcon_40B_Chatbot_Demo.git
  2. Open the Jupyter Notebook falcon-40b-chatbot.ipynb using Jupyter Notebook or Google Colab.

  3. Follow along with the notebook to explore the Falcon 40B Chatbot demo.

πŸ“ License

This project is licensed under the MIT License. See the LICENSE file for details.


Enjoy experimenting with the Falcon 40B Chatbot Demo! If you have any questions or suggestions, feel free to open an issue or contribute to the project. Happy coding! 😊🌟

About

Welcome to the Falcon 40B Chatbot Demo repository! This project demonstrates how to utilize the Falcon-40B-Instruct model from Hugging Face in combination with the LangChain framework. The code showcases how to set up and interact with the model, while also integrating it into the LangChain library for advanced conversational capabilities.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published