1
stars
2,309
commits
Python
primary language
Jul 15, 2023
updated
Turn ★ into ⭐ (top-right corner) if you like the project!
Watch these YouTube Videos:
For questions, discussing, or just hanging out, come and join our Discord!
Technical Paper: https://arxiv.org/pdf/2306.08161.pdf
AchyuthGPT is a large language model (LLM) fine-tuning framework and chatbot UI with document(s) question-answer capabilities. Documents help to ground LLMs against hallucinations by providing them context relevant to the instruction. AchyuthGPT is fully permissive Apache V2 open-source project for 100% private and secure use of LLMs and document embeddings for document question-answer.
Welcome! Join us and make an issue or a PR, and contribute to making the best fine-tuned LLMs, chatbot UI, and document question-answer framework!
GPU mode requires CUDA support via torch and transformers. A 6.9B (or 12GB) model in 8-bit uses 8GB (or 13GB) of GPU memory. 8-bit or 4-bit precision can further reduce memory requirements down no more than about 6.5GB when asking a question about your documents (see low-memory mode).
CPU mode uses GPT4ALL and LLaMa.cpp, e.g. gpt4all-j, requiring about 14GB of system RAM in typical use.
GPU and CPU mode tested on variety of NVIDIA GPUs in Ubuntu 18-22, but any modern Linux variant should work. MACOS support tested on Macbook Pro running Monterey v12.3.1 using CPU mode.
Light mode with soft colors talking to cat image:

Dark mode with AchyuthGPT.ai colors:

