Skip to content

Commit

Permalink
Merge pull request #119 from Datura-ai/main
Browse files Browse the repository at this point in the history
hotfix: libnvidia-ml.so.1 file path issue
  • Loading branch information
pyon12 authored Dec 8, 2024
2 parents 45e660e + ef1c03e commit 65eca46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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.7"
LABEL version="3.2.8"

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.7"
LABEL version="3.2.8"

RUN chmod u+x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
6 changes: 3 additions & 3 deletions neurons/validators/src/miner_jobs/machine_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,9 @@ def random_string(length: int = 30) -> str:
def get_libnvidia_ml_path():
try:
original_path = run_cmd("find /usr -name 'libnvidia-ml.so.1'").strip()
lib_path = f"/usr/bin/{random_string(random.randint(10, 20))}"
run_cmd(f"cp {original_path} {lib_path}")
return lib_path
# lib_path = f"/usr/bin/{random_string(random.randint(10, 20))}"
# run_cmd(f"cp {original_path} {lib_path}")
return original_path
except:
return ''

Expand Down

0 comments on commit 65eca46

Please sign in to comment.