Instructions to use JAlexis/bert001 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JAlexis/bert001 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="JAlexis/bert001")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("JAlexis/bert001") model = AutoModelForQuestionAnswering.from_pretrained("JAlexis/bert001", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ language: en
|
|
| 4 |
|
| 5 |
widget:
|
| 6 |
- text: "How can I protect myself against covid-19?"
|
| 7 |
-
context: "Preventative measures consist of recommendations to wear a mask in public, maintain social distancing of at least six feet, wash hands regularly, and use hand sanitizer. To facilitate this aim, we adapt the conceptual model and measures of Liao et al.
|
| 8 |
- text: "How can I protect myself against covid-19?"
|
| 9 |
context: " "
|
| 10 |
|
|
|
|
| 4 |
|
| 5 |
widget:
|
| 6 |
- text: "How can I protect myself against covid-19?"
|
| 7 |
+
context: "Preventative measures consist of recommendations to wear a mask in public, maintain social distancing of at least six feet, wash hands regularly, and use hand sanitizer. To facilitate this aim, we adapt the conceptual model and measures of Liao et al. "
|
| 8 |
- text: "How can I protect myself against covid-19?"
|
| 9 |
context: " "
|
| 10 |
|