Run this model with HF Jobs
Run aleksahet/BERTic-squad-sr-lat 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 to fine-tune https://huggingface.co/aleksahet/BERTic-squad-sr-lat. 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/aleksahet/BERTic-squad-sr-lat 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.
Instructions to use aleksahet/BERTic-squad-sr-lat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aleksahet/BERTic-squad-sr-lat with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="aleksahet/BERTic-squad-sr-lat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("aleksahet/BERTic-squad-sr-lat") model = AutoModelForQuestionAnswering.from_pretrained("aleksahet/BERTic-squad-sr-lat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
BERTić-SQuAD-sr-lat
BERTić-SQuAD-sr-lat is a Question Answering neural network for Serbian. It is obtained by fine-tuning BERTić on a synthetically generated Serbian QA dataset based on SQuAD v1.1.
Usage
from transformers import pipeline
model_name = 'aleksahet/BERTic-squad-sr-lat'
pipe = pipeline('question-answering', model=model_name, tokenizer=model_name)
sample = {
'question': 'Kojim sportom se bavi Novak Đoković?',
'context': 'Novak Đoković (Beograd, 22. maj 1987) srpski je teniser. Mnogi teniski kritičari, bivši igrači i saigrači smatraju Đokovića jednim od najboljih tenisera u istoriji.'
}
res = pipe(sample)
Performance
The model vas evaluated on XQuAD samples translated to Serbian. We report the following results:
- Exact Match:
73.91% - F1:
82.97%
- Downloads last month
- 7