Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use arpanl/Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arpanl/Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="arpanl/Model") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("arpanl/Model") model = AutoModelForImageClassification.from_pretrained("arpanl/Model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download trainer_state.json from arpanl/Model: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/arpanl/Model/resolve/main/trainer_state.json
- Command line
-
hf download hf://arpanl/Model/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/arpanl/Model/resolve/main/trainer_state.json
1.21 kB
| { | |
| "best_metric": 4.275224208831787, | |
| "best_model_checkpoint": "/content/drive/MyDrive/Arkiv_Fine_tuning/Model/checkpoint-50", | |
| "epoch": 50.0, | |
| "eval_steps": 50, | |
| "global_step": 50, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 50.0, | |
| "grad_norm": 0.10450424998998642, | |
| "learning_rate": 2.1875e-05, | |
| "loss": 2.1596, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 50.0, | |
| "eval_accuracy": 0.3333333333333333, | |
| "eval_f1": 0.16666666666666666, | |
| "eval_loss": 4.275224208831787, | |
| "eval_runtime": 18.0209, | |
| "eval_samples_per_second": 0.166, | |
| "eval_steps_per_second": 0.055, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 50.0, | |
| "step": 50, | |
| "total_flos": 4.2624032242176e+16, | |
| "train_loss": 2.1595826721191407, | |
| "train_runtime": 4004.6726, | |
| "train_samples_per_second": 0.137, | |
| "train_steps_per_second": 0.012 | |
| } | |
| ], | |
| "logging_steps": 50, | |
| "max_steps": 50, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 50, | |
| "save_steps": 50, | |
| "total_flos": 4.2624032242176e+16, | |
| "train_batch_size": 32, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |