Instructions to use darshan7/qa_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use darshan7/qa_model 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="darshan7/qa_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("darshan7/qa_model") model = AutoModelForQuestionAnswering.from_pretrained("darshan7/qa_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tf_model.h5 from darshan7/qa_model: direct link, hf CLI and curl.
- Browser
- Download file 266 MB
-
https://huggingface.co/darshan7/qa_model/resolve/main/tf_model.h5
- Command line
-
hf download hf://darshan7/qa_model/tf_model.h5
-
curl -L -o tf_model.h5 https://huggingface.co/darshan7/qa_model/resolve/main/tf_model.h5
266 MB
- Xet hash:
- 43476b7c0599c612aeff86b142b180d79be95084d96d10b656dfe412deab7ba3
- Size of remote file:
- 266 MB
- SHA256:
- b75d1e8b991fcddb07d9d3529c14788759adb63cea0b33de7455f16dfe4d8f5e
路
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.