Run this model with HF Jobs
Run ProbeX/Model-J__ResNet__model_idx_0198 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_0198. 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_0198 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_0198 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_0198 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_0198") 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_0198") model = AutoModelForImageClassification.from_pretrained("ProbeX/Model-J__ResNet__model_idx_0198", 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:56c6db44125c35020ae564b028d0ab2fcfd0f2fb7bda1d4d4153e387c7cff152size 17091612012345678910111213141516171819202122{ "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.8808, "best_model_checkpoint": "./resnet_finetuned_models_dataset/CIFAR100/50_from_100/microsoft_resnet-101/model_idx_0198/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": 210.370849609375, "learning_rate": 0.0001, "loss": 2.6769, "step": 333 }, { "epoch": 1.0, "eval_accuracy": 0.7517333333333334, "eval_loss": 0.8971264362335205, "eval_runtime": 9.0689, "eval_samples_per_second": 413.501, "eval_steps_per_second": 6.506, "step": 333 }, { "epoch": 2.0, "grad_norm": 184.90109252929688, "learning_rate": 0.0001, "loss": 0.667, "step": 666 }, { "epoch": 2.0, "eval_accuracy": 0.8434666666666667, "eval_loss": 0.503759503364563, "eval_runtime": 7.6071, "eval_samples_per_second": 492.963, "eval_steps_per_second": 7.756, "step": 666 }, { "epoch": 3.0, "grad_norm": 115.67908477783203, "learning_rate": 0.0001, "loss": 0.3821, "step": 999 }, { "epoch": 3.0, "eval_accuracy": 0.8581333333333333, "eval_loss": 0.4413103759288788, "eval_runtime": 7.6312, "eval_samples_per_second": 491.401, "eval_steps_per_second": 7.731, "step": 999 }, { "epoch": 4.0, "grad_norm": 47.9951057434082, "learning_rate": 0.0001, "loss": 0.2395, "step": 1332 }, { "epoch": 4.0, "eval_accuracy": 0.8712, "eval_loss": 0.40222734212875366, "eval_runtime": 7.6517, "eval_samples_per_second": 490.089, "eval_steps_per_second": 7.711, "step": 1332 }, { "epoch": 5.0, "grad_norm": 140.40594482421875, "learning_rate": 0.0001, "loss": 0.1552, "step": 1665 }, { "epoch": 5.0, "eval_accuracy": 0.8712, "eval_loss": 0.4267241358757019, "eval_runtime": 7.6377, "eval_samples_per_second": 490.988, "eval_steps_per_second": 7.725, "step": 1665 }, { "epoch": 6.0, "grad_norm": 52.56611251831055, "learning_rate": 0.0001, "loss": 0.0904, "step": 1998 }, { "epoch": 6.0, "eval_accuracy": 0.8808, "eval_loss": 0.42819133400917053, "eval_runtime": 7.6282, "eval_samples_per_second": 491.595, "eval_steps_per_second": 7.734, "step": 1998 } ], "logging_steps": 500, "max_steps": 1998, "num_input_tokens_seen": 0, "num_train_epochs": 6, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "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:573b1860477a66174776439a08b7a90274965aedae0ca8d1ed398411416236basize 5368config.jsonAdded+145
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
trainer_state.jsonAdded+129
training_args.binAdded+3