This project aims to build a custom chatbot using Hugging Face models and Intel Extension for Transformers. The following steps will guide you through setting up the environment, installing necessary dependencies, and running the project.
First, we need to create and activate a new Conda environment.
bash
conda create -n itrex python=3.10
conda activate itrex
Next, we will install the Intel Extension for Transformers and its dependencies.
bash Copy code
pip install intel-extension-for-transformers
git clone https://github.com/intel/intel-extension-for-transformers.git
cd intel-extension-for-transformers/intel_extension_for_transformers/neural_chat/
pip install -r requirements_cpu.txt
pip install -r requirements.txt
To interact with Hugging Face models, log in to the Hugging Face CLI and set up Jupyter and IPython kernel.
bash Copy code
huggingface-cli login
python3 -m pip install jupyter ipykernel
python3 -m ipykernel install --name neural-chat --user
huggingface-cli login
This project demonstrates how to set up a custom chatbot using Hugging Face models and Intel Extension for Transformers. The steps outlined provide a clear guide for setting up the environment, installing necessary dependencies, and running the project.