Views
No views yet
1# Download the model directly using the Hugging Face CLI
2hf download onnx-community/Qwen3-14B-ONNX --include onnxruntime/cpu_and_mobile/cpu-int4-kld-block-128/* --local-dir .
3
4# Install the CPU package of ONNX Runtime GenAI
5pip install onnxruntime-genai
6
7# Please adjust the model directory (-m) accordingly
8curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
9curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-chat.py -o model-chat.py
10python model-chat.py -m onnxruntime/cpu_and_mobile/cpu-int4-kld-block-128/ -e follow_config1# Download the model directly using the Hugging Face CLI
2hf download onnx-community/Qwen3-14B-ONNX --include onnxruntime/cuda/cuda-int4-kld-block-128/* --local-dir .
3
4# Install the CUDA package of ONNX Runtime GenAI
5pip install onnxruntime-genai-cuda
6
7# Please adjust the model directory (-m) accordingly
8curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
9curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-chat.py -o model-chat.py
10python model-chat.py -m onnxruntime/cuda/cuda-int4-kld-block-128 -e follow_config1# Download the model directly using the Hugging Face CLI
2hf download onnx-community/Qwen3-14B-ONNX --include onnxruntime/webgpu/webgpu-int4-kld-block-32/* --local-dir .
3
4# Install the WebGPU packages of ONNX Runtime and ONNX Runtime GenAI
5pip install onnxruntime-webgpu
6pip install onnxruntime-genai --no-deps
7
8# Please adjust the model directory (-m) accordingly
9curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/common.py -o common.py
10curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/model-chat.py -o model-chat.py
11python model-chat.py -m onnxruntime/webgpu/webgpu-int4-kld-block-32 -e follow_config