Run this model with HF Jobs
Run b43646/test_trainer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/b43646/test_trainer. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/b43646/test_trainer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use b43646/test_trainer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use b43646/test_trainer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="b43646/test_trainer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("b43646/test_trainer") model = AutoModelForSequenceClassification.from_pretrained("b43646/test_trainer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (4)
- README.mdAdded+62
- config.jsonAdded+41
- model.safetensorsAdded+3
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162---license: apache-2.0base_model: google-bert/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 [google-bert/bert-base-cased](https://huggingface.co/google-bert/bert-base-cased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 1.0398- Accuracy: 0.586
## 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: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 3.0
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| No log | 1.0 | 125 | 1.2797 | 0.449 || No log | 2.0 | 250 | 1.0672 | 0.546 || No log | 3.0 | 375 | 1.0398 | 0.586 |
### Framework versions
- Transformers 4.37.2- Pytorch 2.2.1- Datasets 2.14.6- Tokenizers 0.15.11234567891011121314151617181920212223242526272829303132333435363738394041{ "_name_or_path": "google-bert/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, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2, "LABEL_3": 3, "LABEL_4": 4 }, "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.37.2", "type_vocab_size": 2, "use_cache": true, "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:3184e0db1922aae46e8bb18971199f0bbcd1030445497aa00d227bb7f9102126size 433279996123version https://git-lfs.github.com/spec/v1oid sha256:e4ae8f573fbb637797c158ce4eb3d0280917514a1e4e0fe4a7ff75dca22f04cbsize 4664README.mdAdded+62
config.jsonAdded+41
model.safetensorsAdded+3
training_args.binAdded+3