Instructions to use Dwaipayan08/tweets_multilabel_base_class_head with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Dwaipayan08/tweets_multilabel_base_class_head with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("google/gemma-2-2b") model = PeftModel.from_pretrained(base_model, "Dwaipayan08/tweets_multilabel_base_class_head") - Transformers
How to use Dwaipayan08/tweets_multilabel_base_class_head with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Dwaipayan08/tweets_multilabel_base_class_head", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,240 Bytes
10d8e84 | 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 | {
"best_global_step": 20,
"best_metric": 0.3098881333544819,
"best_model_checkpoint": "/content/gemma_lora_imb/checkpoint-20",
"epoch": 1.253968253968254,
"eval_steps": 20,
"global_step": 20,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 1.253968253968254,
"grad_norm": 164.26077270507812,
"learning_rate": 5.9375e-06,
"loss": 9.5154,
"step": 20
},
{
"epoch": 1.253968253968254,
"eval_f1_macro": 0.3098881333544819,
"eval_loss": 1.8632150888442993,
"eval_runtime": 11.091,
"eval_samples_per_second": 45.082,
"eval_steps_per_second": 5.68,
"step": 20
}
],
"logging_steps": 20,
"max_steps": 32,
"num_input_tokens_seen": 0,
"num_train_epochs": 2,
"save_steps": 20,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 329551733809152.0,
"train_batch_size": 8,
"trial_name": null,
"trial_params": null
}
|