Skip to content

Commit

Permalink
Merge pull request #115 from Datura-ai/main
Browse files Browse the repository at this point in the history
hotfix(validaor): update MAX_GPU_COUNT to 14
  • Loading branch information
pyon12 authored Dec 5, 2024
2 parents bfe95c1 + 8bdec1c commit 17f6f61
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 199 deletions.
2 changes: 1 addition & 1 deletion neurons/validators/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ RUN echo "export PYTHONPATH=$PYTHONPATH" >> ~/.bash_profile
COPY --from=base-image /root/app/ /root/app/
COPY --from=base-image /opt/pypackages/ /opt/pypackages/

LABEL version="3.2.5"
LABEL version="3.2.6"

CMD ["bash", "run.sh"]
2 changes: 1 addition & 1 deletion neurons/validators/Dockerfile.runner
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /root/validator
COPY docker-compose.app.yml docker-compose.yml
COPY entrypoint.sh /entrypoint.sh

LABEL version="3.2.5"
LABEL version="3.2.6"

RUN chmod u+x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2 changes: 1 addition & 1 deletion neurons/validators/src/services/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
UPLOAD_SPEED_WEIGHT = 0.05
DOWNLOAD_SPEED_WEIGHT = 0.05

MAX_GPU_COUNT = 8
MAX_GPU_COUNT = 14

UNRENTED_MULTIPLIER = 0.1

Expand Down
4 changes: 2 additions & 2 deletions neurons/validators/src/services/docker_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ async def delete_container(
client_keys=[pkey],
known_hosts=None,
) as ssh_client:
await ssh_client.run(f"docker stop {payload.container_name}")
# await ssh_client.run(f"docker stop {payload.container_name}")
await ssh_client.run(f"docker rm {payload.container_name} -f")
await ssh_client.run(f"docker volume rm {payload.volume_name}")
await ssh_client.run(f"docker volume rm {payload.volume_name} -f")

logger.info(
_m(
Expand Down
Loading

0 comments on commit 17f6f61

Please sign in to comment.