Run this model with HF Jobs

Run ipipan/Bielik-11B-IPIS-Proofreader on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/ipipan/Bielik-11B-IPIS-Proofreader. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ipipan/Bielik-11B-IPIS-Proofreader on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/ipipan/Bielik-11B-IPIS-Proofreader. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/ipipan/Bielik-11B-IPIS-Proofreader. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Bielik-11B-IPIS-Proofreader

Bielik-11B-IPIS-Proofreader is a Polish large language model for gender-inclusive proofreading. It rewrites text in standard Polish into a gender-inclusive version: it replaces generic masculine forms with feminine forms, masculine–feminine dyads or neutral expressions, and fixes the grammatical agreement of the words that depend on them.

The model is speakleash/Bielik-11B-v2.3-Instruct instruction-tuned on the proofreading config of the Inclusive Polish Instruction Set (IPIS). It is the best-performing model in the paper Integrating gender inclusivity into large language models via instruction tuning.

Usage

The model was trained without a system prompt, and this setting gives the best results (see Evaluation). Write the instruction and the text to proofread in a single user message.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "ipipan/Bielik-11B-IPIS-Proofreader"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")

prompt = "Przeredaguj tekst na język równościowy: "
text = "Tegoroczni laureaci Oscarów pozowali na czerwonym dywanie."

messages = [{"role": "user", "content": prompt + text}]

inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=1024, do_sample=False)

print(tokenizer.decode(outputs[0, inputs.shape[1]:], skip_special_tokens=True))

Possible outputs:

Tegoroczne laureatki i tegoroczni laureaci Oscarów pozowały/pozowali na czerwonym dywanie.

Example user prompts

During training, each example was paired with one of 260 Polish user prompts. Any similar instruction works, for example:

  • Przeredaguj tekst na język równościowy: (Rewrite the text into gender-inclusive language:)
  • Jeśli tekst w języku polskim zawiera treści wykluczające lub krzywdzące, przekształć go na wersję równościową. Tekst: (If the text in Polish contains exclusionary or harmful content, transform it into an inclusive version. Text:)
  • Zmodyfikuj tekst napisany w standardowym języku polskim, żeby był napisany w języku równościowym. Tekst wejściowy: (Modify the text written in standard Polish so that it is written in gender-inclusive language. Input text:)

Text that is already gender-inclusive or gender-neutral should be returned unchanged.

Training

Data

The model was trained on the proofreading config of IPIS: 23,532 train instructions, with the 2,732-instruction dev split used for monitoring. IPIS is built on open-access Polish texts from diverse genres, manually rewritten into gender-inclusive versions by trained linguists:

  • European and Polish legal acts (e.g. the Charter of Fundamental Rights of the EU, the Constitution of Poland);
  • institutional documents of ICS PAS;
  • the National Corpus of Polish (NKJP1M);
  • Polish parliamentary transcripts from ParlaMint (2022).

Two annotators rewrote each text independently and a third reviewed both versions. When both versions were accepted, both were included. Gendered dyads make up about 80% of all changes (coordination ≈38%, gender star ≈25%, slash ≈15%); feminine and neutral expressions make up the remaining ≈22%.

Procedure

The model was instruction-tuned with low-rank adaptation (LoRA), using DeepSpeed ZeRO, Flash Attention 2 and the Hugging Face transformers, trl (SFTTrainer), peft and datasets libraries. Cross-entropy loss was computed on both prompt and completion tokens (the trl default).

Hyperparameter Value
LoRA rank (r) 128
LoRA alpha (α) 256
LoRA dropout 0.05
Epochs 3
Per-device train batch size 2
Gradient accumulation steps 4
Learning rate 2e-5
LR scheduler cosine
Warmup ratio 0.05
Weight decay 1e-3
Max sequence length 4096
Attention implementation Flash Attention 2

Evaluation

Metrics

