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

xformers installation fix#731

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
santiatpml merged 2 commits intomasterfromsanti-xformers-dockerfile
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes fromall 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: 2 additions & 0 deletionspgml-extension/Dockerfile
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,6 +24,8 @@ RUN apt-get update && apt-get install -y postgresql-pgml-14
COPY --chown=postgres:postgres . /app
WORKDIR /app
RUN pip3 install -r requirements.txt
RUN pip3 install -r requirements-xformers.txt --no-dependencies

# Listen on 0.0.0.0 and allow 'root' to connect without a password.
# Please modify for production deployments accordingly.
RUN cp /app/docker/postgresql.conf /etc/postgresql/14/main/postgresql.conf
Expand Down
1 change: 1 addition & 0 deletionspgml-extension/requirements-xformers.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
xformers==0.0.20
1 change: 0 additions & 1 deletionpgml-extension/requirements.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,7 +18,6 @@ torchaudio==2.0.2
torchvision==0.15.2
tqdm==4.65.0
transformers==4.29.2
xformers==0.0.20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We use this file to install dependencies elsewhere, e.g. in our production cloud. Would it be possible to add another file, perhapsrequirements-xformers.txt to install that special package?

Copy link
Contributor

@levkklevkkJun 13, 2023
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think you can do:

requirements-xformers.txt

xformers==0.0.20 --no-dependencies

which is then installable with

pip install -r requirements-xformers.txt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm afraid that if we put this package only in the dockerfile, we'll forget to add it elsewhere where it's needed.

santiatpml reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

--no-dependencies has to be outside requirements.txt file.
pip install -r requirements-xformers.txt --no-dependencies

xgboost==1.7.5
langchain==0.0.180
einops==0.6.1

[8]ページ先頭

©2009-2025 Movatter.jp