Run this model with HF Jobs
Run ProbeX/Model-J__ResNet__model_idx_0846 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/ProbeX/Model-J__ResNet__model_idx_0846. 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/ProbeX/Model-J__ResNet__model_idx_0846 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 ProbeX/Model-J__ResNet__model_idx_0846 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ProbeX/Model-J__ResNet__model_idx_0846 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ProbeX/Model-J__ResNet__model_idx_0846") 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("ProbeX/Model-J__ResNet__model_idx_0846") model = AutoModelForImageClassification.from_pretrained("ProbeX/Model-J__ResNet__model_idx_0846", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (5)
- config.jsonAdded+145
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+22
- trainer_state.jsonAdded+129
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145{ "_name_or_path": "microsoft/resnet-101", "architectures": [ "ResNetForImageClassification" ], "depths": [ 3, 4, 23, 3 ], "downsample_in_bottleneck": false, "downsample_in_first_stage": false, "embedding_size": 64, "hidden_act": "relu", "hidden_sizes": [ 256, 512, 1024, 2048 ], "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6", "7": "LABEL_7", "8": "LABEL_8", "9": "LABEL_9", "10": "LABEL_10", "11": "LABEL_11", "12": "LABEL_12", "13": "LABEL_13", "14": "LABEL_14", "15": "LABEL_15", "16": "LABEL_16", "17": "LABEL_17", "18": "LABEL_18", "19": "LABEL_19", "20": "LABEL_20", "21": "LABEL_21", "22": "LABEL_22", "23": "LABEL_23", "24": "LABEL_24", "25": "LABEL_25", "26": "LABEL_26", "27": "LABEL_27", "28": "LABEL_28", "29": "LABEL_29", "30": "LABEL_30", "31": "LABEL_31", "32": "LABEL_32", "33": "LABEL_33", "34": "LABEL_34", "35": "LABEL_35", "36": "LABEL_36", "37": "LABEL_37", "38": "LABEL_38", "39": "LABEL_39", "40": "LABEL_40", "41": "LABEL_41", "42": "LABEL_42", "43": "LABEL_43", "44": "LABEL_44", "45": "LABEL_45", "46": "LABEL_46", "47": "LABEL_47", "48": "LABEL_48", "49": "LABEL_49" }, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_10": 10, "LABEL_11": 11, "LABEL_12": 12, "LABEL_13": 13, "LABEL_14": 14, "LABEL_15": 15, "LABEL_16": 16, "LABEL_17": 17, "LABEL_18": 18, "LABEL_19": 19, "LABEL_2": 2, "LABEL_20": 20, "LABEL_21": 21, "LABEL_22": 22, "LABEL_23": 23, "LABEL_24": 24, "LABEL_25": 25, "LABEL_26": 26, "LABEL_27": 27, "LABEL_28": 28, "LABEL_29": 29, "LABEL_3": 3, "LABEL_30": 30, "LABEL_31": 31, "LABEL_32": 32, "LABEL_33": 33, "LABEL_34": 34, "LABEL_35": 35, "LABEL_36": 36, "LABEL_37": 37, "LABEL_38": 38, "LABEL_39": 39, "LABEL_4": 4, "LABEL_40": 40, "LABEL_41": 41, "LABEL_42": 42, "LABEL_43": 43, "LABEL_44": 44, "LABEL_45": 45, "LABEL_46": 46, "LABEL_47": 47, "LABEL_48": 48, "LABEL_49": 49, "LABEL_5": 5, "LABEL_6": 6, "LABEL_7": 7, "LABEL_8": 8, "LABEL_9": 9 }, "layer_type": "bottleneck", "model_type": "resnet", "num_channels": 3, "out_features": [ "stage4" ], "out_indices": [ 4 ], "problem_type": "single_label_classification", "stage_names": [ "stem", "stage1", "stage2", "stage3", "stage4" ], "torch_dtype": "float32", "transformers_version": "4.44.0"}123version https://git-lfs.github.com/spec/v1oid sha256:01c25338788ebf56360b9df458cec768216b305cf6ff5c9ca1e61571c3998ed3size 17091612812345678910111213141516171819202122{ "crop_pct": 0.875, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.485, 0.456, 0.406 ], "image_processor_type": "ConvNextImageProcessor", "image_std": [ 0.229, 0.224, 0.225 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "shortest_edge": 224 }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129{ "best_metric": 0.876, "best_model_checkpoint": "./resnet_finetuned_models_dataset/CIFAR100/50_from_100/microsoft_resnet-101/model_idx_0846/checkpoints/checkpoint-1998", "epoch": 6.0, "eval_steps": 500, "global_step": 1998, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 1.0, "grad_norm": 77.06702423095703, "learning_rate": 4.752422169756048e-05, "loss": 3.6613, "step": 333 }, { "epoch": 1.0, "eval_accuracy": 0.5853333333333334, "eval_loss": 3.072692632675171, "eval_runtime": 7.5701, "eval_samples_per_second": 495.367, "eval_steps_per_second": 7.794, "step": 333 }, { "epoch": 2.0, "grad_norm": 107.75822448730469, "learning_rate": 4.058724504646834e-05, "loss": 1.8375, "step": 666 }, { "epoch": 2.0, "eval_accuracy": 0.7557333333333334, "eval_loss": 0.9727783799171448, "eval_runtime": 7.5136, "eval_samples_per_second": 499.093, "eval_steps_per_second": 7.852, "step": 666 }, { "epoch": 3.0, "grad_norm": 215.87725830078125, "learning_rate": 3.056302334890786e-05, "loss": 0.8122, "step": 999 }, { "epoch": 3.0, "eval_accuracy": 0.8309333333333333, "eval_loss": 0.646449089050293, "eval_runtime": 7.5328, "eval_samples_per_second": 497.822, "eval_steps_per_second": 7.832, "step": 999 }, { "epoch": 4.0, "grad_norm": 389.4276123046875, "learning_rate": 1.9436976651092144e-05, "loss": 0.5879, "step": 1332 }, { "epoch": 4.0, "eval_accuracy": 0.8546666666666667, "eval_loss": 0.525234043598175, "eval_runtime": 7.5429, "eval_samples_per_second": 497.155, "eval_steps_per_second": 7.822, "step": 1332 }, { "epoch": 5.0, "grad_norm": 123.77269744873047, "learning_rate": 9.412754953531663e-06, "loss": 0.4895, "step": 1665 }, { "epoch": 5.0, "eval_accuracy": 0.8648, "eval_loss": 0.4961576461791992, "eval_runtime": 7.5266, "eval_samples_per_second": 498.234, "eval_steps_per_second": 7.839, "step": 1665 }, { "epoch": 6.0, "grad_norm": 76.33296203613281, "learning_rate": 2.475778302439524e-06, "loss": 0.4472, "step": 1998 }, { "epoch": 6.0, "eval_accuracy": 0.876, "eval_loss": 0.46423813700675964, "eval_runtime": 7.4963, "eval_samples_per_second": 500.246, "eval_steps_per_second": 7.871, "step": 1998 } ], "logging_steps": 500, "max_steps": 2331, "num_input_tokens_seen": 0, "num_train_epochs": 7, "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": 4.9058575437312e+18, "train_batch_size": 64, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:cc99ee2b9e37dc91a9180b2ece01f0f700d074340150cf36f6f6c3350802ebc6size 5368config.jsonAdded+145
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
trainer_state.jsonAdded+129
training_args.binAdded+3