Instructions to use Den4ikAI/rubert-tiny-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Den4ikAI/rubert-tiny-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="Den4ikAI/rubert-tiny-squad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("Den4ikAI/rubert-tiny-squad") model = AutoModelForPreTraining.from_pretrained("Den4ikAI/rubert-tiny-squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
обученный rubert от cointegrated/rubert-tiny2.
|
| 5 |
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
pipeline_tag: question-answering
|
| 4 |
+
widget:
|
| 5 |
+
- context: "Пушкин родился 6 июля 1799 года"
|
| 6 |
+
- text: "Когда родился Пушкин?"
|
| 7 |
+
example_title: "test"
|
| 8 |
---
|
| 9 |
обученный rubert от cointegrated/rubert-tiny2.
|
| 10 |
|