Skip to content

Commit

Permalink
Dedupe files at each dependency installation step on rocm
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 authored Feb 5, 2024
1 parent 3d9c1ab commit 9bbcc7c
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ pushd "automatic"
# remove installation log
rm sdnext.log
popd

{% if ROCm %}
# Dedupe files
rdfind -checksum sha256 -makehardlinks true .
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ pushd "axolotl"
deactivate
{% endif %}
popd

{% if ROCm %}
# Dedupe files
rdfind -checksum sha256 -makehardlinks true .
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ pushd "ComfyUI"
pip3 install -r requirements.txt
deactivate
popd

{% if ROCm %}
# Dedupe files
rdfind -checksum sha256 -makehardlinks true .
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ pushd "SillyTavern-Extras"
pip3 install -r requirements-rvc.txt
deactivate
popd

{% if ROCm %}
# Dedupe files
rdfind -checksum sha256 -makehardlinks true .
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ pushd "text-generation-webui"
pip3 install -r extensions/openai/requirements.txt
deactivate
popd

{% if ROCm %}
# Dedupe files
rdfind -checksum sha256 -makehardlinks true .
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ pushd "vllm"
deactivate
{% endif %}
popd

{% if ROCm %}
# Dedupe files
rdfind -checksum sha256 -makehardlinks true .
{% endif %}
3 changes: 3 additions & 0 deletions packages.x86_64.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ rocm-hip-sdk

# Required for SillyTavern-Extras
gtk3

# File deduplication
rdfind
{% endif %}

0 comments on commit 9bbcc7c

Please sign in to comment.