Instructions to use BrianHsu/BERT_test_graident_accumulation_test2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BrianHsu/BERT_test_graident_accumulation_test2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultipleChoice tokenizer = AutoTokenizer.from_pretrained("BrianHsu/BERT_test_graident_accumulation_test2") model = AutoModelForMultipleChoice.from_pretrained("BrianHsu/BERT_test_graident_accumulation_test2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from BrianHsu/BERT_test_graident_accumulation_test2: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/BrianHsu/BERT_test_graident_accumulation_test2/resolve/main/README.md
- Command line
-
hf download hf://BrianHsu/BERT_test_graident_accumulation_test2/README.md
-
curl -L -o README.md https://huggingface.co/BrianHsu/BERT_test_graident_accumulation_test2/resolve/main/README.md
1.56 kB
metadata
base_model: bert-base-chinese
tags:
- generated_from_trainer
metrics:
- accuracy
model-index:
- name: BERT_test_graident_accumulation_test2
results: []
BERT_test_graident_accumulation_test2
This model is a fine-tuned version of bert-base-chinese on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.0296
- Accuracy: 0.6379
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| No log | 1.0 | 188 | 0.9392 | 0.5937 |
| No log | 2.0 | 376 | 0.9506 | 0.6354 |
| 0.7706 | 3.0 | 564 | 1.0296 | 0.6379 |
Framework versions
- Transformers 4.36.0
- Pytorch 2.1.1+cu118
- Datasets 2.15.0
- Tokenizers 0.15.0