-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/fireworks integration #2089
Open
somashekhar161
wants to merge
22
commits into
zylon-ai:main
Choose a base branch
from
somashekhar161:feat/fireworks-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+305
−74
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f1ad995
FEAT: Added Fireworks Integration
somashekhar161 a38675b
FEAT: Added Fireworks Integration
somashekhar161 2d5865e
FEAT: Added fixed UI mode name
somashekhar161 c5c1f9b
fixed at ui height overlow
somashekhar161 241637f
FEAT: Added Fireworks integration
somashekhar161 4d22546
Added dockerfile and docker-compose for fireworks
somashekhar161 519c48b
Merge branch 'main' of github.com:somashekhar161/private-gpt into fea…
somashekhar161 9c3590e
Added embedded model option for fireworks \n Added documentation for …
somashekhar161 cecec30
fixed test black error
somashekhar161 80f15a1
fixed ruff chekc
somashekhar161 b807e50
fixed mypy private_gpt for llama-index
somashekhar161 6a46060
fixed mypy ignored mypy-llama-index-embeddings-fireworks
somashekhar161 03e8809
fixed mypy ignored llama-index-embeddings-fireworks
somashekhar161 0ff7a06
fixed mypy ignored tool.mypy-llama_index.embeddings.fireworks
somashekhar161 b2ffe5b
fixed mypy
somashekhar161 16d1f60
fixed mypy ignored tool.mypy-llama_index.embeddings.fireworks
somashekhar161 b8cb49a
updated dependencies poetry lock
somashekhar161 2052ff4
added # type: ignore for embeddings.fireworks
somashekhar161 5334dda
fixed ruff and black
somashekhar161 c846b3f
revert back to main branch's dependecy version
somashekhar161 62985df
resolved dependecies
somashekhar161 c4be3f8
Merge branch 'zylon-ai:main' into feat/fireworks-integration
somashekhar161 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,54 @@ | ||
FROM python:3.11.6-slim-bookworm as base | ||
|
||
# Install poetry | ||
RUN pip install pipx | ||
RUN python3 -m pipx ensurepath | ||
RUN pipx install poetry==1.8.3 | ||
ENV PATH="/root/.local/bin:$PATH" | ||
ENV PATH=".venv/bin/:$PATH" | ||
|
||
RUN apt update && apt install -y \ | ||
build-essential | ||
|
||
# https://python-poetry.org/docs/configuration/#virtualenvsin-project | ||
ENV POETRY_VIRTUALENVS_IN_PROJECT=true | ||
|
||
FROM base as dependencies | ||
WORKDIR /home/worker/app | ||
COPY pyproject.toml poetry.lock ./ | ||
|
||
ARG POETRY_EXTRAS="ui llms-fireworks embeddings-fireworks vector-stores-qdrant embeddings-openai" | ||
RUN poetry install --no-root --extras "${POETRY_EXTRAS}" | ||
|
||
FROM base as app | ||
ENV PYTHONUNBUFFERED=1 | ||
ENV PORT=8080 | ||
ENV APP_ENV=prod | ||
ENV PYTHONPATH="$PYTHONPATH:/home/worker/app/private_gpt/" | ||
EXPOSE 8080 | ||
|
||
# Prepare a non-root user | ||
# More info about how to configure UIDs and GIDs in Docker: | ||
# https://github.com/systemd/systemd/blob/main/docs/UIDS-GIDS.md | ||
|
||
# Define the User ID (UID) for the non-root user | ||
# UID 100 is chosen to avoid conflicts with existing system users | ||
ARG UID=100 | ||
|
||
# Define the Group ID (GID) for the non-root user | ||
# GID 65534 is often used for the 'nogroup' or 'nobody' group | ||
ARG GID=65534 | ||
|
||
RUN adduser --system --gid ${GID} --uid ${UID} --home /home/worker worker | ||
WORKDIR /home/worker/app | ||
|
||
RUN chown worker /home/worker/app | ||
RUN mkdir local_data && chown worker local_data | ||
RUN mkdir models && chown worker models | ||
COPY --chown=worker --from=dependencies /home/worker/app/.venv/ .venv | ||
COPY --chown=worker private_gpt/ private_gpt | ||
COPY --chown=worker *.yaml . | ||
COPY --chown=worker scripts/ scripts | ||
|
||
USER worker | ||
ENTRYPOINT python -m private_gpt |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as Dockerfile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here i have used how other docker files and docker-compose are written
followed those template so that it won't be outsider :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say the same. It is not the core of PGPT, therefore, we should not give this kind of support. Our goal is to give a 100% private solution, in this area, our two main providers are Ollama and Llama-CPP. Of course, this PR gives more value to other people with the same problems, but it doesn't make sense to maintain on docker-compose and Dockerfile.