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 +19 -18
- all_results.json +6 -6
- eval_results.json +6 -6
README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
|
|
|
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
|
@@ -22,7 +23,7 @@ model-index:
|
|
| 22 |
metrics:
|
| 23 |
- name: Accuracy
|
| 24 |
type: accuracy
|
| 25 |
-
value: 0.
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -30,10 +31,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 30 |
|
| 31 |
# trainer_output
|
| 32 |
|
| 33 |
-
This model is a fine-tuned version of [
|
| 34 |
It achieves the following results on the evaluation set:
|
| 35 |
-
- Loss:
|
| 36 |
-
- Accuracy: 0.
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
@@ -53,11 +54,11 @@ More information needed
|
|
| 53 |
|
| 54 |
The following hyperparameters were used during training:
|
| 55 |
- learning_rate: 3e-05
|
| 56 |
-
- train_batch_size:
|
| 57 |
-
- eval_batch_size:
|
| 58 |
- seed: 42
|
| 59 |
- gradient_accumulation_steps: 8
|
| 60 |
-
- total_train_batch_size:
|
| 61 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 62 |
- lr_scheduler_type: cosine
|
| 63 |
- lr_scheduler_warmup_steps: 1000
|
|
@@ -67,16 +68,16 @@ The following hyperparameters were used during training:
|
|
| 67 |
|
| 68 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
| 70 |
-
|
|
| 71 |
-
|
|
| 72 |
-
|
|
| 73 |
-
| 1.
|
| 74 |
-
|
|
| 75 |
-
|
|
| 76 |
-
|
|
| 77 |
-
|
|
| 78 |
-
|
|
| 79 |
-
|
|
| 80 |
|
| 81 |
|
| 82 |
### Framework versions
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/vit-base-patch16-224-in21k
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
datasets:
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: Accuracy
|
| 25 |
type: accuracy
|
| 26 |
+
value: 0.6099156481322087
|
| 27 |
---
|
| 28 |
|
| 29 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 31 |
|
| 32 |
# trainer_output
|
| 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.1080
|
| 37 |
+
- Accuracy: 0.6099
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
|
|
|
| 54 |
|
| 55 |
The following hyperparameters were used during training:
|
| 56 |
- learning_rate: 3e-05
|
| 57 |
+
- train_batch_size: 64
|
| 58 |
+
- eval_batch_size: 64
|
| 59 |
- seed: 42
|
| 60 |
- gradient_accumulation_steps: 8
|
| 61 |
+
- total_train_batch_size: 512
|
| 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.9890 | 45 | 2.0759 | 0.1400 |
|
| 72 |
+
| 2.0912 | 1.9890 | 90 | 2.0549 | 0.1852 |
|
| 73 |
+
| 2.0576 | 2.9890 | 135 | 1.9888 | 0.2307 |
|
| 74 |
+
| 1.9515 | 3.9890 | 180 | 1.7330 | 0.3922 |
|
| 75 |
+
| 1.7027 | 4.9890 | 225 | 1.5496 | 0.4882 |
|
| 76 |
+
| 1.5105 | 5.9890 | 270 | 1.3937 | 0.5400 |
|
| 77 |
+
| 1.3426 | 6.9890 | 315 | 1.2821 | 0.5590 |
|
| 78 |
+
| 1.2216 | 7.9890 | 360 | 1.2052 | 0.5820 |
|
| 79 |
+
| 1.1407 | 8.9890 | 405 | 1.1482 | 0.5965 |
|
| 80 |
+
| 1.0803 | 9.9890 | 450 | 1.1080 | 0.6099 |
|
| 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.989010989010989,
|
| 3 |
+
"eval_accuracy": 0.6099156481322087,
|
| 4 |
+
"eval_loss": 1.1079732179641724,
|
| 5 |
+
"eval_runtime": 57.5807,
|
| 6 |
+
"eval_samples_per_second": 100.885,
|
| 7 |
+
"eval_steps_per_second": 1.58
|
| 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.989010989010989,
|
| 3 |
+
"eval_accuracy": 0.6099156481322087,
|
| 4 |
+
"eval_loss": 1.1079732179641724,
|
| 5 |
+
"eval_runtime": 57.5807,
|
| 6 |
+
"eval_samples_per_second": 100.885,
|
| 7 |
+
"eval_steps_per_second": 1.58
|
| 8 |
}
|