Instructions to use anablasi/finqa_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anablasi/finqa_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="anablasi/finqa_model", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("anablasi/finqa_model") model = AutoModelForQuestionAnswering.from_pretrained("anablasi/finqa_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config.json
Browse files- config.json +3 -3
config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"bos_token_id": 0,
|
|
@@ -23,7 +23,7 @@
|
|
| 23 |
"pad_token_id": 1,
|
| 24 |
"position_embedding_type": "absolute",
|
| 25 |
"torch_dtype": "float32",
|
| 26 |
-
"transformers_version": "4.
|
| 27 |
"type_vocab_size": 1,
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_size": 50265
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "anablasi/financial_model",
|
| 3 |
"architectures": [
|
| 4 |
+
"RobertaForQuestionAnswering"
|
| 5 |
],
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"bos_token_id": 0,
|
|
|
|
| 23 |
"pad_token_id": 1,
|
| 24 |
"position_embedding_type": "absolute",
|
| 25 |
"torch_dtype": "float32",
|
| 26 |
+
"transformers_version": "4.19.2",
|
| 27 |
"type_vocab_size": 1,
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_size": 50265
|