Accessing SciBERT Model
Hi everyone,I’m a complete beginner in using the Huggingface model. I’m trying to use the SciBERT model in Google Colab for an ablation study this way:model_name = "allenai/scibert_base_uncased/tree/main"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels=2)I am using a secret key in my colab session with ‘read’ access. But getting this error:HFValidationError: Repo id must be in the form ‘repo_name’ or ‘namespace/repo_name’: ‘allenai/scibert_base_uncased/tree/main’. Userepo_typeargument if needed.Can someone please specify what am I doing wrong here and how can I access the model? Also, any resource on how to do ablation on text data would be really appreciated. Thanks in advance.
2024-03-07T08:27:18Z
I can not find the exact model but here is a possible fix.model_name = "allenai/scibert_scivocab_uncased"You dont need to pass/tree/mainin the string for the model name.