Shresthadev403 commited on
Commit
f3f0070
1 Parent(s): e3a2a00

End of training

Browse files
README.md CHANGED
@@ -3,6 +3,8 @@ license: apache-2.0
3
  base_model: google/vit-base-patch16-224-in21k
4
  tags:
5
  - generated_from_trainer
 
 
6
  model-index:
7
  - name: food-image-classification
8
  results: []
@@ -13,15 +15,15 @@ should probably proofread and complete it, then remove this comment. -->
13
 
14
  # food-image-classification
15
 
16
- This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
- - eval_loss: 4.6215
19
- - eval_accuracy: 0.0094
20
- - eval_runtime: 140.7774
21
- - eval_samples_per_second: 107.617
22
- - eval_steps_per_second: 6.727
23
- - epoch: 0.01
24
- - step: 10
25
 
26
  ## Model description
27
 
@@ -49,12 +51,11 @@ The following hyperparameters were used during training:
49
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
  - lr_scheduler_type: linear
51
  - lr_scheduler_warmup_ratio: 0.1
52
- - num_epochs: 5
53
- - mixed_precision_training: Native AMP
54
 
55
  ### Framework versions
56
 
57
- - Transformers 4.35.2
58
- - Pytorch 2.1.0+cu121
59
- - Datasets 2.16.1
60
  - Tokenizers 0.15.1
 
3
  base_model: google/vit-base-patch16-224-in21k
4
  tags:
5
  - generated_from_trainer
6
+ datasets:
7
+ - food101
8
  model-index:
9
  - name: food-image-classification
10
  results: []
 
15
 
16
  # food-image-classification
17
 
18
+ This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the food101 dataset.
19
  It achieves the following results on the evaluation set:
20
+ - eval_loss: 4.5759
21
+ - eval_accuracy: 0.0349
22
+ - eval_runtime: 157.053
23
+ - eval_samples_per_second: 96.464
24
+ - eval_steps_per_second: 6.03
25
+ - epoch: 1.06
26
+ - step: 1000
27
 
28
  ## Model description
29
 
 
51
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
  - lr_scheduler_type: linear
53
  - lr_scheduler_warmup_ratio: 0.1
54
+ - num_epochs: 500
 
55
 
56
  ### Framework versions
57
 
58
+ - Transformers 4.37.0
59
+ - Pytorch 2.1.2
60
+ - Datasets 2.1.0
61
  - Tokenizers 0.15.1
config.json CHANGED
@@ -226,5 +226,5 @@
226
  "problem_type": "single_label_classification",
227
  "qkv_bias": true,
228
  "torch_dtype": "float32",
229
- "transformers_version": "4.35.2"
230
  }
 
226
  "problem_type": "single_label_classification",
227
  "qkv_bias": true,
228
  "torch_dtype": "float32",
229
+ "transformers_version": "4.37.0"
230
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:656c18fc5cba130c6fa5494776dee859077d1a75b06682410dbbdab4bc139c6c
3
  size 343528508
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4eabec32f0ba76003916089cd24abcbfceda6bc9f6dbc42c9f42b2fc063a8f2e
3
  size 343528508
runs/Feb05_03-08-58_983d148b451b/events.out.tfevents.1707102539.983d148b451b.26.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8637b62b758fd8d7af76bf6901bf4667283d0e4976458e3bb304993167e435a2
3
+ size 9781
trainer_state.json CHANGED
@@ -1,34 +1,36 @@
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
- "epoch": 0.010559662090813094,
5
- "eval_steps": 10,
6
- "global_step": 10,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
- "epoch": 0.01,
13
- "learning_rate": 1.0548523206751055e-06,
14
- "loss": 4.6245,
15
- "step": 10
16
  },
17
  {
18
- "epoch": 0.01,
19
- "eval_accuracy": 0.00943894389438944,
20
- "eval_loss": 4.621488094329834,
21
- "eval_runtime": 140.7774,
22
- "eval_samples_per_second": 107.617,
23
- "eval_steps_per_second": 6.727,
24
- "step": 10
25
  }
26
  ],
27
- "logging_steps": 10,
28
- "max_steps": 4735,
29
- "num_train_epochs": 5,
30
- "save_steps": 500,
31
- "total_flos": 4.9638879166464e+16,
 
 
32
  "trial_name": null,
33
  "trial_params": null
34
  }
 
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
+ "epoch": 1.0559662090813093,
5
+ "eval_steps": 1000,
6
+ "global_step": 1000,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
+ "epoch": 1.06,
13
+ "learning_rate": 1.0559662090813095e-06,
14
+ "loss": 4.6112,
15
+ "step": 1000
16
  },
17
  {
18
+ "epoch": 1.06,
19
+ "eval_accuracy": 0.034851485148514855,
20
+ "eval_loss": 4.575930118560791,
21
+ "eval_runtime": 157.053,
22
+ "eval_samples_per_second": 96.464,
23
+ "eval_steps_per_second": 6.03,
24
+ "step": 1000
25
  }
26
  ],
27
+ "logging_steps": 1000,
28
+ "max_steps": 473500,
29
+ "num_input_tokens_seen": 0,
30
+ "num_train_epochs": 500,
31
+ "save_steps": 1000,
32
+ "total_flos": 4.963267430656819e+18,
33
+ "train_batch_size": 16,
34
  "trial_name": null,
35
  "trial_params": null
36
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:84434c2eca9b38915402890f1cae162ac37c75e9a0bb9cc160870a5a1bd9a643
3
- size 4600
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ca936ea37d67465f6b7da7602257a39b9b8d2060f5086611932979851932935
3
+ size 4728