Views
No views yet
1# install huggingface
2pip install huggingface1# shell download
2huggingface download --model 'taobao-mnn/Qwen3Guard-Gen-4B-MNN' --local_dir 'path/to/dir'1# SDK download
2from huggingface_hub import snapshot_download
3model_dir = snapshot_download('taobao-mnn/Qwen3Guard-Gen-4B-MNN')1# git clone
2git clone https://www.modelscope.cn/taobao-mnn/Qwen3Guard-Gen-4B-MNN1# clone MNN source
2git clone https://github.com/alibaba/MNN.git
3
4# compile
5cd MNN
6mkdir build && cd build
7cmake .. -DMNN_LOW_MEMORY=true -DMNN_CPU_WEIGHT_DEQUANT_GEMM=true -DMNN_BUILD_LLM=true -DMNN_SUPPORT_TRANSFORMER_FUSE=true
8make -j
9
10# run
11./llm_demo /path/to/Qwen3Guard-Gen-4B-MNN/config.json prompt.txt