/ Модель

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

Лицензия
Своя лицензия
Библиотека
transformers
Опубликована
23 июл 2025

PLLuM-12b-nc-chat-2507

Генерация текстаТекст → текст

Польскоязычная чат-модель на 12 млрд параметров для диалогов, ответов на вопросы, суммаризации и создания ассистентов.

132скачиваний за 30 дней2лайкавеса обновлены7 авг 2025

Бенчмарки

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

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

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

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

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

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

PLLuM-12b-nc-chat-2507 — чат-модель семейства PLLuM, разработанная сначала консорциумом PLLuM, а с 2025 года развиваемая альянсом HIVE AI. Версия chat построена на Mistral-Nemo-Base-2407 и настроена для диалога с учётом человеческих предпочтений. Модель содержит 12 млрд параметров и распространяется в формате safetensors через Transformers.

Модель предназначена для генерации текста, ответов на вопросы, суммаризации и создания универсальных ассистентов. Она особенно ориентирована на польский язык, также обучалась на других славянских и балтийских языках и английском. Для задач польского государственного управления и юридической или бюрократической тематики авторы рекомендуют использовать её вместе с поиском по профильным документам через RAG.

Модель может галлюцинировать, сохранять предвзятость в спорных темах и испытывать трудности с очень длинным контекстом. Обучающие данные отражают источники, доступные до осени 2024 года. Для этой версии указана лицензия pllum-1.1; README отмечает, что коммерческое использование открытых моделей возможно с учётом применимых правовых требований.

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

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

Ограничения

Модель может выдавать фактически неверные или вымышленные сведения и проявлять предвзятость в спорных темах. Длинный контекст может затруднять работу; обучающие данные охватывают источники только до осени 2024 года.

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

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

Открыть на Hugging Face

PLLuM: A Family of Polish Large Language Models

Overview

PLLuM is a family of large language models (LLMs) specialized in Polish and other Slavic/Baltic languages, with additional English data incorporated for broader generalization. Developed through an extensive collaboration with various data providers, PLLuM models are built on high-quality text corpora and refined through instruction tuning, preference learning, and advanced alignment techniques. These models are intended to generate contextually coherent text, offer assistance in various tasks (e.g., question answering, summarization), and serve as a foundation for specialized applications such as domain-specific intelligent assistants. In 2024, PLLuM models were developed by the PLLuM consortium. Since 2025, their development has continued under HIVE AI, a broader alliance of research institutions and organizations delivering digital public services, focused on open language technologies for Polish public administration.

Key Highlights

  • Extensive Data Collection
    We gathered large-scale, high-quality text data in Polish (around 150B tokens after cleaning and deduplication) and additional text in Slavic, Baltic, and English languages. Part of these tokens (28B) can be used in fully open-source models, including for commercial use (in compliance with relevant legal regulations).

  • Organic Instruction Dataset
    We curated the largest Polish collection of manually created “organic instructions” (~40k prompt-response pairs, including ~3.5k multi-turn dialogs). This human-authored instruction set is based on an extensive typology of human-model interactions and it covers a range of subtle aspects of supervised fine-tuning (SFT) that might be overlooked with automated approaches (including large scale distillation of 'strong LLMs'). It was also designed to mitigate negative linguistic transfer from non-Polish textual data used in the pre-training phase.

  • Polish Preference Corpus
    We created the first Polish-language preference corpus, featuring prompts and multiple model responses manually assessed by a demographically diverse team of annotators. This dataset teaches the model not only correctness (factual and linguistic) but also balance and safety—especially for potentially controversial or adversarial topics.

  • Evaluation Benchmarks
    We developed custom benchmarks to evaluate our models on tasks relevant to Polish public administration, where PLLuM achieved top scores among all tested models. In broader Polish-language tasks, PLLuM models also attain state-of-the-art results.

Model Description

