Instructions to use xichenn/albert-base-v2-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xichenn/albert-base-v2-squad with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="xichenn/albert-base-v2-squad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("xichenn/albert-base-v2-squad") model = AutoModelForQuestionAnswering.from_pretrained("xichenn/albert-base-v2-squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signature957e2ab -
Update README.md
Verified signature8f49ff1 -
Update README.md
Verified signature46db420 -
Update README.md
Verified signature14fa938 -
Update README.md
Verified signature758a15c -
Update README.md
Verified signature1bc6f6c -
Update README.md
Verified signature87d605b -
Update README.md
Verified signature79166f8 -
Update README.md
Verified signature9d3305d -
Update README.md
Verified signatureaab0ee7 -
Update README.md
Verified signatured2980b3 -
Update README.md
Verified signature43cc09b -
Update README.md
Verified signaturec3ce025 -
Update README.md
Verified signaturea8009b2 -
Upload tokenizer
XiVerified signaturec05c0e3 -
Upload AlbertForQuestionAnswering
XiVerified signaturee089db8 -
initial commit
XiVerified signature351cd83