19 lines
859 B
Markdown
19 lines
859 B
Markdown
# 运行方式
|
||
|
||
```python
|
||
docker pull git.modelhub.org.cn:9443/enginex-hygon/pytorch:2.4.1-ubuntu22.04-dtk25.04-py3.10-fixpy
|
||
# 为以上拉取的docker的镜像ID替换,本镜像为:6063b673703a
|
||
docker run -it --shm-size=64G -v $PWD/BLIP3o:/home/BLIP3o -v /opt/hyhal:/opt/hyhal:ro --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name blip3o bash
|
||
|
||
cd /home/BLIP3o
|
||
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
|
||
pip install whl/bitsandbytes-0.42.0+das.opt1.dtk2504-py3-none-any.whl # bitsandbytes==0.42
|
||
pip install whl/torchaudio-2.1.2+das.opt2.dtk24043-cp310-cp310-manylinux_2_28_x86_64.whl # torchaudio==2.1.2
|
||
|
||
cd diffusers
|
||
pip install -e . -i https://mirrors.aliyun.com/pypi/simple # diffusers==0.32.2
|
||
|
||
cd /home/BLIP3o
|
||
pip install -e . -i https://mirrors.aliyun.com/pypi/simple # blip3o==0.1.0
|
||
```
|