Created
August 14, 2023 23:02
-
-
Save vilaca/c6ff6b35bc4d72def445cf5d547f1846 to your computer and use it in GitHub Desktop.
arm64 privategpt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git –recurse-submodules clone https://github.com/nomic-ai/gpt4all.git | |
git clone –recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
git clone -–recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
git clone https://github.com/nomic-ai/gpt4all.git | |
cd gpt4all/ | |
apt-get update && apt-get install cmake build-essential -y | |
apt-get update | |
apt-get upgrade | |
cd gpt4all-backend/ | |
ll | |
mkdir build | |
cd build/ | |
cmake .. | |
cd .. | |
git clone -–recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
git clone --recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
rm -rf gpt4all/ | |
git clone --recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
cd gpt4all/gpt4all-backend/ | |
ll | |
apt-get update && apt-get install cmake build-essential -y | |
mkdir build && cd build | |
cmake .. | |
cmake –build . | |
cd ../../gpt4all-bindings/python &&pip3 install -e . | |
apt install python3-pip | |
pip3 install -e . | |
cd | |
git clone https://github.com/imartinez/privateGPT.git | |
cd privateGPT/ | |
mkdir models && cd models | |
wget https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin | |
cd .. | |
vi requirements.txt | |
pip3 install -r requirements.txt | |
python3 ingest.py | |
pip3 install -r requirements.txt | |
pip -V | |
pip3 -V | |
vi requirements.txt | |
pip3 -V | |
pip install --upgrade pip | |
pip3 install -r requirements.txt | |
python3 ingest.py | |
vi ingest.py | |
mv example.env .env | |
python3 ingest.py | |
pip install sentence_transformers | |
python3 ingest.py | |
python3 privateGPT.py | |
vi privateGPT.py | |
python3 privateGPT.py | |
cd ../gpt4all/gpt4all-backend/build/ | |
ll | |
ll CMake | |
ll CMakeFiles/ | |
sudo apt install xclip | |
history | xclip -i | |
history | xclip -i selection clipboard | |
history > ~/history.txt | |
vi ~/history.txt | |
cat ~/.lesshst | |
la ~ | |
history -w | |
git –recurse-submodules clone https://github.com/nomic-ai/gpt4all.git | |
git clone –recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
git clone -–recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
git clone https://github.com/nomic-ai/gpt4all.git | |
cd gpt4all/ | |
apt-get update && apt-get install cmake build-essential -y | |
apt-get update | |
apt-get upgrade | |
cd gpt4all-backend/ | |
ll | |
mkdir build | |
cd build/ | |
cmake .. | |
cd .. | |
git clone -–recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
git clone --recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
rm -rf gpt4all/ | |
git clone --recurse-submodules https://github.com/nomic-ai/gpt4all.git | |
cd gpt4all/gpt4all-backend/ | |
ll | |
apt-get update && apt-get install cmake build-essential -y | |
mkdir build && cd build | |
cmake .. | |
cmake –build . | |
cd ../../gpt4all-bindings/python &&pip3 install -e . | |
apt install python3-pip | |
pip3 install -e . | |
cd | |
git clone https://github.com/imartinez/privateGPT.git | |
cd privateGPT/ | |
mkdir models && cd models | |
wget https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin | |
cd .. | |
vi requirements.txt | |
pip3 install -r requirements.txt | |
python3 ingest.py | |
pip3 install -r requirements.txt | |
pip -V | |
pip3 -V | |
vi requirements.txt | |
pip3 -V | |
pip install --upgrade pip | |
pip3 install -r requirements.txt | |
python3 ingest.py | |
vi ingest.py | |
mv example.env .env | |
python3 ingest.py | |
pip install sentence_transformers | |
python3 ingest.py | |
python3 privateGPT.py | |
vi privateGPT.py | |
python3 privateGPT.py | |
cd ../gpt4all/gpt4all-backend/build/ | |
ll | |
ll CMake | |
ll CMakeFiles/ | |
sudo apt install xclip | |
history | xclip -i | |
history | xclip -i selection clipboard | |
history > ~/history.txt | |
vi ~/history.txt | |
cat ~/.lesshst | |
la ~ | |
history -w | |
history -w /dev/stdout | |
history -w /dev/stdout > ~/history.txt | |
exit | |
cat history.txt | |
history -w ~/history.txt |
Clone the main repository and its submodules
git clone --recurse-submodules https://github.com/nomic-ai/gpt4all.git
cd gpt4all/
Install dependencies and build backend
sudo apt-get update && sudo apt-get install cmake build-essential -y
cd gpt4all-backend/
mkdir build && cd build
cmake ..
cmake --build .
cd ../..
Install Python bindings
cd gpt4all-bindings/python
pip3 install -e .
cd ../..
Clone and set up privateGPT repository
git clone https://github.com/imartinez/privateGPT.git
cd privateGPT/
mkdir models && cd models
wget https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin
cd ..
pip3 install -r requirements.txt
python3 ingest.py
pip3 install -r requirements.txt
Set up privateGPT environment
mv example.env .env
pip install sentence_transformers
python3 ingest.py
python3 privateGPT.py
cd ..
Display history and save it to a file
history > ~/history.txt
cat ~/.lesshst
Save history to a text file
history -w /dev/stdout > ~/history.txt
Exit the terminal session
exit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://documentingthings.wordpress.com/2023/07/10/chatgpt-x-raspberry-pi/
nomic-ai/gpt4all#799
https://github.com/nomic-ai/gpt4all/blob/main/gpt4all-bindings/python/README.md