The model is evaluated on the IPIS proofreading test split (5,278 instances).

  • Precision, recall, F1 (main metrics): model outputs and gold targets are normalised by lowercasing, removing punctuation and conjunctions, and expanding every gender-inclusive expression into its full masculine and feminine forms. The normalised token bags are then compared, so word order does not matter, and all notations (coordination, slash, gender star) are treated as equivalent. The normalised gold targets are in the normalised_target field of the dataset. Tokenisation uses Lambo and POS tagging uses Combo.
  • BLEU, chrF: these measure how close the output is to the reference. They show whether the model keeps the structure and content of the input and does not hallucinate.

Results

Bielik-11B in its default, few-shot and IPIS-tuned versions, with no system prompt or with the gender-inclusive system prompt in Polish (-pl) or English (-en). This model is tuned.

Setting Precision Recall F1 BLEU chrF
default 0.32 0.59 0.42 39.12 66.54
default-pl 1.45 9.34 2.51 56.56 83.93
default-en 1.60 13.62 2.86 55.79 84.72
fewshot 1.09 4.57 1.76 52.91 80.23
fewshot-pl 1.35 11.83 2.42 54.92 84.01
fewshot-en 1.31 8.74 2.28 53.69 82.93
tuned 63.93 56.26 59.85 95.22 97.99
tuned-pl 29.24 50.32 36.99 91.82 96.93
tuned-en 52.30 51.59 51.94 94.82 97.61

Bielik-11B-IPIS-Proofreader has the highest F1 of all tested IPIS-tuned models:

IPIS-tuned model Precision Recall F1 BLEU chrF
Llama-3.1-8B-Instruct 57.02 41.51 48.04 93.92 97.47
Mistral-7B-Instruct-v0.2 39.55 47.80 43.29 93.54 97.25
Mistral-Nemo-Instruct-2407 (12B) 57.16 48.81 52.66 94.45 97.72
Llama-PLLuM-8B-chat 61.91 46.40 53.04 94.28 97.64
Bielik-7B-Instruct-v0.1 54.67 52.37 53.49 94.67 97.71
PLLuM-12B-nc-chat 62.80 54.97 58.62 95.10 97.95
Bielik-11B-v2.3-Instruct 63.93 56.26 59.85 95.22 97.99

Limitations

  • Binary gender inclusion. The model produces feminine forms, masculine–feminine dyads and neutral expressions. It does not produce non-binary forms, which are not yet standardised in Polish. The gender-star notation it uses (following Wróblewska et al., 2025) can be extended to non-binary forms in future versions.
  • Possible incorrect forms. The model may sometimes produce malformed gender-star forms or change non-personal words. Human review of the output is recommended.
  • Language scope. The model is trained for Polish proofreading only. For translation between English and gender-inclusive Polish, see the IPIS translation and translation-augmented configs.
  • Domain coverage. The training data covers legal, institutional, general-domain and parliamentary texts. Performance on other genres (e.g. social media, highly technical text) has not been evaluated.

Credits

If you use this model, please cite:

@misc{wróblewska2025integratinggenderinclusivitylarge,
      title={Integrating gender inclusivity into large language models via instruction tuning},
      author={Alina Wróblewska and Bartosz Żuk},
      year={2025},
      eprint={2508.18466},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2508.18466},
}

Acknowledgments

This model was developed as part of the Universal Discourse: a multilingual model of discourse relations project, funded by the Polish National Science Centre (grant number: 2023/50/A/HS2/00559).

The base model, Bielik-11B-v2.3-Instruct, was developed by SpeakLeash and ACK Cyfronet AGH.

Licence

The model is released under the Apache 2.0 licence, the same as its base model. The IPIS training data is released under CC-BY-SA-4.0.

© Institute of Computer Science PAS

Downloads last month
23
Safetensors
Model size
11B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ipipan/Bielik-11B-IPIS-Proofreader

Adapter
(2)
this model

Dataset used to train ipipan/Bielik-11B-IPIS-Proofreader

Collection including ipipan/Bielik-11B-IPIS-Proofreader

Paper for ipipan/Bielik-11B-IPIS-Proofreader