Skip to content

DAILtech/Qwen3-deploy-for-developer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Qwen3-deploy-for-developer

Guidance of Qwen3 local-deploying for developer, and Interactive CLI chat script.

Display (Take Qwen3-8B as an example, mode) :
image

1. Create a new environment (strong recommanded):

conda create -n qwen python=3.10 -y
# reset terminal
source ~/.bashrc
# activate llava
conda activate qwen

2. Install modelscope

pip install modelscope

3. Install requirements

pip install transformers==4.51.0 accelerate==0.24.0 peft==0.4.0 bitsandbytes==0.41.1 protobuf==3.20.3
pip install gradio==3.50.2 scipy tqdm
pip install protobuf==3.20.3

4. Download the model

Clone repository

git clone https://github.com/DAILtech/Qwen3-deploy-for-developer

Download the model, take Qwen3-8B as an example:

cd ./Qwen3-deploy-for-developer/Qwen3
mkdir ./Qwen3-8B
modelscope download --model Qwen/Qwen3-8B --local_dir ./Qwen3-8B

5. Using CLI to interact with the model

default parameters:
model path: ./Qwen3-8B
max output tokens: 4096
temperature: 0.7
top-p: 0.9

example:

# default:
python CLI.py                 # default ./Qwen3-8B
# customization:
python CLI.py --model qwen/Qwen1.5-7B-Chat --max-tokens 2048

Type quit or ctrl-c to quit.

About

Local deployment guidance of Qwen3 for developer, and CLI script implementation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages