-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add IPFS integration * add rpc wait_timeout for ipfs peers * add more options, upgrade hivemind, add test * allow the use of persistent identities * ensure ipfs bootstrap success * commit docker recommendations --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
- Loading branch information
1 parent
27b1bda
commit a140804
Showing
5 changed files
with
79 additions
and
2 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,15 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND="noninteractive" | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
python3-full \ | ||
python3-pip \ | ||
python3-packaging \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
COPY . ./ | ||
RUN python3 -m pip install . -r tests/requirements.txt |
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,14 @@ | ||
version: '3.9' | ||
|
||
services: | ||
tests: | ||
image: lightning-universe/lightning-hivemind:latest | ||
command: pytest tests/ -v | ||
tty: true | ||
stdin_open: true | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ./src:/app/src | ||
- ./tests:/app/tests |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
numpy <2.0 # needed for older Torch | ||
torch <2.3 # fixme: freeze until AMP compatibility is resolved | ||
lightning >=2.0.0 | ||
hivemind >=1.1.0, <=1.1.5; sys_platform == 'linux' | ||
hivemind >=1.1.0, <=1.1.10.post2; sys_platform == 'linux' | ||
|
||
pydantic <2.0.0 # fixme: lift when resolved |
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
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