Open lizelive opened 1 year ago
@lizelive, The error means you need upgrade your transformers package. The linked page has description about package versions:
deepspeed==0.7.5
deepspeed-mii==0.0.3
diffusers==0.7.1
transformers==4.24.0
triton==2.0.0.dev20221005 (This does not exist, and you can use 2.0.0.dev20221031 instead)
Ubuntu 20.04.4 LTS
Python 3.9.15
You can pip install one by one like pip install deepspeed==0.7.5
.
I can run the benchmark script mii-sd.py with above packages and get similar latency (with torch 1.13.1 and CUDA 11.7, although the page recommend torch 1.12.1 + cuda 11.6).
ran into a few issues trying to run https://github.com/microsoft/DeepSpeed-MII/tree/main/examples/benchmark/txt2img
i don't see an easy way to work around SAFE_WEIGHTS_NAME
to reproduce
docker run -it --rm --gpus=all --ipc=host -p 127.0.0.1:8888:8888 -v root-cache:/root/.cache --ulimit=memlock=-1 --ulimit=stack=67108864 nvcr.io/nvidia/pytorch:23.02-py3 jupyter lab --allow-root --ip=* --port=8888 --no-browser --NotebookApp.token='' --NotebookApp.allow_origin='*'
and then runpip install pytorch-lightning diffusers transformers scipy safetensors accelerate deepspeed[sd] deepspeed-mii
here is the error
showing version numbers