radlab / polish-qa-v2-bnb

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: October 04 2025
question-answering

Introduction of polish-qa-v2-bnb

Model Details of polish-qa-v2-bnb

Model Overview
  • Model name : radlab/polish-qa-v2-bnb
  • Developer : radlab.dev
  • Model type : Extractive Question‑Answering (QA)
  • Base model : sdadas/polish-roberta-large-v2 (fine‑tuned for QA)
  • Quantization : 8‑bit inference‑only quantization via bitsandbytes ( load_in_8bit=True , double‑quantization enabled, qa_outputs excluded from quantization)
  • Maximum context size : 512 tokens
Intended Use

This model is designed for extractive QA on Polish text. Given a question and a context passage, it returns the most relevant span of the context as the answer. This model is bnb-quantized version of radlab/polish-qa-v2 model.

Limitations
  • The model works best with contexts up to 512 tokens. Longer passages should be truncated or split.
  • 8‑bit quantization reduces memory usage and inference latency but may introduce a slight drop in accuracy compared with the full‑precision model.
  • Only suitable for inference; it cannot be further fine‑tuned while kept in 8‑bit mode.
How to Use
from transformers import pipeline

model_path = "radlab/polish-qa-v2-bnb"

qa = pipeline(
    "question-answering",
    model=model_path,
)

question = "Co będzie w budowanym obiekcie?"
context = """Pozwolenie na budowę zostało wydane w marcu. Pierwsze prace przygotowawcze
na terenie przy ul. Wojska Polskiego już się rozpoczęły.
Działkę ogrodzono, pojawił się również monitoring, a także kontenery
dla pracowników budowy. Na ten moment nie jest znana lista sklepów,
które pojawią się w nowym pasażu handlowym."""

result = qa(
    question=question,
    context=context.replace("\n", " ")
)

print(result)

Sample output

{
  "score": 0.32568359375,
  "start": 259,
  "end": 268,
  "answer": "sklepów,"
}
Technical Details
  • Quantization strategy : BitsAndBytesStrategy (8‑bit, double‑quant, qa_outputs excluded).
  • Loading code (for reference)
from transformers import AutoConfig, BitsAndBytesConfig, AutoModelForQuestionAnswering

config = AutoConfig.from_pretrained(original_path)
bnb_cfg = BitsAndBytesConfig(
    load_in_8bit=True,
    bnb_8bit_use_double_quant=True,
    bnb_8bit_excluded_modules=["qa_outputs"],
)

model = AutoModelForQuestionAnswering.from_pretrained(
    original_path,
    config=config,
    quantization_config=bnb_cfg,
    device_map="auto",
)

Runs of radlab polish-qa-v2-bnb on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About polish-qa-v2-bnb huggingface.co Model

More polish-qa-v2-bnb license Visit here:

https://choosealicense.com/licenses/cc

polish-qa-v2-bnb huggingface.co

polish-qa-v2-bnb huggingface.co is an AI model on huggingface.co that provides polish-qa-v2-bnb's model effect (), which can be used instantly with this radlab polish-qa-v2-bnb model. huggingface.co supports a free trial of the polish-qa-v2-bnb model, and also provides paid use of the polish-qa-v2-bnb. Support call polish-qa-v2-bnb model through api, including Node.js, Python, http.

polish-qa-v2-bnb huggingface.co Url

https://huggingface.co/radlab/polish-qa-v2-bnb

radlab polish-qa-v2-bnb online free

polish-qa-v2-bnb huggingface.co is an online trial and call api platform, which integrates polish-qa-v2-bnb's modeling effects, including api services, and provides a free online trial of polish-qa-v2-bnb, you can try polish-qa-v2-bnb online for free by clicking the link below.

radlab polish-qa-v2-bnb online free url in huggingface.co:

https://huggingface.co/radlab/polish-qa-v2-bnb

polish-qa-v2-bnb install

polish-qa-v2-bnb is an open source model from GitHub that offers a free installation service, and any user can find polish-qa-v2-bnb on GitHub to install. At the same time, huggingface.co provides the effect of polish-qa-v2-bnb install, users can directly use polish-qa-v2-bnb installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

polish-qa-v2-bnb install url in huggingface.co:

https://huggingface.co/radlab/polish-qa-v2-bnb

Url of polish-qa-v2-bnb

polish-qa-v2-bnb huggingface.co Url

Provider of polish-qa-v2-bnb huggingface.co

radlab
ORGANIZATIONS

Other API from radlab

huggingface.co

Total runs: 10
Run Growth: 7
Growth Rate: 70.00%
Updated:October 20 2024
huggingface.co

Total runs: 5
Run Growth: 2
Growth Rate: 40.00%
Updated:October 20 2024
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:October 04 2025
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:August 31 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 01 2025