Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9704582

Browse files
authored
use requirements.txt (#613)
1 parent63ebce3 commit9704582

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

‎.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
pkg-config \
2828
python3-pip \
2929
python3
30-
sudo pip3 installxgboost lightgbm scikit-learn
30+
sudo pip3 install-r requirements.txt
3131
-name:Cache dependencies
3232
uses:actions/cache@v3
3333
with:

‎pgml-docs/docs/developer_guide/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The development environment for each differs slightly, but overall we use Python
4949
With Python 3.7+ installed, install the package dependencies
5050
5151
```commandline
52-
sudo pip3 installxgboost lightgbm scikit-learn
52+
sudo pip3 install-r pgml-extension/requirements.txt
5353
```
5454
5555
5. Clone our git repository:

‎pgml-extension/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ RUN apt update && apt-fast install -y \
3232
python3-pip \
3333
libpython3.10-dev \
3434
python3.10-dev
35-
RUN pip3 install xgboost scikit-learn torch lightgbm transformers datasets sentence_transformers
3635
RUN useradd postgresml -m -s /bin/bash -G sudo
3736
RUN echo'postgresml ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
3837
USER postgresml
@@ -45,3 +44,4 @@ RUN sudo apt update
4544
RUN sudo apt-get install -y postgresql-15 postgresql-13 postgresql-12 postgresql-11
4645
RUN sudo apt install -y postgresql-server-dev-15 postgresql-server-dev-15 postgresql-server-dev-12 postgresql-server-dev-11
4746
WORKDIR /app
47+
RUN pip3 install -r requirements.txt

‎pgml-extension/Dockerfile.local

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ RUN cat /etc/apt/sources.list
1111
RUN apt-get update && apt-get install -y postgresql-pgml-14
1212

1313
# Cache this, quicker
14-
RUN pip3 install xgboost scikit-learn diptest torch lightgbm transformers datasets sentencepiece sentence_transformers sacremoses sacrebleu rouge
15-
1614
COPY --chown=postgres:postgres . /app
1715
WORKDIR /app
16+
RUN pip3 install -r requirements.txt
1817

1918
# Listen on 0.0.0.0 and allow 'root' to connect without a password.
2019
# Please modify for production deployments accordingly.

‎pgml-extension/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
accelerate==0.16.0
22
datasets==2.10.1
33
deepspeed==0.8.1
4+
InstructorEmbedding
45
lightgbm
56
pandas==1.5.3
67
rich==13.3.1
78
rouge
89
sacrebleu
10+
sacremoses
911
scikit-learn
1012
sentencepiece
1113
sentence-transformers==2.2.2
@@ -15,4 +17,3 @@ torchvision==0.14.1
1517
tqdm==4.64.1
1618
transformers==4.26.1
1719
xgboost
18-
InstructorEmbedding

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp