Upload 4 files
Browse files- README.md +26 -0
- bert_config.json +19 -0
- pytorch_model.bin +3 -0
- vocab.txt +0 -0
README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- zh
|
| 5 |
+
base_model: google-bert/bert-base-chinese
|
| 6 |
+
tags:
|
| 7 |
+
- finance
|
| 8 |
---
|
| 9 |
+
|
| 10 |
+
## Model Details
|
| 11 |
+
|
| 12 |
+
**FinBERT1-Base** is a financial domain-adapted Chinese language model. Built on Google's BERT-Base architecture, it was continually pretrained on large-scale Chinese financial corpora to enhance financial text understanding.
|
| 13 |
+
- **Developed by:** See [valuesimplex](https://github.com/valuesimplex) for model developers
|
| 14 |
+
- **Model Type:** Transformer-based language model
|
| 15 |
+
- **Language(s):** Chinese
|
| 16 |
+
- **Parent Model:** See the [bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese) for more information about the BERT base model.
|
| 17 |
+
- **Resources:** [https://github.com/valuesimplex/FinBERT](https://github.com/valuesimplex/FinBERT)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
## Direct Use
|
| 21 |
+
```python
|
| 22 |
+
from transformers import AutoModel, AutoTokenizer
|
| 23 |
+
|
| 24 |
+
model = AutoModel.from_pretrained("valuesimplex-ai-lab/FinBERT1-base")
|
| 25 |
+
tokenizer = AutoTokenizer.from_pretrained("valuesimplex-ai-lab/FinBERT1-base")
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
### Further Usage
|
| 29 |
+
continual pre-training or fine-tuning:https://github.com/valuesimplex/FinBERT
|
bert_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attention_probs_dropout_prob": 0.1,
|
| 3 |
+
"directionality": "bidi",
|
| 4 |
+
"hidden_act": "gelu",
|
| 5 |
+
"hidden_dropout_prob": 0.1,
|
| 6 |
+
"hidden_size": 768,
|
| 7 |
+
"initializer_range": 0.02,
|
| 8 |
+
"intermediate_size": 3072,
|
| 9 |
+
"max_position_embeddings": 512,
|
| 10 |
+
"num_attention_heads": 12,
|
| 11 |
+
"num_hidden_layers": 12,
|
| 12 |
+
"pooler_fc_size": 768,
|
| 13 |
+
"pooler_num_attention_heads": 12,
|
| 14 |
+
"pooler_num_fc_layers": 3,
|
| 15 |
+
"pooler_size_per_head": 128,
|
| 16 |
+
"pooler_type": "first_token_transform",
|
| 17 |
+
"type_vocab_size": 2,
|
| 18 |
+
"vocab_size": 21128
|
| 19 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b3c8c2b3d0fe518e933d83f51ea23f8b12ff600934dcb9ea3e7382f3fdf9a25
|
| 3 |
+
size 411575980
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|