openedai-vision 代码仓库
OpenGVLab/InternVL-Chat-V1-5-Int8 模型文件地址 示
算力平台AutoDL
df -h /root/autodl-tmp
tar -xvf FileName.tar
tar -xvf
安装
- 克隆我们的仓库并跳转到相应目录
2. 创建 conda 环境
conda create -n inter python=3.8 -y
conda activate inter
conda activate inter
3. 安装依赖
pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple
pip install gradio==3.40.0 -i https://pypi.mirrors.ustc.edu.cn/simple
手动安装说明
# install the python dependencies
pip install -U -r requirements.txt "transformers>=4.39.0" autoawq
# OR install the python dependencies for the alt version
pip install -U -r requirements.txt "transformers==4.36.2"
# run the server with your chosen model
python vision.py --model vikhyatk/moondream2
图像测试
opencompass/open_vlm排行榜
opencompass/open_vlm_leaderboard
查看磁盘空间大小
df -h /dev/sda1
在算力平台AutoDL遇到的报错:
root@autodl-container-cffc47b4c5-4a5f97c0:~/tf-logs# conda activate minicpmv2 CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
解决方法需要运行 :
conda init bash
解压zip文件
unzip filename.zip
unzip filename.zip -d /path/to/directory
ls -lh example.zip
显示文件大小