Instructions to use NekoJar/trainer_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NekoJar/trainer_output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="NekoJar/trainer_output") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("NekoJar/trainer_output") model = AutoModelForImageClassification.from_pretrained("NekoJar/trainer_output", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +16 -16
- all_results.json +6 -6
- eval_results.json +6 -6
README.md
CHANGED
|
@@ -23,7 +23,7 @@ model-index:
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
-
value: 0.
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -33,8 +33,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 33 |
|
| 34 |
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 imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
-
- Loss:
|
| 37 |
-
- Accuracy: 0.
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
@@ -54,11 +54,11 @@ More information needed
|
|
| 54 |
|
| 55 |
The following hyperparameters were used during training:
|
| 56 |
- learning_rate: 3e-05
|
| 57 |
-
- train_batch_size:
|
| 58 |
-
- eval_batch_size:
|
| 59 |
- seed: 42
|
| 60 |
- gradient_accumulation_steps: 8
|
| 61 |
-
- total_train_batch_size:
|
| 62 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 63 |
- lr_scheduler_type: cosine
|
| 64 |
- lr_scheduler_warmup_steps: 1000
|
|
@@ -68,16 +68,16 @@ The following hyperparameters were used during training:
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 71 |
-
|
|
| 72 |
-
|
|
| 73 |
-
|
|
| 74 |
-
|
|
| 75 |
-
|
|
| 76 |
-
|
|
| 77 |
-
| 1.
|
| 78 |
-
|
|
| 79 |
-
|
|
| 80 |
-
|
|
| 81 |
|
| 82 |
|
| 83 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
+
value: 0.5126527801687037
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 33 |
|
| 34 |
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 imagefolder dataset.
|
| 35 |
It achieves the following results on the evaluation set:
|
| 36 |
+
- Loss: 1.4766
|
| 37 |
+
- Accuracy: 0.5127
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 54 |
|
| 55 |
The following hyperparameters were used during training:
|
| 56 |
- learning_rate: 3e-05
|
| 57 |
+
- train_batch_size: 128
|
| 58 |
+
- eval_batch_size: 128
|
| 59 |
- seed: 42
|
| 60 |
- gradient_accumulation_steps: 8
|
| 61 |
+
- total_train_batch_size: 1024
|
| 62 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 63 |
- lr_scheduler_type: cosine
|
| 64 |
- lr_scheduler_warmup_steps: 1000
|
|
|
|
| 68 |
|
| 69 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 70 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 71 |
+
| No log | 0.9670 | 22 | 2.0708 | 0.1449 |
|
| 72 |
+
| No log | 1.9670 | 44 | 2.0653 | 0.1663 |
|
| 73 |
+
| 2.0961 | 2.9670 | 66 | 2.0564 | 0.1931 |
|
| 74 |
+
| 2.0961 | 3.9670 | 88 | 2.0423 | 0.2350 |
|
| 75 |
+
| 2.0586 | 4.9670 | 110 | 2.0171 | 0.2823 |
|
| 76 |
+
| 2.0586 | 5.9670 | 132 | 1.9638 | 0.3305 |
|
| 77 |
+
| 1.9128 | 6.9670 | 154 | 1.8130 | 0.3968 |
|
| 78 |
+
| 1.9128 | 7.9670 | 176 | 1.6647 | 0.4278 |
|
| 79 |
+
| 1.9128 | 8.9670 | 198 | 1.5676 | 0.4844 |
|
| 80 |
+
| 1.6466 | 9.9670 | 220 | 1.4766 | 0.5127 |
|
| 81 |
|
| 82 |
|
| 83 |
### Framework versions
|
all_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"epoch": 9.
|
| 3 |
-
"eval_accuracy": 0.
|
| 4 |
-
"eval_loss":
|
| 5 |
-
"eval_runtime":
|
| 6 |
-
"eval_samples_per_second":
|
| 7 |
-
"eval_steps_per_second":
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"epoch": 9.967032967032967,
|
| 3 |
+
"eval_accuracy": 0.5126527801687037,
|
| 4 |
+
"eval_loss": 1.476570963859558,
|
| 5 |
+
"eval_runtime": 57.5461,
|
| 6 |
+
"eval_samples_per_second": 100.945,
|
| 7 |
+
"eval_steps_per_second": 0.799
|
| 8 |
}
|
eval_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"epoch": 9.
|
| 3 |
-
"eval_accuracy": 0.
|
| 4 |
-
"eval_loss":
|
| 5 |
-
"eval_runtime":
|
| 6 |
-
"eval_samples_per_second":
|
| 7 |
-
"eval_steps_per_second":
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"epoch": 9.967032967032967,
|
| 3 |
+
"eval_accuracy": 0.5126527801687037,
|
| 4 |
+
"eval_loss": 1.476570963859558,
|
| 5 |
+
"eval_runtime": 57.5461,
|
| 6 |
+
"eval_samples_per_second": 100.945,
|
| 7 |
+
"eval_steps_per_second": 0.799
|
| 8 |
}
|