Run this model with HF Jobs
Run NeuronZero/SkinCancerClassifier 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/NeuronZero/SkinCancerClassifier. 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/NeuronZero/SkinCancerClassifier 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 NeuronZero/SkinCancerClassifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeuronZero/SkinCancerClassifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="NeuronZero/SkinCancerClassifier") 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("NeuronZero/SkinCancerClassifier") model = AutoModelForImageClassification.from_pretrained("NeuronZero/SkinCancerClassifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (13)
- README.mdAdded+22
- checkpoint-10695/config.jsonAdded+74
- checkpoint-10695/model.safetensorsAdded+3
- checkpoint-10695/optimizer.ptAdded+3
- checkpoint-10695/rng_state.pthAdded+3
- checkpoint-10695/scheduler.ptAdded+3
- checkpoint-10695/trainer_state.jsonAdded+126
- checkpoint-10695/training_args.binAdded+3
- config.jsonAdded+74
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+36
- training_args.binAdded+3
- training_params.jsonAdded+29
12345678910111213141516171819202122
---tags:- autotrain- image-classificationwidget:- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg example_title: Tiger- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg example_title: Teapot- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg example_title: Palacedatasets:- Pranavkpba2000/skin_cancer_dataset---
# Model Trained Using AutoTrain
- Problem type: Image Classification
## Validation MetricsNo validation metrics available1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ "_name_or_path": "microsoft/swin-base-patch4-window7-224-in22k", "_num_labels": 8, "architectures": [ "SwinForImageClassification" ], "attention_probs_dropout_prob": 0.0, "depths": [ 2, 2, 18, 2 ], "drop_path_rate": 0.1, "embed_dim": 128, "encoder_stride": 32, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 1024, "id2label": { "0": "AK", "1": "BCC", "2": "BKL", "3": "DF", "4": "MEL", "5": "NV", "6": "SCC", "7": "VASC" }, "image_size": 224, "initializer_range": 0.02, "label2id": { "AK": 0, "BCC": 1, "BKL": 2, "DF": 3, "MEL": 4, "NV": 5, "SCC": 6, "VASC": 7 }, "layer_norm_eps": 1e-05, "mlp_ratio": 4.0, "model_type": "swin", "num_channels": 3, "num_heads": [ 4, 8, 16, 32 ], "num_layers": 4, "out_features": [ "stage4" ], "out_indices": [ 4 ], "patch_size": 4, "path_norm": true, "problem_type": "single_label_classification", "qkv_bias": true, "stage_names": [ "stem", "stage1", "stage2", "stage3", "stage4" ], "torch_dtype": "float32", "transformers_version": "4.39.0", "use_absolute_embeddings": false, "window_size": 7}123version https://git-lfs.github.com/spec/v1oid sha256:eada057239c274dcf90bacfeb17d0c3298dfa3d6f214a26f3a3ca8d2d592f9e5size 347523416123version https://git-lfs.github.com/spec/v1oid sha256:8d219e5f8d2177c2040ca23df7cc4be5367b9121fc64c4f0b703cccd12d411d1size 694354893123version https://git-lfs.github.com/spec/v1oid sha256:70107898eae2a6993041ade1609353284d5b32b1e1ae13669f70bd5f0bd50d97size 13990123version https://git-lfs.github.com/spec/v1oid sha256:0fefa400e1d882c71bf8b7e1b675d50d75cd10280a9e931c09584820051f23b1size 1064123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126{ "best_metric": null, "best_model_checkpoint": null, "epoch": 3.0, "eval_steps": 500, "global_step": 10695, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.2, "grad_norm": 34.351593017578125, "learning_rate": 3.327102803738318e-05, "loss": 1.2122, "step": 712 }, { "epoch": 0.4, "grad_norm": 10.322906494140625, "learning_rate": 4.816103896103896e-05, "loss": 0.8692, "step": 1424 }, { "epoch": 0.6, "grad_norm": 23.850841522216797, "learning_rate": 4.446233766233767e-05, "loss": 0.747, "step": 2136 }, { "epoch": 0.8, "grad_norm": 26.398853302001953, "learning_rate": 4.076363636363636e-05, "loss": 0.6957, "step": 2848 }, { "epoch": 1.0, "grad_norm": 39.551414489746094, "learning_rate": 3.706493506493507e-05, "loss": 0.6323, "step": 3560 }, { "epoch": 1.2, "grad_norm": 20.38348388671875, "learning_rate": 3.3366233766233766e-05, "loss": 0.5724, "step": 4272 }, { "epoch": 1.4, "grad_norm": 18.263744354248047, "learning_rate": 2.9667532467532467e-05, "loss": 0.5256, "step": 4984 }, { "epoch": 1.6, "grad_norm": 7.960543632507324, "learning_rate": 2.596883116883117e-05, "loss": 0.522, "step": 5696 }, { "epoch": 1.8, "grad_norm": 5.682173252105713, "learning_rate": 2.227012987012987e-05, "loss": 0.4766, "step": 6408 }, { "epoch": 2.0, "grad_norm": 7.151096820831299, "learning_rate": 1.8571428571428572e-05, "loss": 0.466, "step": 7120 }, { "epoch": 2.2, "grad_norm": 48.665584564208984, "learning_rate": 1.4872727272727275e-05, "loss": 0.3953, "step": 7832 }, { "epoch": 2.4, "grad_norm": 3.8058860301971436, "learning_rate": 1.1174025974025975e-05, "loss": 0.3673, "step": 8544 }, { "epoch": 2.6, "grad_norm": 17.926410675048828, "learning_rate": 7.475324675324675e-06, "loss": 0.3625, "step": 9256 }, { "epoch": 2.8, "grad_norm": 25.310287475585938, "learning_rate": 3.776623376623377e-06, "loss": 0.348, "step": 9968 }, { "epoch": 3.0, "grad_norm": 18.61994743347168, "learning_rate": 7.792207792207792e-08, "loss": 0.3617, "step": 10680 } ], "logging_steps": 712, "max_steps": 10695, "num_input_tokens_seen": 0, "num_train_epochs": 3, "save_steps": 500, "total_flos": 6.702780767795675e+18, "train_batch_size": 8, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:be0595590217ba4954ff2a7831242d6ff503684dd682e1468e0a306bd8d28d07size 49841234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ "_name_or_path": "microsoft/swin-base-patch4-window7-224-in22k", "_num_labels": 8, "architectures": [ "SwinForImageClassification" ], "attention_probs_dropout_prob": 0.0, "depths": [ 2, 2, 18, 2 ], "drop_path_rate": 0.1, "embed_dim": 128, "encoder_stride": 32, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 1024, "id2label": { "0": "AK", "1": "BCC", "2": "BKL", "3": "DF", "4": "MEL", "5": "NV", "6": "SCC", "7": "VASC" }, "image_size": 224, "initializer_range": 0.02, "label2id": { "AK": 0, "BCC": 1, "BKL": 2, "DF": 3, "MEL": 4, "NV": 5, "SCC": 6, "VASC": 7 }, "layer_norm_eps": 1e-05, "mlp_ratio": 4.0, "model_type": "swin", "num_channels": 3, "num_heads": [ 4, 8, 16, 32 ], "num_layers": 4, "out_features": [ "stage4" ], "out_indices": [ 4 ], "patch_size": 4, "path_norm": true, "problem_type": "single_label_classification", "qkv_bias": true, "stage_names": [ "stem", "stage1", "stage2", "stage3", "stage4" ], "torch_dtype": "float32", "transformers_version": "4.39.0", "use_absolute_embeddings": false, "window_size": 7}123version https://git-lfs.github.com/spec/v1oid sha256:eada057239c274dcf90bacfeb17d0c3298dfa3d6f214a26f3a3ca8d2d592f9e5size 347523416123456789101112131415161718192021222324252627282930313233343536{ "_valid_processor_keys": [ "images", "do_resize", "size", "resample", "do_rescale", "rescale_factor", "do_normalize", "image_mean", "image_std", "return_tensors", "data_format", "input_data_format" ], "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.485, 0.456, 0.406 ], "image_processor_type": "ViTImageProcessor", "image_std": [ 0.229, 0.224, 0.225 ], "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "height": 224, "width": 224 }}123version https://git-lfs.github.com/spec/v1oid sha256:be0595590217ba4954ff2a7831242d6ff503684dd682e1468e0a306bd8d28d07size 49841234567891011121314151617181920212223242526272829{ "data_path": "Pranavkpba2000/skin_cancer_dataset", "model": "microsoft/swin-base-patch4-window7-224-in22k", "username": "NeuronZero", "lr": 5e-05, "epochs": 3, "batch_size": 8, "warmup_ratio": 0.1, "gradient_accumulation": 1, "optimizer": "adamw_torch", "scheduler": "linear", "weight_decay": 0.0, "max_grad_norm": 1.0, "seed": 42, "train_split": "train", "valid_split": null, "logging_steps": -1, "project_name": "SkinCancerClassifier", "auto_find_batch_size": false, "mixed_precision": "fp8", "save_total_limit": 1, "save_strategy": "epoch", "push_to_hub": true, "repo_id": "NeuronZero/SkinCancerClassifier", "evaluation_strategy": "epoch", "image_column": "image", "target_column": "label", "log": "none"}README.mdAdded+22
checkpoint-10695/config.jsonAdded+74
checkpoint-10695/model.safetensorsAdded+3
checkpoint-10695/optimizer.ptAdded+3
checkpoint-10695/rng_state.pthAdded+3
checkpoint-10695/scheduler.ptAdded+3
checkpoint-10695/trainer_state.jsonAdded+126
checkpoint-10695/training_args.binAdded+3
config.jsonAdded+74
model.safetensorsAdded+3
preprocessor_config.jsonAdded+36
training_args.binAdded+3
training_params.jsonAdded+29