Instructions to use IPG5/elastic-seq-classifier-distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use IPG5/elastic-seq-classifier-distilbert with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert/distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "IPG5/elastic-seq-classifier-distilbert") - Notebooks
- Google Colab
- Kaggle
File size: 1,839 Bytes
c93fcac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | {
"best_metric": 0.23382095992565155,
"best_model_checkpoint": "distilbert/distilbert-base-uncased-lora-text-classification\\checkpoint-2021",
"epoch": 0.9997526589166461,
"eval_steps": 500,
"global_step": 2021,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.24734108335394508,
"grad_norm": 0.8207709789276123,
"learning_rate": 7.525977238990599e-05,
"loss": 0.5518,
"step": 500
},
{
"epoch": 0.49468216670789017,
"grad_norm": 1.7094056606292725,
"learning_rate": 5.0519544779811976e-05,
"loss": 0.355,
"step": 1000
},
{
"epoch": 0.7420232500618352,
"grad_norm": 1.3247127532958984,
"learning_rate": 2.5779317169717964e-05,
"loss": 0.3014,
"step": 1500
},
{
"epoch": 0.9893643334157803,
"grad_norm": 1.1423085927963257,
"learning_rate": 1.0390895596239487e-06,
"loss": 0.2843,
"step": 2000
},
{
"epoch": 0.9997526589166461,
"eval_accuracy": {
"accuracy": 0.8917183667580436
},
"eval_loss": 0.23382095992565155,
"eval_runtime": 57.5816,
"eval_samples_per_second": 240.737,
"eval_steps_per_second": 60.193,
"step": 2021
}
],
"logging_steps": 500,
"max_steps": 2021,
"num_input_tokens_seen": 0,
"num_train_epochs": 1,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 4349609601073152.0,
"train_batch_size": 4,
"trial_name": null,
"trial_params": null
}
|