CoolFace
Modelpublic

PLM-Team/PLM-1.8B-Instruct-gguf

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
2likes393downloads
Model Card

<center> <img src="https://www.cdeng.net/plm/plm_logo.png" alt="plm-logo" width="200"/> <h2>๐Ÿ–ฒ๏ธ PLM: Efficient Peripheral Language Models Hardware-Co-Designed for Ubiquitous Computing</h2> <a href='https://www.project-plm.com/'>๐Ÿ‘‰ Project PLM Website</a> </center>

<center>

<a href='https://arxiv.org/abs/2503.12167'><img src='https://img.shields.io/badge/Paper-ArXiv-C71585'></a><a href='https://huggingface.co/PLM-Team/PLM-1.8B-Base'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging Face-Base-red'></a><a href='https://huggingface.co/PLM-Team/PLM-1.8B-Instruct'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging Face-Instruct-red'></a><a href='https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging Face-gguf-red'></a><a href='https://huggingface.co/datasets/plm-team/scots'><img src='https://img.shields.io/badge/Data-plm%20mix-4169E1'></img></a><a><img src="https://img.shields.io/github/stars/plm-team/PLM"></a>

</center>


The PLM (Peripheral Language Model) series introduces a novel model architecture to peripheral computing by delivering powerful language capabilities within the constraints of resource-limited devices. Through modeling and system co-design strategy, PLM optimizes model performance and fits edge system requirements, PLM employs Multi-head Latent Attention and squared ReLU activation to achieve sparsity, significantly reducing memory footprint and computational demands. Coupled with a meticulously crafted training regimen using curated datasets and a Warmup-Stable-Decay-Constant learning rate scheduler, PLM demonstrates superior performance compared to existing small language models, all while maintaining the lowest activated parameters, making it ideally suited for deployment on diverse peripheral platforms like mobile phones and Raspberry Pis.

Here we present the static quants of https://huggingface.co/PLM-Team/PLM-1.8B-Instruct

Provided Quants

LinkTypeSize/GBNotes
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-F16.ggufF163.66GBRecommanded
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q2_K.ggufQ2_K827 MB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q3KL.ggufQ3KL1.09 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q3KM.ggufQ3KM1.01 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q3KS.ggufQ3KS912 MB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q4_0.ggufQ4_01.11 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q4_1.ggufQ4_11.21 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q4KM.ggufQ4KM1.18 GBRecommanded
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q4KS.ggufQ4KS1.12 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q5_0.ggufQ5_01.3 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q5_1.ggufQ5_11.4 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q5KM.ggufQ5KM1.34 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q5KS.ggufQ5KS1.3 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q6_K.ggufQ6_K1.5 GB
https://huggingface.co/PLM-Team/PLM-1.8B-Instruct-gguf/blob/main/PLM-1.8B-Instruct-Q8_0.ggufQ8_01.95 GBRecommanded

Usage (llama.cpp)

Now llama.cpp supports our model. Here is the usage:

bash
git clone https://github.com/Si1w/llama.cpp.git
cd llama.cpp

If you want to convert the orginal model into gguf form by yourself, you can

bash
pip install -r requirements.txt
python convert_hf_to_ggyf.py [model] --outtype {f32,f16,bf16,q8_0,tq1_0,tq2_0,auto}

Then, we can build with CPU of GPU (e.g. Orin). The build is based on cmake.

  • โ€”For CPU
bash
cmake -B build
cmake --build build --config Release
  • โ€”For GPU
bash
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release

Don't forget to download the GGUF files of the PLM. We use the quantization methods in llama.cpp to generate the quantized PLM.

bash
huggingface-cli download --resume-download PLM-Team/PLM-1.8B-Instruct-gguf --local-dir PLM-Team/PLM-1.8B-Instruct-gguf

After build the llama.cpp, we can use llama-cli script to launch the PLM.

bash
./build/bin/llama-cli -m ./PLM-Team/PLM-1.8B-Instruct-gguf/PLM-1.8B-Instruct-Q8_0.gguf -cnv -p "hello!" -n 128

Citation

If you find Project PLM helpful for your research or applications, please cite as follows:

@misc{deng2025plmefficientperipherallanguage,
      title={PLM: Efficient Peripheral Language Models Hardware-Co-Designed for Ubiquitous Computing}, 
      author={Cheng Deng and Luoyang Sun and Jiwen Jiang and Yongcheng Zeng and Xinjian Wu and Wenxin Zhao and Qingfa Xiao and Jiachuan Wang and Lei Chen and Lionel M. Ni and Haifeng Zhang and Jun Wang},
      year={2025},
      eprint={2503.12167},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2503.12167}, 
}