Below is a summary of the new PLLuM 12B-nc-250715 models. All model names link to their respective Hugging Face resources, while the base models and licenses link to the relevant source models or license references. The model with the -chat suffix has been aligned to human preferences and is generally safer and more efficient for use in dialogue and general-purpose scenarios.

Model NameParamsLicenseBased On
PLLuM-12B-nc-base-25071512Bpllum-1.2Mistral-Nemo-Base-2407
PLLuM-12B-nc-instruct-25071512Bpllum-1.0Mistral-Nemo-Base-2407
PLLuM-12B-nc-chat-25071512Bpllum-1.1Mistral-Nemo-Base-2407

Model Development

  • Pretraining: All models were pretrained or continued-pretrained on large-scale Polish corpora (up to 150B tokens) plus a range of English texts. The training data reflects sources available up to autumn 2024 and does not include more recent content.
  • Instruction Fine-Tuning: We fine-tuned the models using approximately 50k manually curated Polish "organic instructions," 30k programmatically derived instructions from high-quality Polish corpora, and 45k synthetic, context-aware instructions generated by high-performing, permissively licensed LLMs such as Mixtral8x22 and Deepseek V3.
  • Alignment and Preference Learning: Manually annotated preference data taught the models to produce safer, balanced, and contextually appropriate responses, even in adversarial or sensitive cases.

Intended Use Cases

  • General Language Tasks: Text generation, summarization, question answering, etc.
  • Domain-Specific Assistants: Especially effective for Polish public administration and legal or bureaucratic topics where domain-aware retrieval is required.
  • Research & Development: Building blocks for downstream AI applications in academic or industrial settings, where a strong command of the Polish language is essential.

How to Use

Each PLLuM model can be loaded via the Hugging Face Transformers library (or compatible frameworks). For RAG-based scenarios, pair the model with a relevant vector store or document retrieval system.

Below are some recommended steps and code snippets:

1. Installation

Make sure you have the latest versions of transformers and torch (or another compatible deep learning framework) installed:

pip install transformers accelerate torch

2. Loading the Model

Use the following example to load one of the PLLuM models:

from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "CYFRAGOVPL/PLLuM-12B-chat-250715"  # Replace with the PLLuM model name of your choice
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

3. Using bfloat16 (BF16)

If your hardware (e.g., newer GPUs) supports bfloat16, you can reduce memory usage and potentially speed up inference:

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "CYFRAGOVPL/PLLuM-12B-chat-250715"
tokenizer = AutoTokenizer.from_pretrained(model_name)

# Load model in bfloat16 precision
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype=torch.bfloat16,
    device_map="auto"  # automatically places model layers on available devices
)

4. Generating an Example Text


prompt = "Napisz krótki wiersz o wiośnie." # EN:"Write a short poem about spring."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=50,
    do_sample=True,
    top_k=50,
    top_p=0.9,
    temperature=0.3
)

generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)

5. Expected Output

Below is a sample (hypothetical) output for the prompt above:

Przykładowy wiersz o tematyce wiosennej:

Wiosna, wiosna, wiosna, ach to ty!
Kwiecień plecień wciąż przeplata,
trochę zimy, trochę lata.
A ja nie mogę się już doczekać,
kiedy w kalendarzu ujrzę maj.
Wtedy wszystko wkoło rozkwita,
a ptaki tak pięknie śpiewają.
Wiosno, wiosno, czekam z utęsknieniem,
zrób mi tę przyjemność i przyjdź wreszcie, proszę!

Your results may vary depending on model parameters (e.g., temperature, top_k, top_p), hardware, and other settings.

6. Retrieval Augmented Generation (RAG)

PLLuM-12B-nc-instruct-250715 and PLLuM-12B-nc-chat-250715 were additionally trained to perform well in Retrieval Augmented Generation (RAG) setting. The prompt is in .jinja format, where docs is a list of document texts and question is a query that should be answered based on the provided documents. If there is no answer in the provided documents model generates "Nie udało mi się odnaleźć odpowiedzi na pytanie".

