Downloads · 30 days
13
17% of all-time downloads
RichardErkhov/consciousAI_-_question-answering-roberta-base-s-v2-4bits
consciousAI_-_question-answering-roberta-base-s-v2-4bits is a text generation model from RichardErkhov. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
13
17% of all-time downloads
All-time downloads
75
Public
Parameters
126M
127 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors127 MB · 97%
How the weights are stored.
U884.9M · 67%
From the Hugging Face model README
Quantization made by Richard Erkhov.
question-answering-roberta-base-s-v2 - bnb 4bits
license: apache-2.0 tags:
The model is intended to be used for Q&A task, given the question & context, the model would attempt to infer the answer text, answer span & confidence score.<br> Model is encoder-only (deepset/roberta-base-squad2) with QuestionAnswering LM Head, fine-tuned on SQUADx dataset with exact_match: 84.83 & f1: 91.80 performance scores.
Live Demo: Question Answering Encoders vs Generative
Please follow this link for Encoder based Question Answering V1 <br>Please follow this link for Generative Question Answering
Example code:
from transformers import pipeline
model_checkpoint = "consciousAI/question-answering-roberta-base-s-v2"
context = """
🤗 Transformers is backed by the three most popular deep learning libraries — Jax, PyTorch and TensorFlow — with a seamless integration
between them. It's straightforward to train your models with one before loading them for inference with the other.
"""
question = "Which deep learning libraries back 🤗 Transformers?"
question_answerer = pipeline("question-answering", model=model_checkpoint)
question_answerer(question=question, context=context)
SQUAD Split
Preprocessing:
Metrics:
Custom Training Loop: The following hyperparameters were used during training:
{'exact_match': 84.83443708609272, 'f1': 91.79987545811638}