run.sh 610 Bytes
Newer Older
root's avatar
init  
root committed
1
pip3 install csghub-sdk==0.7.10
wangkx1's avatar
init  
wangkx1 committed
2

root's avatar
init  
root committed
3
4
5
6
7
8
9
10
11
12
13
14
path=$(python3 -c "import pycsghub.csghub_api; print(pycsghub.csghub_api.__file__)" 2>/dev/null)
if [ -n "$path" ]; then
    echo "path: $path"
else
    # fallback: find using python3's site-packages
    python3 -c "import site, os; packages = site.getsitepackages(); [print(os.path.join(p, 'pycsghub/csghub_api.py')) for p in packages if os.path.exists(os.path.join(p, 'pycsghub/csghub_api.py'))]" 2>/dev/null | head -1
fi

patch -N $path < change_private.patch
sed -n '178,182p' $path

python3 auto_upload.py /dcu_ai/models/FlagRelease/DeepSeek-V4-Flash-hygon-FlagOS --force