Text Classification
Transformers
Joblib
Safetensors
multilingual
binary-classification
amis
agriculture
Instructions to use faodl/agri-utilization-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use faodl/agri-utilization-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="faodl/agri-utilization-classifier")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("faodl/agri-utilization-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 3,694 Bytes
f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af 7adc93a f2e02af | 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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | {
"best_global_step": 305,
"best_metric": 0.7205882352941176,
"best_model_checkpoint": "/content/agri-utilization-classifier/transformer/checkpoint-305",
"epoch": 1.0,
"eval_steps": 500,
"global_step": 305,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.08196721311475409,
"grad_norm": 3.737260103225708,
"learning_rate": 3.157894736842105e-06,
"loss": 0.5265155029296875,
"step": 25
},
{
"epoch": 0.16393442622950818,
"grad_norm": 3.5834667682647705,
"learning_rate": 6.447368421052632e-06,
"loss": 0.46113067626953125,
"step": 50
},
{
"epoch": 0.2459016393442623,
"grad_norm": 4.713325500488281,
"learning_rate": 9.736842105263159e-06,
"loss": 0.36277122497558595,
"step": 75
},
{
"epoch": 0.32786885245901637,
"grad_norm": 5.049388885498047,
"learning_rate": 1.3026315789473684e-05,
"loss": 0.2863706398010254,
"step": 100
},
{
"epoch": 0.4098360655737705,
"grad_norm": 3.5716683864593506,
"learning_rate": 1.6315789473684213e-05,
"loss": 0.30932790756225587,
"step": 125
},
{
"epoch": 0.4918032786885246,
"grad_norm": 3.1771602630615234,
"learning_rate": 1.960526315789474e-05,
"loss": 0.34346282958984375,
"step": 150
},
{
"epoch": 0.5737704918032787,
"grad_norm": 13.294544219970703,
"learning_rate": 1.9679533867443555e-05,
"loss": 0.2966791343688965,
"step": 175
},
{
"epoch": 0.6557377049180327,
"grad_norm": 4.51957893371582,
"learning_rate": 1.9315367807720323e-05,
"loss": 0.3470170211791992,
"step": 200
},
{
"epoch": 0.7377049180327869,
"grad_norm": 2.978902816772461,
"learning_rate": 1.8951201747997088e-05,
"loss": 0.33052406311035154,
"step": 225
},
{
"epoch": 0.819672131147541,
"grad_norm": 3.3191263675689697,
"learning_rate": 1.8587035688273852e-05,
"loss": 0.21728967666625976,
"step": 250
},
{
"epoch": 0.9016393442622951,
"grad_norm": 3.7143661975860596,
"learning_rate": 1.822286962855062e-05,
"loss": 0.23666904449462892,
"step": 275
},
{
"epoch": 0.9836065573770492,
"grad_norm": 1.896660566329956,
"learning_rate": 1.7858703568827385e-05,
"loss": 0.21057628631591796,
"step": 300
},
{
"epoch": 1.0,
"eval_accuracy": 0.9611451942740287,
"eval_f1": 0.7205882352941176,
"eval_loss": 0.1562921404838562,
"eval_precision": 0.8596491228070176,
"eval_recall": 0.620253164556962,
"eval_roc_auc": 0.9517677869925796,
"eval_runtime": 3.9768,
"eval_samples_per_second": 245.924,
"eval_steps_per_second": 7.795,
"step": 305
}
],
"logging_steps": 25,
"max_steps": 1525,
"num_input_tokens_seen": 0,
"num_train_epochs": 5,
"save_steps": 500,
"stateful_callbacks": {
"EarlyStoppingCallback": {
"args": {
"early_stopping_patience": 2,
"early_stopping_threshold": 0.0
},
"attributes": {
"early_stopping_patience_counter": 0
}
},
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 641596308495360.0,
"train_batch_size": 16,
"trial_name": null,
"trial_params": null
}
|