https://user-images.githubusercontent.com/6147661/232924684-6c0e2dfb-2f24-4098-848a-c3e4396f29f6.mov
All open-source datasets and models are posted on 🤗 AchyuthGPT.ai's Hugging Face page.
Also check out AchyuthGPT LLM Studio for our no-code LLM fine-tuning framework!
First one needs a Python 3.10 environment. For help installing a Python 3.10 environment, see Install Python 3.10 Environment. On newer Ubuntu systems and environment may be installed by just doing:
sudo apt-get install -y build-essential gcc python3.10-dev
virtualenv -p python3 AchyuthGPT
source AchyuthGPT/bin/activate
Check your installation by doing:
python --version # should say 3.10.xx
pip --version # should say pip 23.x.y ... (python 3.10)
On some systems, pip still refers back to the system one, then one can use python -m pip or pip3 instead of pip or try python3 instead of python.
After Python 3.10 environment installed:
git clone https://github.com/AchyuthGPTai/AchyuthGPT.git
cd AchyuthGPT
# fix any bad env
pip uninstall -y pandoc pypandoc pypandoc-binary
# broad support, but no training-time or data creation dependencies
for fil in requirements.txt reqs_optional/requirements_optional_langchain.txt reqs_optional/requirements_optional_gpt4all.txt reqs_optional/requirements_optional_langchain.gpllike.txt reqs_optional/requirements_optional_langchain.urls.txt ; do pip install -r $fil ; done
# Optional: support docx, pptx, ArXiv, etc.
sudo apt-get install -y libmagic-dev poppler-utils tesseract-ocr libreoffice
# Optional: for supporting unstructured package
python -m nltk.downloader all
Place all documents in user_path or upload in UI.
UI using GPU with at least 24GB with streaming:
python generate.py --base_model=AchyuthGPTai/AchyuthGPT-oasst1-512-12b --load_8bit=True --score_model=None --langchain_mode='UserData' --user_path=user_path
UI using CPU
python generate.py --base_model='llama' --prompt_type=wizard2 --score_model=None --langchain_mode='UserData' --user_path=user_path
pip install requirements-parser ; pytest -s -v tests client/testsFlash attention support, see Flash Attention
Docker for inference.
More Links, context, competitors, models, datasets
Our Makers at AchyuthGPT.ai have built several world-class Machine Learning, Deep Learning and AI platforms:
We also built platforms for deployment and monitoring, and for data wrangling and governance:
Many of our customers are creating models and deploying them enterprise-wide and at scale in the AchyuthGPT AI Cloud:
We are proud to have over 25 (of the world's 280) Kaggle Grandmasters call AchyuthGPT home, including three Kaggle Grandmasters who have made it to world #1.
Please read this disclaimer carefully before using the large language model provided in this repository. Your use of the model signifies your agreement to the following terms and conditions.
By using the large language model provided in this repository, you agree to accept and comply with the terms and conditions outlined in this disclaimer. If you do not agree with any part of this disclaimer, you should refrain from using the model and any content generated by it.
(top 30 of 33)
Python
91.5%
TeX
7.2%
1
stars
2,309
commits
Python
primary language
Jul 15, 2023
updated
Turn ★ into ⭐ (top-right corner) if you like the project!
Watch these YouTube Videos:
For questions, discussing, or just hanging out, come and join our Discord!
Technical Paper: https://arxiv.org/pdf/2306.08161.pdf
AchyuthGPT is a large language model (LLM) fine-tuning framework and chatbot UI with document(s) question-answer capabilities. Documents help to ground LLMs against hallucinations by providing them context relevant to the instruction. AchyuthGPT is fully permissive Apache V2 open-source project for 100% private and secure use of LLMs and document embeddings for document question-answer.
Welcome! Join us and make an issue or a PR, and contribute to making the best fine-tuned LLMs, chatbot UI, and document question-answer framework!
GPU mode requires CUDA support via torch and transformers. A 6.9B (or 12GB) model in 8-bit uses 8GB (or 13GB) of GPU memory. 8-bit or 4-bit precision can further reduce memory requirements down no more than about 6.5GB when asking a question about your documents (see low-memory mode).
CPU mode uses GPT4ALL and LLaMa.cpp, e.g. gpt4all-j, requiring about 14GB of system RAM in typical use.
GPU and CPU mode tested on variety of NVIDIA GPUs in Ubuntu 18-22, but any modern Linux variant should work. MACOS support tested on Macbook Pro running Monterey v12.3.1 using CPU mode.
Light mode with soft colors talking to cat image:

Dark mode with AchyuthGPT.ai colors:

https://user-images.githubusercontent.com/6147661/232924684-6c0e2dfb-2f24-4098-848a-c3e4396f29f6.mov
All open-source datasets and models are posted on 🤗 AchyuthGPT.ai's Hugging Face page.
Also check out AchyuthGPT LLM Studio for our no-code LLM fine-tuning framework!
First one needs a Python 3.10 environment. For help installing a Python 3.10 environment, see Install Python 3.10 Environment. On newer Ubuntu systems and environment may be installed by just doing:
sudo apt-get install -y build-essential gcc python3.10-dev
virtualenv -p python3 AchyuthGPT
source AchyuthGPT/bin/activate
Check your installation by doing:
python --version # should say 3.10.xx
pip --version # should say pip 23.x.y ... (python 3.10)
On some systems, pip still refers back to the system one, then one can use python -m pip or pip3 instead of pip or try python3 instead of python.
After Python 3.10 environment installed:
git clone https://github.com/AchyuthGPTai/AchyuthGPT.git
cd AchyuthGPT
# fix any bad env
pip uninstall -y pandoc pypandoc pypandoc-binary
# broad support, but no training-time or data creation dependencies
for fil in requirements.txt reqs_optional/requirements_optional_langchain.txt reqs_optional/requirements_optional_gpt4all.txt reqs_optional/requirements_optional_langchain.gpllike.txt reqs_optional/requirements_optional_langchain.urls.txt ; do pip install -r $fil ; done
# Optional: support docx, pptx, ArXiv, etc.
sudo apt-get install -y libmagic-dev poppler-utils tesseract-ocr libreoffice
# Optional: for supporting unstructured package
python -m nltk.downloader all
Place all documents in user_path or upload in UI.
UI using GPU with at least 24GB with streaming:
python generate.py --base_model=AchyuthGPTai/AchyuthGPT-oasst1-512-12b --load_8bit=True --score_model=None --langchain_mode='UserData' --user_path=user_path
UI using CPU
python generate.py --base_model='llama' --prompt_type=wizard2 --score_model=None --langchain_mode='UserData' --user_path=user_path
pip install requirements-parser ; pytest -s -v tests client/testsFlash attention support, see Flash Attention
Docker for inference.
More Links, context, competitors, models, datasets
Our Makers at AchyuthGPT.ai have built several world-class Machine Learning, Deep Learning and AI platforms:
We also built platforms for deployment and monitoring, and for data wrangling and governance:
Many of our customers are creating models and deploying them enterprise-wide and at scale in the AchyuthGPT AI Cloud:
We are proud to have over 25 (of the world's 280) Kaggle Grandmasters call AchyuthGPT home, including three Kaggle Grandmasters who have made it to world #1.
Please read this disclaimer carefully before using the large language model provided in this repository. Your use of the model signifies your agreement to the following terms and conditions.
By using the large language model provided in this repository, you agree to accept and comply with the terms and conditions outlined in this disclaimer. If you do not agree with any part of this disclaimer, you should refrain from using the model and any content generated by it.
(top 30 of 33)
Python
91.5%
TeX
7.2%