Skip to content

use requirements.txt #613

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

Merged
merged 1 commit into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
pkg-config \
python3-pip \
python3
sudo pip3 install xgboost lightgbm scikit-learn
sudo pip3 install -r requirements.txt
- name: Cache dependencies
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion pgml-docs/docs/developer_guide/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The development environment for each differs slightly, but overall we use Python
With Python 3.7+ installed, install the package dependencies

```commandline
sudo pip3 install xgboost lightgbm scikit-learn
sudo pip3 install -r pgml-extension/requirements.txt
```

5. Clone our git repository:
Expand Down
2 changes: 1 addition & 1 deletion pgml-extension/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ RUN apt update && apt-fast install -y \
python3-pip \
libpython3.10-dev \
python3.10-dev
RUN pip3 install xgboost scikit-learn torch lightgbm transformers datasets sentence_transformers
RUN useradd postgresml -m -s /bin/bash -G sudo
RUN echo 'postgresml ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
USER postgresml
Expand All @@ -45,3 +44,4 @@ RUN sudo apt update
RUN sudo apt-get install -y postgresql-15 postgresql-13 postgresql-12 postgresql-11
RUN sudo apt install -y postgresql-server-dev-15 postgresql-server-dev-15 postgresql-server-dev-12 postgresql-server-dev-11
WORKDIR /app
RUN pip3 install -r requirements.txt
3 changes: 1 addition & 2 deletions pgml-extension/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ RUN cat /etc/apt/sources.list
RUN apt-get update && apt-get install -y postgresql-pgml-14

# Cache this, quicker
RUN pip3 install xgboost scikit-learn diptest torch lightgbm transformers datasets sentencepiece sentence_transformers sacremoses sacrebleu rouge

COPY --chown=postgres:postgres . /app
WORKDIR /app
RUN pip3 install -r requirements.txt

# Listen on 0.0.0.0 and allow 'root' to connect without a password.
# Please modify for production deployments accordingly.
Expand Down
3 changes: 2 additions & 1 deletion pgml-extension/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
accelerate==0.16.0
datasets==2.10.1
deepspeed==0.8.1
InstructorEmbedding
lightgbm
pandas==1.5.3
rich==13.3.1
rouge
sacrebleu
sacremoses
scikit-learn
sentencepiece
sentence-transformers==2.2.2
Expand All @@ -15,4 +17,3 @@ torchvision==0.14.1
tqdm==4.64.1
transformers==4.26.1
xgboost
InstructorEmbedding
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy