Run this model with HF Jobs
Run ayang903/ds340 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/ayang903/ds340. 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/ayang903/ds340 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 ayang903/ds340 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ayang903/ds340 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ayang903/ds340") 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("ayang903/ds340") model = AutoModelForImageClassification.from_pretrained("ayang903/ds340", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
#1
by ayang903 - opened
Files changed (8)
- config.jsonAdded+36
- optimizer.ptAdded+3
- preprocessor_config.jsonAdded+22
- pytorch_model.binAdded+3
- rng_state.pthAdded+3
- scheduler.ptAdded+3
- trainer_state.jsonAdded+100
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536{ "_name_or_path": "google/vit-base-patch16-224-in21k", "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "Jordan%201", "1": "Jordan%2011", "2": "Jordan%2012", "3": "Jordan%204" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "Jordan%201": "0", "Jordan%2011": "1", "Jordan%2012": "2", "Jordan%204": "3" }, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "problem_type": "single_label_classification", "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.28.1"}123version https://git-lfs.github.com/spec/v1oid sha256:bc2a31527103ba6d74cbd6e1a96ac2fe36cb3a45d361f68a42136eb115824308size 68652538112345678910111213141516171819202122{ "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "ViTFeatureExtractor", "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:c4264ccbffc5754b96bfb306975094b8ee457362f934469a46f19150d58c2addsize 343272109123version https://git-lfs.github.com/spec/v1oid sha256:8e6b402c9f12d6e11514556247eb556837d54d1ce0345832ec974e0a7a504007size 13553123version https://git-lfs.github.com/spec/v1oid sha256:4f0051d0af53410e29e0c7de2401abe0dfdff6e124db2e23d7a56174ecb2db4csize 627123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100{ "best_metric": 0.14423789083957672, "best_model_checkpoint": "./vit-base-beans/checkpoint-80", "epoch": 3.6363636363636362, "global_step": 80, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.45, "learning_rate": 0.00017727272727272728, "loss": 1.2554, "step": 10 }, { "epoch": 0.91, "learning_rate": 0.00015454545454545454, "loss": 0.8433, "step": 20 }, { "epoch": 0.91, "eval_accuracy": 0.9803921568627451, "eval_loss": 0.505466103553772, "eval_runtime": 66.8244, "eval_samples_per_second": 1.526, "eval_steps_per_second": 0.195, "step": 20 }, { "epoch": 1.36, "learning_rate": 0.0001318181818181818, "loss": 0.4104, "step": 30 }, { "epoch": 1.82, "learning_rate": 0.00010909090909090909, "loss": 0.2222, "step": 40 }, { "epoch": 1.82, "eval_accuracy": 0.9607843137254902, "eval_loss": 0.18820254504680634, "eval_runtime": 68.8172, "eval_samples_per_second": 1.482, "eval_steps_per_second": 0.189, "step": 40 }, { "epoch": 2.27, "learning_rate": 8.636363636363637e-05, "loss": 0.1111, "step": 50 }, { "epoch": 2.73, "learning_rate": 6.363636363636364e-05, "loss": 0.0797, "step": 60 }, { "epoch": 2.73, "eval_accuracy": 0.9607843137254902, "eval_loss": 0.1555091142654419, "eval_runtime": 67.1859, "eval_samples_per_second": 1.518, "eval_steps_per_second": 0.193, "step": 60 }, { "epoch": 3.18, "learning_rate": 4.0909090909090915e-05, "loss": 0.0633, "step": 70 }, { "epoch": 3.64, "learning_rate": 1.8181818181818182e-05, "loss": 0.0554, "step": 80 }, { "epoch": 3.64, "eval_accuracy": 0.9607843137254902, "eval_loss": 0.14423789083957672, "eval_runtime": 67.9888, "eval_samples_per_second": 1.5, "eval_steps_per_second": 0.191, "step": 80 } ], "max_steps": 88, "num_train_epochs": 4, "total_flos": 9.733168363084186e+16, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:afc944b0e5dcf4a4b6aa833522dc7fd350e6db64080ec721ec9848f97d73d129size 3579config.jsonAdded+36
optimizer.ptAdded+3
preprocessor_config.jsonAdded+22
pytorch_model.binAdded+3
rng_state.pthAdded+3
scheduler.ptAdded+3
trainer_state.jsonAdded+100
training_args.binAdded+3