Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/kan 162 public ip #582

Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f02bd57
Fix dummy cache allocation
artek0chumak Apr 11, 2024
e5dddfe
Try mps device selecting
artek0chumak Apr 11, 2024
0ca54a5
Rechain reloc
artek0chumak Apr 11, 2024
c76e447
infrastructure
jmikedupont2 Apr 15, 2024
661545f
tiny mixtral running locally
Apr 16, 2024
be69f31
grok
Apr 16, 2024
c98b532
docker changes
Apr 17, 2024
6124622
mixtral working
Apr 17, 2024
3365e2e
Merge branch 'feature/docker-compose'
Apr 17, 2024
1644e89
reformat black
Apr 17, 2024
db5cb42
update config
Apr 29, 2024
a13e098
Merge pull request #1 from jmikedupont2/feature/dht1
Bakobiibizo Apr 29, 2024
f2092ac
remove deps
Apr 29, 2024
5744205
added setup.sh and added .env.example
jmikedupont2 Apr 29, 2024
41cc828
Merge pull request #2 from jmikedupont2/main
Bakobiibizo Apr 29, 2024
e01d410
Merge branch 'main' into setup-and-env.example
Bakobiibizo Apr 29, 2024
1fcc81b
update
Apr 29, 2024
0bfd0cb
updat
Apr 29, 2024
d9ba0ef
onlineer
Apr 29, 2024
2679513
Merge pull request #4 from jmikedupont2/setup-and-env.example
Bakobiibizo Apr 29, 2024
b84507c
changing defaults to set disk space
May 2, 2024
804de46
sauerkraut
May 8, 2024
41a4aba
remove options
May 8, 2024
e59cc85
block count
May 8, 2024
1615f5e
Update dht1.cillium.prod.compute.agentartificial.com.txt
jmikedupont2 May 9, 2024
90c454c
updated
May 9, 2024
04132bd
update port
jmikedupont2 Apr 30, 2024
dea21b5
changing defaults to set disk space
May 2, 2024
cf70fc1
sauerkraut
May 8, 2024
7f90c06
changing setings
May 9, 2024
fa9ffaa
Merge pull request #7 from jmikedupont2/feature/sauerkraut
Bakobiibizo May 10, 2024
e4581cf
Update docker-compose.yml
jmikedupont2 May 13, 2024
82a84bd
Merge pull request #8 from jmikedupont2/patch-1
jmikedupont2 May 16, 2024
9caa5b6
bugfix
May 25, 2024
17287db
public ip
Jun 3, 2024
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
20 changes: 8 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
services:
backbone:
profiles: ["backbone"]
image: h4ckermike/petals:main
command: python -m petals.cli.run_dht --host_maddrs /ip4/0.0.0.0/tcp/8008 --identity_path /cache/bootstrap1.id
volumes:
- petals-cache-backbone:/cache
network_mode: host
ipc: host
restart: unless-stopped
envmodel_gpu:
profiles: ["miner","gpu"]
# build: .
image: h4ckermike/petals:main
environment:
- MAX_DISK_SPACE=${MAX_DISK_SPACE}
- PUBLIC_NAME=${PUBLIC_NAME}
- MODEL=${MODEL}
- INITIAL_PEERS=${INITIAL_PEERS}
- DEVICE=${DEVICE}
command: python -m petals.cli.run_server --port 31331 --num_blocks=1 $MODEL --initial_peers $INITIAL_PEERS --device=$DEVICE
- BLOCKS=${BLOCKS}
- PORT=${PORT}
command: python -m petals.cli.run_server --port 31331 --num_blocks=1 $MODEL --initial_peers $INITIAL_PEERS --device=$DEVICE --public-name $PUBLIC_NAME --max_disk_space $MAX_DISK_SPACE

ports:
- "31331:31331"
- "$PORT:$PORT"
restart: always
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
count: all
capabilities: [gpu]
volumes:
petals-cache-backbone:
9 changes: 6 additions & 3 deletions envs/dht1.cillium.dev.compute.agentartificial.com.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
INITIAL_PEERS=/dns/dht1.cillium.dev.compute.agentartificial.com/tcp/8008/p2p/Qmb3skfrki1PR8ww6nxvoGm51F5imK3e1DPMZgtay6ofE2
INITIAL_PEERS=/dns/dht1.cillium.dev.compute.agentartificial.com/tcp/8008/p2p/QmYUro5QJx3YvgC4A9UBXL3ESdb3wSHXZzqUL19Fmy5Gsp
DEVICE=cuda
MODEL=Maykeye/TinyLLama-v0
#MODEL=SanjiWatsuki/TinyMixtral-32x248M
PUBLIC_NAME=NameNotConfigured
MAX_DISK_SPACE=30GB
BLOCKS=2
#BLOCKS=33
MODEL=VAGOsolutions/SauerkrautLM-Mixtral-8x7B-Instruct
7 changes: 7 additions & 0 deletions envs/dht1.cillium.mixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INITIAL_PEERS=/dns/dht1.cillium.dev.compute.agentartificial.com/tcp/8008/p2p/QmYUro5QJx3YvgC4A9UBXL3ESdb3wSHXZzqUL19Fmy5Gsp:/dns/dht1.cillium.prod.compute.agentartificial.com/tcp/8008/p2p/QmRuzeEHPohDR4BGvArrBrqUNC2YPvTc1m5iwTXefdKra8
DEVICE=cuda
#MODEL=Maykeye/TinyLLama-v0
MODEL=VAGOsolutions/SauerkrautLM-Mixtral-8x7B
PUBLIC_NAME=NameNotConfigured
MAX_DISK_SPACE=30GB
BLOCKS=1
8 changes: 8 additions & 0 deletions envs/dht1.cillium.prod.compute.agentartificial.com.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
INITIAL_PEERS=/dns/dht1.cillium.prod.compute.agentartificial.com/tcp/8008/p2p/QmRuzeEHPohDR4BGvArrBrqUNC2YPvTc1m5iwTXefdKra8
DEVICE=cuda
#MODEL=Maykeye/TinyLLama-v0
MODEL=VAGOsolutions/SauerkrautLM-Mixtral-8x7B
PUBLIC_NAME=NameNotConfigured
MAX_DISK_SPACE=30GB
BLOCKS=1

7 changes: 7 additions & 0 deletions envs/dht1.cillium.prod.compute.agentartificial.com.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INITIAL_PEERS=/dns/dht1.cillium.prod.compute.agentartificial.com/tcp/8008/p2p/QmRuzeEHPohDR4BGvArrBrqUNC2YPvTc1m5iwTXefdKra8
DEVICE=cuda
PUBLIC_NAME=NameNotConfigured
MAX_DISK_SPACE=300GB
#BLOCKS=40
BLOCKS=2
MAX_DISK_SPACE=30GB
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INITIAL_PEERS=/dns/dht1.cillium.dev.compute.agentartificial.com/tcp/8008/p2p/Qmb3skfrki1PR8ww6nxvoGm51F5imK3e1DPMZgtay6ofE2
DEVICE=cuda
MODEL=VAGOsolutions/SauerkrautLM-Mixtral-8x7B-Instruct
BLOCKS=100
#MODEL=Maykeye/TinyLLama-v0
#MODEL=SanjiWatsuki/TinyMixtral-32x248M
PORT=31332
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
set -e

docker compose --profile miner --env-file envs/dht1.cillium.dev.compute.agentartificial.com.txt up -d
#sudo docker compose --profile miner --env-file envs/gpu/h100/dht1.cillium.dev.compute.agentartificial.com.txt up -d