Downloads · 30 days
11
24% of all-time downloads
fawez9/gilper
gilper is a question answering model from fawez9. Use it when the input is a question plus a passage. The card lists the license as mit.
Gilper is a fine-tuned BERT-based model, designed specifically for question-answering tasks. It excels at answering questions given a relevant context, making it ideal for applications like customer support, knowledge…
Downloads · 30 days
11
24% of all-time downloads
All-time downloads
46
Public
Parameters
334M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
Gilper is a fine-tuned BERT-based model, designed specifically for question-answering tasks. It excels at answering questions given a relevant context, making it ideal for applications like customer support, knowledge base queries, and more.
To use Gilper, you need the Hugging Face Transformers library. Install it using:
pip install transformers
Here’s an example of how to use Gilper with the Transformers library:
from transformers import BertTokenizerFast, BertForQuestionAnswering, pipeline
import torch
# Load the tokenizer and model
tokenizer = BertTokenizerFast.from_pretrained('bert-large-uncased-whole-word-masking-finetuned-squad')
model = BertForQuestionAnswering.from_pretrained('bert-large-uncased-whole-word-masking-finetuned-squad')
# Define question-answering pipeline
question_answerer = pipeline(
"question-answering",
model="fawez9/gilper",
tokenizer="fawez9/gilper",
device=0 if torch.cuda.is_available() else -1
)
# Example input
question = "How many parameters does BLOOM have?"
context = "BLOOM has 176 billion parameters and can generate text in 46 natural languages and 13 programming languages."
# Get response
response = question_answerer(question=question, context=context)
print(response)
While Gilper is highly effective at question answering, it has the following limitations:
If you use Gilper in your research or applications, please cite it as:
@misc{gilper2024,
title={Gilper: Fine-Tuned BERT Model for Question Answering},
author={Fawez},
year={2024},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/fawez9/gilper}}
}
We welcome feedback and contributions! If you encounter issues or have suggestions for improvements, please open an issue or submit a pull request.