taobao-mnn/MiniCPM5-2B-MNN
2217
MiniCPM5-2B-MNN
Introduction
This model is a 4-bit quantized version of the MNN model exported from MiniCPM5-2B using llmexport.
Download
# install huggingface
pip install huggingface# shell download
huggingface download --model 'taobao-mnn/MiniCPM5-2B-MNN' --local_dir 'path/to/dir'# SDK download
from huggingface_hub import snapshot_download
model_dir = snapshot_download('taobao-mnn/MiniCPM5-2B-MNN')# git clone
git clone https://www.modelscope.cn/taobao-mnn/MiniCPM5-2B-MNNUsage
# clone MNN source
git clone https://github.com/alibaba/MNN.git
# compile
cd MNN
mkdir build && cd build
cmake .. -DMNN_LOW_MEMORY=true -DMNN_BUILD_LLM=true -DMNN_SUPPORT_TRANSFORMER_FUSE=true
make -j
# run
./llm_demo /path/to/MiniCPM5-2B-MNN/config.json prompt.txt