!apt -y install -qq aria2 !pip install -q torch==1.13.1+cu116 torchvision==0.14.1+cu116…
- User
!apt -y install -qq aria2 !pip install -q torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 torchtext==0.14.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org/whl/cu116 -U !git clone --recurse-submodules -j8 https://github.com/camenduru/gpt4all !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/aryan1107/gpt4all-llora/resolve/main/gpt4all-lora-quantized.bin -d /content/gpt4all/chat -o gpt4all-lora-quantized.bin !pip install colab-xterm %load_ext colabxterm
%xterm
Please copy and paste the code below in a terminal window. To paste, use Ctrl+Shift+V
cd /content/gpt4all/chat;./gpt4all-lora-quantized-linux-x86
Modify the above code to run in hugging face spaces using streamlit.
- Assistant
To run the code in Hugging Face Spaces using Streamlit, we can first create a new Python file called
app.pyand paste the following code:code