大语言模型复现常见bug及解决方法

【项目一】https://github.com/deep-floyd/IF复现中的错误处理

【项目简介】

开源AI绘画扛把子,Stable Diffusion背后公司StabilityAI再放大招!
全新开源模型DeepFloyd IF,一下获星2千+并登上GitHub热门榜。

  1. DeepFloyd IF仍然基于扩散模型,但与之前的Stable Diffusion相比有两大不同。
  2. 负责理解文字的部分从OpenAI的CLIP换成了谷歌T5-XXL,结合超分辨率模块中额外的注意力层,获得更准确的文本理解。
  3. 负责生成图像的部分从潜扩散模型换成了像素级扩散模型。 也就是扩散过程不再作用于表示图像编码的潜空间,而是直接作用于像素。
    详细介绍请参考【量子位】的介绍Stable Diffusion团队放大招!新绘画模型直出AI海报,实现像素级图像生成

项目地址:https://github.com/deep-floyd/IF

【安装】

安装CLIP卡住,或者报错

Collecting git+https://github.com/openai/CLIP.git
Cloning https://github.com/openai/CLIP.git to /tmp/pip-req-build-aksx1g0m
Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git /tmp/pip-req-build-aksx1g0m

【解决方法】

git clone git@github.com:openai/CLIP.git
cd CLIP
pip install .

【错误】1. bitsandbytes/libbitsandbytes_cpu.so: undefined symbol: cget_col_row_stats

【解决方法】

重新安装cudatoolkit

conda uninstall cudatoolkit -y
conda install cudatoolkit -y

【错误】2. TypeError: Descriptors cannot not be created directly

TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

【解决方法】

pip install 'protobuf<=3.20.1' --force-reinstall
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值