Instructions to use JoeKinng14/test_trainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JoeKinng14/test_trainer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="JoeKinng14/test_trainer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("JoeKinng14/test_trainer") model = AutoModelForSequenceClassification.from_pretrained("JoeKinng14/test_trainer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
JoeKinng14/bert-based-imdb-se
Browse filesFiles changed (5)
- README.mdAdded+63
- config.jsonAdded+27
- model.safetensorsAdded+3
- runs/Feb04_04-50-31_16f1b04c5ac1/events.out.tfevents.1738644636.16f1b04c5ac1.489.0Added+3
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263---library_name: transformerslicense: apache-2.0base_model: bert-base-casedtags:- generated_from_trainermetrics:- accuracymodel-index:- name: test_trainer results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# test_trainer
This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.5120- Accuracy: 0.884
## 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- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 3.0
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| No log | 1.0 | 125 | 0.3425 | 0.849 || No log | 2.0 | 250 | 0.4071 | 0.874 || No log | 3.0 | 375 | 0.5120 | 0.884 |
### Framework versions
- Transformers 4.49.0.dev0- Pytorch 2.5.1+cu124- Datasets 3.2.0- Tokenizers 0.21.0123456789101112131415161718192021222324252627{ "_name_or_path": "bert-base-cased", "architectures": [ "BertForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.49.0.dev0", "type_vocab_size": 2, "use_cache": true, "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:2cb6c545705a6d58f42b168108a37dc22393c88baec6d2c6102f5cb977cc04e9size 433270768123version https://git-lfs.github.com/spec/v1oid sha256:4dd85ff6c81f4500eeb25ddabd8273eb6f0368aeaf15fc5e27e89ba8cd650b4esize 6385123version https://git-lfs.github.com/spec/v1oid sha256:5c4f08e342a349b190737c02b4d931dd20df3875d75187bbd0f6a92847047985size 5304README.mdAdded+63
config.jsonAdded+27
model.safetensorsAdded+3
runs/Feb04_04-50-31_16f1b04c5ac1/events.out.tfevents.1738644636.16f1b04c5ac1.489.0Added+3
training_args.binAdded+3