Instructions to use aisingapore/SPANBert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aisingapore/SPANBert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="aisingapore/SPANBert") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("aisingapore/SPANBert") model = AutoModelForQuestionAnswering.from_pretrained("aisingapore/SPANBert") - Notebooks
- Google Colab
- Kaggle
Running from huggingface gets 403 Error.
#1
by imranraad - opened
Hello,
The model gets 403 Client Error: Forbidden for url: https://storage.googleapis.com/sgnlp/models/reccon_span_extraction/config.json
Do you know how to solve the issue? Are the config and model files available for public use? If available, how to access it?
Thank you
Hi!
My apologies for the error. We are in the midst of migrating the configs and weights to a public bucket.
Could you kindly try replacing the URL with the following? (replace sgnlp with sgnlp-models in the URL)
https://storage.googleapis.com/sgnlp-models/models/reccon_span_extraction/config.json
Please let us know if you have encountered further issues.
Thank you for your reply. It worked!
RaymondAISG changed discussion status to closed