Skip to content

Commit

Permalink
Hunyuan3D-2 Special: TORCH_HOME is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Jan 22, 2025
1 parent 9937abc commit 30876e3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions pt25-cu124-hunyuan3d2/attachments/3-run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ rem set HTTPS_PROXY=http://localhost:1080
@REM This command redirects HuggingFace-Hub to download model files in this folder.
set HF_HUB_CACHE=%~dp0\HuggingFaceHub

@REM This command redirects Pytorch Hub to download model files in this folder.
set TORCH_HOME=%~dp0\TorchHome

@REM This command will set PATH environment variable.
set PATH=%PATH%;%~dp0\python_standalone\Scripts
set PATH=%PATH%;%CUDA_HOME%\bin
Expand Down
3 changes: 0 additions & 3 deletions pt25-cu124-hunyuan3d2/attachments/中文脚本/3-run_cn.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ set HF_ENDPOINT=https://hf-mirror.com
@REM 该环境变量指示 HuggingFace Hub 下载模型到"本目录\HuggingFaceHub",而不是"用户\.cache"目录。
set HF_HUB_CACHE=%~dp0\HuggingFaceHub

@REM 该环境变量指示 Pytorch Hub 下载模型到"本目录\TorchHome",而不是"用户\.cache"目录。
set TORCH_HOME=%~dp0\TorchHome

@REM 该命令配置 PATH 环境变量。
set PATH=%PATH%;%~dp0\python_standalone\Scripts
set PATH=%PATH%;%CUDA_HOME%\bin
Expand Down
2 changes: 0 additions & 2 deletions pt25-cu124-hunyuan3d2/stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export PATH="$PATH:$workdir/Hunyuan3D2_WinPortable/python_standalone/Scripts"
mkdir -p "$workdir"/Hunyuan3D2_WinPortable/extras
export HF_HUB_CACHE="$workdir/Hunyuan3D2_WinPortable/HuggingFaceHub"
mkdir -p "${HF_HUB_CACHE}"
export TORCH_HOME="$workdir/Hunyuan3D2_WinPortable/TorchHome"
mkdir -p "${TORCH_HOME}"

# Relocate python_standalone
mv "$workdir"/python_standalone "$workdir"/Hunyuan3D2_WinPortable/python_standalone
Expand Down

0 comments on commit 30876e3

Please sign in to comment.