Feature Extraction
Transformers
Safetensors
bert
Generated from Trainer
custom_code
text-embeddings-inference
Instructions to use fifadxj/tiny-bert-sequence-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fifadxj/tiny-bert-sequence-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="fifadxj/tiny-bert-sequence-classification", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("fifadxj/tiny-bert-sequence-classification", trust_remote_code=True) model = AutoModel.from_pretrained("fifadxj/tiny-bert-sequence-classification", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
tiny-bert-sequence-classification
This model is a fine-tuned version of google-bert/bert-base-chinese on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.3375
- Accuracy: 0.9467
- Precision: 0.9491
- Recall: 0.9427
- F1: 0.9459
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: 2e-05
- train_batch_size: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 10
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.3578 | 1.0 | 150 | 0.2034 | 0.9242 | 0.9169 | 0.9309 | 0.9238 |
| 0.1677 | 2.0 | 300 | 0.1731 | 0.9442 | 0.9747 | 0.9106 | 0.9416 |
| 0.0932 | 3.0 | 450 | 0.1917 | 0.9442 | 0.9696 | 0.9157 | 0.9419 |
| 0.0555 | 4.0 | 600 | 0.1904 | 0.9517 | 0.9652 | 0.9359 | 0.9503 |
| 0.0312 | 5.0 | 750 | 0.2270 | 0.95 | 0.9635 | 0.9342 | 0.9486 |
| 0.0218 | 6.0 | 900 | 0.2619 | 0.9525 | 0.9653 | 0.9376 | 0.9512 |
| 0.014 | 7.0 | 1050 | 0.3316 | 0.9467 | 0.9616 | 0.9292 | 0.9451 |
| 0.0094 | 8.0 | 1200 | 0.3375 | 0.9467 | 0.9491 | 0.9427 | 0.9459 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 15
Model tree for fifadxj/tiny-bert-sequence-classification
Base model
google-bert/bert-base-chinese