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 przygotowawczena terenie przy ul. Wojska Polskiego już się rozpoczęły.Działkę ogrodzono, pojawił się również monitoring, a także kontenerydla 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)
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 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:
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.