This repo provides a simple example of how to run inference with the QWen3 model using PyTorch.
Clone the repo:
git clone https://github.com/fengwang/qwen3-torchDownload model weights from huggingface.co:
cd qwen3-torch
git clone https://huggingface.co/Qwen/Qwen3-4B-Thinking-2507Make sure you have the required packages installed:
- PyTorch
- Safetensors
- Tokenizers
- jinja2
python3 qwen3_torch.py