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