forked from nomic-ai/gpt4all
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nomic-ai:main' into main
- Loading branch information
Showing
185 changed files
with
16,489 additions
and
707 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
version: 2.1 | ||
orbs: | ||
win: circleci/[email protected] | ||
python: circleci/[email protected] | ||
|
||
jobs: | ||
build-py-docs: | ||
docker: | ||
- image: circleci/python:3.8 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
# TODO: eventually this will be cleaned up so we aren't building | ||
# new dependencies each time unnecessarily. | ||
# This will be introduced once we setup branch and path filtering | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get -y install python3 python3-pip | ||
sudo pip3 install awscli --upgrade | ||
sudo pip3 install mkdocs mkdocs-material mkautodoc 'mkdocstrings[python]' | ||
- run: | ||
name: Make Documentation | ||
command: | | ||
cd gpt4all-bindings/python/ | ||
mkdocs build | ||
- run: | ||
name: Deploy Documentation | ||
command: | | ||
cd gpt4all-bindings/python/ | ||
aws s3 cp ./site s3://docs.gpt4all.io/ --recursive | cat | ||
- run: | ||
name: Invalidate docs.gpt4all.io cloudfront | ||
command: aws cloudfront create-invalidation --distribution-id E1STQOW63QL2OH --paths "/*" | ||
|
||
|
||
|
||
build-py-linux: | ||
docker: | ||
- image: circleci/python:3.8 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmake build-essential | ||
pip install setuptools wheel cmake | ||
- run: | ||
name: Build C library | ||
command: | | ||
git submodule init | ||
git submodule update | ||
cd gpt4all-backend | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . --parallel | ||
- run: | ||
name: Build wheel | ||
command: | | ||
cd gpt4all-bindings/python/ | ||
python setup.py bdist_wheel --plat-name=manylinux1_x86_64 | ||
- persist_to_workspace: | ||
root: gpt4all-bindings/python/dist | ||
paths: | ||
- "*.whl" | ||
|
||
build-py-macos: | ||
macos: | ||
xcode: "14.2.0" | ||
resource_class: macos.m1.large.gen1 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
brew install cmake | ||
pip install setuptools wheel cmake | ||
- run: | ||
name: Build C library | ||
command: | | ||
git submodule init | ||
git submodule update | ||
cd gpt4all-backend | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" | ||
cmake --build . --parallel | ||
- run: | ||
name: Build wheel | ||
command: | | ||
cd gpt4all-bindings/python | ||
python setup.py bdist_wheel --plat-name=macosx_10_9_universal2 | ||
- persist_to_workspace: | ||
root: gpt4all-bindings/python/dist | ||
paths: | ||
- "*.whl" | ||
|
||
build-py-windows: | ||
executor: | ||
name: win/default | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install MinGW64 | ||
command: choco install -y mingw --force --no-progress | ||
- run: | ||
name: Add MinGW64 to PATH | ||
command: $env:Path += ";C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" | ||
- run: | ||
name: Install dependencies | ||
command: choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System' | ||
- run: | ||
name: Install Python dependencies | ||
command: pip install setuptools wheel cmake | ||
- run: | ||
name: Build C library | ||
command: | | ||
git submodule init | ||
git submodule update | ||
cd gpt4all-backend | ||
mkdir build | ||
cd build | ||
cmake -G "MinGW Makefiles" .. | ||
cmake --build . --parallel | ||
- run: | ||
name: Build wheel | ||
# TODO: As part of this task, we need to move mingw64 binaries into package. | ||
# This is terrible and needs a more robust solution eventually. | ||
command: | | ||
cd gpt4all-bindings/python | ||
cd gpt4all | ||
mkdir llmodel_DO_NOT_MODIFY | ||
mkdir llmodel_DO_NOT_MODIFY/build/ | ||
cp 'C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\*dll' 'llmodel_DO_NOT_MODIFY/build/' | ||
cd .. | ||
python setup.py bdist_wheel --plat-name=win_amd64 | ||
- persist_to_workspace: | ||
root: gpt4all-bindings/python/dist | ||
paths: | ||
- "*.whl" | ||
|
||
store-and-upload-wheels: | ||
docker: | ||
- image: circleci/python:3.8 | ||
steps: | ||
- setup_remote_docker | ||
- attach_workspace: | ||
at: /tmp/workspace | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmake build-essential | ||
pip install setuptools wheel twine | ||
- run: | ||
name: Upload Python package | ||
command: | | ||
twine upload /tmp/workspace/*.whl --username __token__ --password $PYPI_CRED | ||
- store_artifacts: | ||
path: /tmp/workspace | ||
|
||
workflows: | ||
version: 2 | ||
deploy-docs: | ||
jobs: | ||
- build-py-docs: | ||
filters: | ||
branches: | ||
only: | ||
- main | ||
# build-py-deploy: | ||
# jobs: | ||
# - build-py-linux: | ||
# filters: | ||
# branches: | ||
# only: | ||
# - build-py-macos: | ||
# filters: | ||
# branches: | ||
# only: | ||
# - build-py-windows: | ||
# filters: | ||
# branches: | ||
# only: | ||
# - store-and-upload-wheels: | ||
# filters: | ||
# branches: | ||
# only: | ||
# requires: | ||
# - build-py-windows | ||
# - build-py-linux | ||
# - build-py-macos |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[codespell] | ||
skip = .git,*.pdf,*.svg | ||
# | ||
# ignore-words-list = |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: "\U0001F41B Bug Report" | ||
description: Submit a bug report to help us improve GPT4All | ||
labels: ["02 Bug Report"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Thank you for taking the time to file a bug report. Before creating a new | ||
issue, please make sure to take a few moments to check the issue tracker | ||
for existing issues about the bug. | ||
- type: textarea | ||
id: system-info | ||
attributes: | ||
label: System Info | ||
description: Please share your system info with us. | ||
placeholder: GPT4All version, platform, python version, etc... | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: information-scripts-examples | ||
attributes: | ||
label: Information | ||
description: "The problem arises when using:" | ||
options: | ||
- label: "The official example notebooks/scripts" | ||
- label: "My own modified scripts" | ||
|
||
- type: checkboxes | ||
id: related-components | ||
attributes: | ||
label: Related Components | ||
description: "Select the components related to the issue (if applicable):" | ||
options: | ||
- label: "backend" | ||
- label: "bindings" | ||
- label: "python-bindings" | ||
- label: "chat-ui" | ||
- label: "models" | ||
- label: "circleci" | ||
- label: "docker" | ||
- label: "api" | ||
|
||
- type: textarea | ||
id: reproduction | ||
validations: | ||
required: true | ||
attributes: | ||
label: Reproduction | ||
description: | | ||
Please provide a [code sample](https://stackoverflow.com/help/minimal-reproducible-example) that reproduces the problem you ran into. It can be a Colab link or just a code snippet. | ||
If you have code snippets, error messages, stack traces please provide them here as well. | ||
Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting | ||
Avoid screenshots when possible, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code. | ||
placeholder: | | ||
Steps to reproduce the behavior: | ||
1. | ||
2. | ||
3. | ||
- type: textarea | ||
id: expected-behavior | ||
validations: | ||
required: true | ||
attributes: | ||
label: Expected behavior | ||
description: "A clear and concise description of what you would expect to happen." |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
blank_issues_enabled: false | ||
version: 2.1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Documentation | ||
description: Report an issue related to the GPT4All documentation. | ||
title: "DOC: <Please write a comprehensive title after the 'DOC: ' prefix>" | ||
labels: [03 - Documentation] | ||
|
||
body: | ||
- type: textarea | ||
attributes: | ||
label: "Issue with current documentation:" | ||
description: > | ||
Please make sure to leave a reference to the document/code you're | ||
referring to. | ||
- type: textarea | ||
attributes: | ||
label: "Idea or request for content:" | ||
description: > | ||
Please describe as clearly as possible what topics you think are missing | ||
from the current documentation. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "\U0001F680 Feature Request" | ||
description: Submit a proposal/request for a new GPT4All feature | ||
labels: ["02 Feature Request"] | ||
body: | ||
- type: textarea | ||
id: feature-request | ||
validations: | ||
required: true | ||
attributes: | ||
label: Feature request | ||
description: | | ||
A clear and concise description of the feature proposal. Please provide links to any relevant GitHub repos, papers, or other resources if relevant. | ||
- type: textarea | ||
id: motivation | ||
validations: | ||
required: true | ||
attributes: | ||
label: Motivation | ||
description: | | ||
Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too. | ||
- type: textarea | ||
id: contribution | ||
validations: | ||
required: true | ||
attributes: | ||
label: Your contribution | ||
description: | | ||
Is there any way that you could help, e.g. by submitting a PR? Make sure to read the CONTRIBUTING.MD [readme](https://github.com/nomic-ai/gpt4all/blob/main/CONTRIBUTING.md) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Other Issue | ||
description: Raise an issue that wouldn't be covered by the other templates. | ||
title: "Issue: <Please write a comprehensive title after the 'Issue: ' prefix>" | ||
labels: [04 - Other] | ||
|
||
body: | ||
- type: textarea | ||
attributes: | ||
label: "Issue you'd like to raise." | ||
description: > | ||
Please describe the issue you'd like to raise as clearly as possible. | ||
Make sure to include any relevant links or references. | ||
- type: textarea | ||
attributes: | ||
label: "Suggestion:" | ||
description: > | ||
Please outline a suggestion to improve the issue here. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Describe your changes | ||
|
||
## Issue ticket number and link | ||
|
||
## Checklist before requesting a review | ||
- [ ] I have performed a self-review of my code. | ||
- [ ] If it is a core feature, I have added thorough tests. | ||
- [ ] I have added thorough documentation for my code. | ||
- [ ] I have tagged PR with relevant project labels. I acknowledge that a PR without labels may be dismissed. | ||
- [ ] If this PR addresses a bug, I have provided both a screenshot/video of the original bug and the working solution. | ||
|
||
## Demo | ||
<!-- Screenshots or video of new or updated code changes !--> | ||
|
||
### Steps to Reproduce | ||
<!-- Steps to reproduce demo !--> | ||
|
||
## Notes | ||
<!-- Any other relevant information to include about PR !--> |
Oops, something went wrong.