Downloads · 30 days
14
38% of all-time downloads
siouni/YuE-s2-1B-general-onnx-q4
YuE-s2-1B-general-onnx-q4 is a machine learning model from siouni. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
ベースモデル m-a-p/YuE-s2-1B-general 上記のモデルを4bit量子化とonnx形式へ変換したモデルです。 性能劣化がありますのでご注意ください。
Downloads · 30 days
14
38% of all-time downloads
All-time downloads
37
Public
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.data1.4 GB · 99%
From the Hugging Face model README
ベースモデル
m-a-p/YuE-s2-1B-general
上記のモデルを4bit量子化とonnx形式へ変換したモデルです。
性能劣化がありますのでご注意ください。
githubにて、このモデルを使用したツールを作成中です。
YuE-q4onnx-win
Generate models using Model Builder
https://onnxruntime.ai/docs/genai/howto/build-model.html
適当なフォルダに仮想環境を作り、onnxruntime(optimum)とonnxruntime-genaiをインストールします。
私はwindows11+python 3.10で実行しました。
また、pwshを使用していますので、コマンドプロンプトの場合は適当に読み替えてください。
python -m venv venv
venv\Scripts\activate
# linuxなら↓
venv/Script/activate
pip install optimum[onnxruntime]
pip install --pre onnxruntime-genai
python -m onnxruntime_genai.models.builder -m m-a-p/YuE-s2-1B-general -o ./onnx_models/YuE-s2-1B-general-onnx-q4 -p int4 -e cuda -c ./models/
curl https://huggingface.co/m-a-p/YuE-s2-1B-general/resolve/main/config.json?download=true > ./onnx_models/YuE-s2-1B-general-onnx-q4/config.json