Run this model with HF Jobs
Run t7hom/vit-beans-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/t7hom/vit-beans-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/t7hom/vit-beans-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use t7hom/vit-beans-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use t7hom/vit-beans-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="t7hom/vit-beans-classifier") 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("t7hom/vit-beans-classifier") model = AutoModelForImageClassification.from_pretrained("t7hom/vit-beans-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1, checkpoint
Browse filesFiles changed (8)
- last-checkpoint/config.jsonAdded+36
- last-checkpoint/model.safetensorsAdded+3
- last-checkpoint/optimizer.ptAdded+3
- last-checkpoint/preprocessor_config.jsonAdded+22
- last-checkpoint/rng_state.pthAdded+3
- last-checkpoint/scheduler.ptAdded+3
- last-checkpoint/trainer_state.jsonAdded+87
- last-checkpoint/training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536{ "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "dtype": "float32", "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 192, "id2label": { "0": "angular_leaf_spot", "1": "bean_rust", "2": "healthy" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 768, "label2id": { "angular_leaf_spot": 0, "bean_rust": 1, "healthy": 2 }, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 3, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "pooler_act": "tanh", "pooler_output_size": 192, "problem_type": "single_label_classification", "qkv_bias": true, "transformers_version": "5.18.0", "use_cache": false}123version https://git-lfs.github.com/spec/v1oid sha256:7924e386d51845d4e508d5faf579886dcdc2c30dab49f3f23d6fcbe887fc09b6size 22122692123version https://git-lfs.github.com/spec/v1oid sha256:643c20f8a6c4792223eb77fe08e097225270139b86f0dbb790d657d63419ab68size 4436948312345678910111213141516171819202122{ "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "ViTImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}123version https://git-lfs.github.com/spec/v1oid sha256:c16bbb16bc4b37c5305f80c565a436f01638fbe23147464b5f9485c6a92f202bsize 14645123version https://git-lfs.github.com/spec/v1oid sha256:69db5989ea6455620c81836d90403006ec48cd99d3ae13078eedbee49ed90532size 1465123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ "best_global_step": 65, "best_metric": 0.9398496240601504, "best_model_checkpoint": "./output_beans_vit/checkpoint-65", "epoch": 1.0, "eval_steps": 500, "global_step": 65, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.15384615384615385, "grad_norm": 20.408788681030273, "learning_rate": 2.861538461538462e-05, "loss": 1.3654669761657714, "step": 10 }, { "epoch": 0.3076923076923077, "grad_norm": 18.42445182800293, "learning_rate": 2.7076923076923078e-05, "loss": 0.7523215293884278, "step": 20 }, { "epoch": 0.46153846153846156, "grad_norm": 13.573023796081543, "learning_rate": 2.5538461538461538e-05, "loss": 0.5985908508300781, "step": 30 }, { "epoch": 0.6153846153846154, "grad_norm": 14.141680717468262, "learning_rate": 2.4e-05, "loss": 0.40028228759765627, "step": 40 }, { "epoch": 0.7692307692307693, "grad_norm": 17.775421142578125, "learning_rate": 2.2461538461538464e-05, "loss": 0.24261374473571778, "step": 50 }, { "epoch": 0.9230769230769231, "grad_norm": 11.05743408203125, "learning_rate": 2.0923076923076923e-05, "loss": 0.3292862892150879, "step": 60 }, { "epoch": 1.0, "eval_accuracy": 0.9398496240601504, "eval_f1_macro": 0.9403217242814298, "eval_f1_weighted": 0.9401020956109764, "eval_loss": 0.18884460628032684, "eval_runtime": 0.8933, "eval_samples_per_second": 148.89, "eval_steps_per_second": 10.075, "step": 65 } ], "logging_steps": 10, "max_steps": 195, "num_input_tokens_seen": 0, "num_train_epochs": 3, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": false }, "attributes": {} } }, "total_flos": 5159658639421440.0, "train_batch_size": 16, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:d7462c0a17a16adea742bcce135bea11de6350a4cd1b215d7ab32351b08779a7size 5265last-checkpoint/config.jsonAdded+36
last-checkpoint/model.safetensorsAdded+3
last-checkpoint/optimizer.ptAdded+3
last-checkpoint/preprocessor_config.jsonAdded+22
last-checkpoint/rng_state.pthAdded+3
last-checkpoint/scheduler.ptAdded+3
last-checkpoint/trainer_state.jsonAdded+87
last-checkpoint/training_args.binAdded+3