Dear All,
I am trying the huggingface pre-trained library the first time and I am trying to pull this pre-trianed model in colab: ktrapeznikov/biobert_v1.1_pubmed_squad_v2 · Hugging Face
I am not sure why the runtime error is coming. Can someone please help:
Task: I am basically trying to replicate the question and answering using this model in colab.
code
%rm -rf biobert_v1.1_pubmed-finetuned-squad
!git clone gerardozq/biobert_v1.1_pubmed-finetuned-squad · Hugging Face
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained(“biobert_v1.1_pubmed-finetuned-squad”)
model = AutoModelForQuestionAnswering.from_pretrained(“biobert_v1.1_pubmed-finetuned-squad”)
RuntimeError: biobert_v1.1_pubmed-finetuned-squad/pytorch_model.bin is a zip archive (did you mean to use torch.jit.load()?)