/ Модель

Характеристики

Контекст
4 096 токенов
Параметры
2,5 млрд
Лицензия
MIT
Архитектура
plm · dense
Опубликована
2 мар 2025

PLM-1.8B-Instruct

Генерация текстаТекст → текст4 профессии

PLM-1.8B-Instruct — компактная диалоговая языковая модель для генерации текста, программирования и простых рассуждений на периферийных устройствах.

303скачиваний за 30 дней5лайковвеса обновлены5 апр 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

PLM-1.8B-Instruct — диалоговая языковая модель серии Peripheral Language Model, разработанная командой PLM-Team для запуска на периферийных устройствах с ограниченными ресурсами, например смартфонах и Raspberry Pi. В метаданных указаны плотная архитектура PLMForCausalLM, 2,5 млрд параметров и контекст до 4096 токенов. Модель принимает текст и генерирует текст; заявлены языки английский и китайский.

В архитектуре используются Multi-head Latent Attention и активация squared ReLU, которые, по описанию разработчиков, сокращают объём KV-кэша, число активируемых параметров и вычислительные затраты. Модель предназначена для диалогов, базовых знаний, программирования и простых рассуждений; в README приведены результаты тестов по этим направлениям. Разработчики указывают на низкую задержку и эффективность при обработке длинных последовательностей и послойной загрузке.

Модель опубликована под лицензией MIT. README описывает её как Instruct-модель и представляет результаты бенчмарков, но не уточняет базовую модель, процедуру обучения или ограничения точности; показатели бенчмарков не гарантируют качество в конкретных сценариях.

Сценарии применения

  • диалоговый помощник на смартфоне или Raspberry Pi
  • ответы на вопросы по базовым знаниям
  • генерация и дополнение кода
  • решение простых математических задач
  • обработка длинных текстовых запросов на устройствах с ограниченной памятью

Ограничения

Заявленное назначение ограничено базовыми знаниями, программированием и простыми рассуждениями; модель значительно меньше крупных универсальных LLM. Приведённые в карточке результаты бенчмарков не гарантируют точность для конкретных задач.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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.


News

The paper "PLM: Efficient Peripheral Language Models Hardware-Co-Designed for Ubiquitous Computing" has been released!

PLM Roadmap

PLM Hightlight

PLM demonstrates highly competitive performance along with a series of advantages stemming from its modeling and system co-design. These benefits include impressive inference speed, extreme sparsity, and reduced KV cache due to MLA, enabling it to outperform models with the same number of layers when handling long-context inference tasks at certain sequence lengths.

  • Sparse (Less activated parameters but better performance)
  • High efficiency (Generate content with low latency while having a good quality)
  • Low kv-cache on long-context processing leads to a low latency when inference with long sequences.
  • More efficiency when layer-wise loading.

Performance

PLM-1.8B is a strong and reliable model, particularly in basic knowledge understanding, coding and simple reasoning tasks.

BenchmarksPLM-InstructMiniCPMYulan-MiniSmolLM2Qwen2.5Qwen2GLM-Edge
ARC-C51.1443.8650.5150.2953.4143.9024.15
ARC-E78.1855.5169.8777.7879.1362.2136.83
MMLU51.1851.1349.1051.9159.7956.5054.84
CMMLU48.1848.9748.3533.4667.8270.3054.23
C-Eval44.9348.2451.4735.1069.0570.6055.05
GSM8K60.7353.8366.6547.6868.5046.9054.89
MathQA33.2330.5934.8434.3035.1431.6633.94
HumanEval64.6050.0061.6023.3537.2034.801.21
MBPP60.4047.3166.7045.0060.2046.903.44
BoolQ77.8673.5570.8972.2672.9172.6960.95
Hellaswag68.1753.0671.4771.4867.7365.4129.39
LogiQA30.1231.6429.6529.6531.0331.0222.73
PIQA76.0177.0476.5077.0476.0175.3574.32
Average57.29 (3rd)51.1357.51 (2nd)49.9559.84 (1st)54.4838.92

How to use PLM

Here we introduce some methods to use PLM models.

Hugging Face

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("PLM-Team/PLM-1.8B-Instruct")
model = AutoModelForCausalLM.from_pretrained("PLM-Team/PLM-1.8B-Instruct", torch_dtype=torch.bfloat16)

# Input text
input_text = "Tell me something about reinforcement learning."
inputs = tokenizer(input_text, return_tensors="pt")

# Completion
output = model.generate(inputs["input_ids"], max_new_tokens=100)
print(tokenizer.decode(output[0], skip_special_tokens=True))

llama.cpp

The original contribution to the llama.cpp framwork is Si1w/llama.cpp. Here is the usage:

git clone https://github.com/Si1w/llama.cpp.git
cd llama.cpp
pip install -r requirements.txt

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

  • For CPU
cmake -B build
cmake --build build --config Release
  • For GPU
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.

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.

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

Future works

  • Release vLLM, SGLang, and PowerInfer inference scripts for PLM.
  • Release reasoning model trained on PLM.
  • Release vision model based on PLM.

Acknowledgements

We sincerely thank Deepseek for its contributions to the community through the MLA architecture and the PowerInfer project for inspiring our model architecture design. We are grateful to Yixin Song, Yan Song, and Yang Li for their insightful suggestions throughout the project. We also acknowledge the ADC of the Hong Kong University of Science and Technology (Guangzhou) for providing essential computing resources. Finally, we extend our deepest appreciation to our team members for their dedication and contributions from September 2024 to the present.

License

The code in this repository is released under the MIT License. Limitations: While we strive to address safety concerns and promote the generation of ethical and lawful text, the probabilistic nature of language models may still produce unforeseen outputs. These may include biased, discriminatory, or otherwise harmful content. Users are advised not to disseminate such material. We disclaim any liability for consequences resulting from the distribution of harmful information.

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}, 
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
PLMForCausalLM
Ревизия весов
62d188c

0 моделей