赞
踩
里面包含依赖
git clone https://github.com/OpenVINO-dev-contest/Qwen2.openvino.git
conda create -name qwen2openvino python==3.10
conda activate qwen2openvino
pip install wheel setuptools
pip install -r requirements.txt
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download --resume-download --local-dir-use-symlinks False Qwen/Qwen1.5-0.5B-Chat --local-dir ./Qwen1.5-0.5B-Chat
python convert.py --model_id ./Qwen1.5-0.5B-Chat --precision int4 --output ./Qwen1.5-0.5B-Chat-ov
import os
os.environ["TOKENIZERS_PARALLELISM"] = "false"
【问题解决】module ‘triton.compiler‘ has no attribute ‘OutOfResources‘
python chat.py --model_path ./Qwen1.5-0.5B-Chat-ov --max_sequence_length 4096 --device GPU
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。