Prompt:

Numerowana lista dokumentów jest poniżej:
---------------------
<results>{% for doc in docs %}
Dokument: {{ loop.index0 }}
{{ doc }}
{% endfor %}</results>
---------------------
Odpowiedz na pytanie użytkownika wykorzystując tylko informacje znajdujące się w dokumentach, a nie wcześniejszą wiedzę.
Udziel wysokiej jakości, poprawnej gramatycznie odpowiedzi w języku polskim. Odpowiedź powinna zawierać cytowania do dokumentów, z których pochodzą informacje. Zacytuj dokument za pomocą symbolu [nr_dokumentu] powołując się na fragment np. [0] dla fragmentu z dokumentu 0. Jeżeli w dokumentach nie ma informacji potrzebnych do odpowiedzi na pytanie, zamiast odpowiedzi zwróć tekst: "Nie udało mi się odnaleźć odpowiedzi na pytanie".

Pytanie: {{ question }}

Training Procedure

  • Datasets: ~150B tokens from Polish and multilingual sources, with ~28B tokens available for fully open-source commercial use.
  • Hyperparameters: Vary based on model size, typically including Adam or AdamW optimizers, a range of batch sizes, and carefully tuned learning rates.
  • Hardware & Duration: Training using Bem2 (up to 300xH100 GPUs) and Helios HPCs. The training time for each PLLuM model depends on its parameter size and hardware configuration, ranging from approximately 8 to 25 days on a multi-GPU cluster for models between 8B and 70B.

Evaluation and Benchmarks

  • Public Administration: PLLuM models demonstrated top-tier performance in specialized tasks relevant to government services.
  • Polish Language Tasks: Across a variety of internal benchmarks and standard corpora, PLLuM consistently outperforms other models in accuracy, coherence, and safety metrics.
  • Custom Tests: A unique preference corpus and alignment tests ensure robust, safe, and contextually accurate responses.

Limitations and Bias

  • Potential Hallucinations: Like other LLMs, PLLuM may occasionally produce factually incorrect or fabricated content.
  • Sensitivity & Bias: While extensive preference learning has been done, biases might still emerge, especially in controversial or subjective topics.
  • Context Length: Very long context tasks may challenge certain models, depending on memory constraints.

Ethical Considerations

PLLuM models are designed for constructive and responsible usage. Users should exercise caution when deploying them in production scenarios, especially for sensitive or regulated domains. Despite efforts to minimize harmful outputs, there is always a risk of generating offensive, biased, or inappropriate text. Human oversight and due diligence are advised.

Citation

If you use PLLuM models or any part of this repository in your research or deployment, please cite as follows (BibTeX):

@unpublished{pllum2025, 
    title={PLLuM: A Family of Polish Large Language Models}, 
    author={HIVE AI Consortium}, 
    year={2025} 
}

License

Model PLLuM 12B-nc-chat-250715 is published under PLLuM-1.1 license.

Creators & Consortium

The PLLuM-12B-nc-250715 models are the first to be trained under the banner of HIVE AI – a new initiative uniting scientific institutions and digital service providers working together to develop and implement open language technologies for the Polish public sector. HIVE AI continues the mission of the original PLLuM project, expanding it into a coordinated effort to build, improve, and deploy Polish language models in real-world administrative applications.

Contact and Support

For questions or contributions, please reach out via: hive@nask.pl

We welcome feedback, collaboration, and further exploration of PLLuM models!

Acknowledgements

Project financed by the Minister of Digital Affairs under the targeted subsidy No. 1/WII/DBI/2025: “HIVE AI: Development and Pilot Implementation of LLMs in the Polish Public Administration”

Funding Amount: approx. 19 mln PLN
Contract Signing Date: 2025-03-25

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

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

GPU в ailist

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

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

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
025e26b

0 моделей