Run this model with HF Jobs
Run NeuronZero/WBC-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/NeuronZero/WBC-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/NeuronZero/WBC-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 NeuronZero/WBC-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeuronZero/WBC-Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="NeuronZero/WBC-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("NeuronZero/WBC-Classifier") model = AutoModelForImageClassification.from_pretrained("NeuronZero/WBC-Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (13)
- README.mdAdded+22
- checkpoint-6411/config.jsonAdded+62
- checkpoint-6411/model.safetensorsAdded+3
- checkpoint-6411/optimizer.ptAdded+3
- checkpoint-6411/rng_state.pthAdded+3
- checkpoint-6411/scheduler.ptAdded+3
- checkpoint-6411/trainer_state.jsonAdded+126
- checkpoint-6411/training_args.binAdded+3
- config.jsonAdded+62
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+37
- 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:- Falah/Blood_8_classes_Dataset---
# Model Trained Using AutoTrain
- Problem type: Image Classification
## Validation MetricsNo validation metrics available1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ "_name_or_path": "microsoft/resnet-50", "_num_labels": 8, "architectures": [ "ResNetForImageClassification" ], "depths": [ 3, 4, 6, 3 ], "downsample_in_bottleneck": false, "downsample_in_first_stage": false, "embedding_size": 64, "hidden_act": "relu", "hidden_sizes": [ 256, 512, 1024, 2048 ], "id2label": { "0": "basophil", "1": "eosinophil", "2": "erythroblast", "3": "ig", "4": "lymphocyte", "5": "monocyte", "6": "neutrophil", "7": "platelet" }, "label2id": { "basophil": 0, "eosinophil": 1, "erythroblast": 2, "ig": 3, "lymphocyte": 4, "monocyte": 5, "neutrophil": 6, "platelet": 7 }, "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.39.0"}123version https://git-lfs.github.com/spec/v1oid sha256:eb45a381a94d542f635e7a2536e4dcf04f8a597cc80df57f1fa1732077c9fff7size 94352152123version https://git-lfs.github.com/spec/v1oid sha256:ad5ef3df5d184537e05233a4fdb82eebafab51ab09cc9743bd10d33eca69eecesize 188326330123version https://git-lfs.github.com/spec/v1oid sha256:aa4fe395fc7eac2b1ba59be8f15a541105007c71f6919f8d48fc87cdc1ee3e0asize 13990123version https://git-lfs.github.com/spec/v1oid sha256:0640c7edf921c53f71167a8db6b7ec66db0939f20105c94be89d88da848942edsize 1064123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126{ "best_metric": null, "best_model_checkpoint": null, "epoch": 3.0, "eval_steps": 500, "global_step": 6411, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.2, "grad_norm": 6479046246400.0, "learning_rate": 3.3255451713395644e-05, "loss": 31699221108.3091, "step": 427 }, { "epoch": 0.4, "grad_norm": 8700652158976.0, "learning_rate": 4.8162593170393484e-05, "loss": 14378762930.6604, "step": 854 }, { "epoch": 0.6, "grad_norm": 16.28143310546875, "learning_rate": 4.446177847113885e-05, "loss": 3635725784.4309, "step": 1281 }, { "epoch": 0.8, "grad_norm": 6.706409454345703, "learning_rate": 4.076096377188421e-05, "loss": 1017393142.4075, "step": 1708 }, { "epoch": 1.0, "grad_norm": 9.295268058776855, "learning_rate": 3.7060149072629574e-05, "loss": 1230655574.3326, "step": 2135 }, { "epoch": 1.2, "grad_norm": 7.9164958000183105, "learning_rate": 3.335933437337493e-05, "loss": 387735187.4848, "step": 2562 }, { "epoch": 1.4, "grad_norm": 18.9678897857666, "learning_rate": 2.96585196741203e-05, "loss": 610998305.5738, "step": 2989 }, { "epoch": 1.6, "grad_norm": 22.521636962890625, "learning_rate": 2.595770497486566e-05, "loss": 286763645.9016, "step": 3416 }, { "epoch": 1.8, "grad_norm": 6.2225751876831055, "learning_rate": 2.2256890275611026e-05, "loss": 146726173.377, "step": 3843 }, { "epoch": 2.0, "grad_norm": 4.1397271156311035, "learning_rate": 1.8556075576356388e-05, "loss": 153057112.1311, "step": 4270 }, { "epoch": 2.2, "grad_norm": 20.3540096282959, "learning_rate": 1.4855260877101752e-05, "loss": 167597749.0585, "step": 4697 }, { "epoch": 2.4, "grad_norm": 2.9089903831481934, "learning_rate": 1.1154446177847114e-05, "loss": 31491796.2342, "step": 5124 }, { "epoch": 2.6, "grad_norm": 11.952803611755371, "learning_rate": 7.453631478592478e-06, "loss": 228096436.459, "step": 5551 }, { "epoch": 2.8, "grad_norm": 8.380680084228516, "learning_rate": 3.7528167793378402e-06, "loss": 170669039.2131, "step": 5978 }, { "epoch": 3.0, "grad_norm": 11.055083274841309, "learning_rate": 5.2002080083203335e-08, "loss": 77525903.2881, "step": 6405 } ], "logging_steps": 427, "max_steps": 6411, "num_input_tokens_seen": 0, "num_train_epochs": 3, "save_steps": 500, "total_flos": 1.089435891661996e+18, "train_batch_size": 8, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:6f7855f212d39180a74392ed00777ae962b15e47ad4528f0eec431cc0dd2b574size 49201234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ "_name_or_path": "microsoft/resnet-50", "_num_labels": 8, "architectures": [ "ResNetForImageClassification" ], "depths": [ 3, 4, 6, 3 ], "downsample_in_bottleneck": false, "downsample_in_first_stage": false, "embedding_size": 64, "hidden_act": "relu", "hidden_sizes": [ 256, 512, 1024, 2048 ], "id2label": { "0": "basophil", "1": "eosinophil", "2": "erythroblast", "3": "ig", "4": "lymphocyte", "5": "monocyte", "6": "neutrophil", "7": "platelet" }, "label2id": { "basophil": 0, "eosinophil": 1, "erythroblast": 2, "ig": 3, "lymphocyte": 4, "monocyte": 5, "neutrophil": 6, "platelet": 7 }, "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.39.0"}123version https://git-lfs.github.com/spec/v1oid sha256:eb45a381a94d542f635e7a2536e4dcf04f8a597cc80df57f1fa1732077c9fff7size 9435215212345678910111213141516171819202122232425262728293031323334353637{ "_valid_processor_keys": [ "images", "do_resize", "size", "crop_pct", "resample", "do_rescale", "rescale_factor", "do_normalize", "image_mean", "image_std", "return_tensors", "data_format", "input_data_format" ], "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 }}123version https://git-lfs.github.com/spec/v1oid sha256:6f7855f212d39180a74392ed00777ae962b15e47ad4528f0eec431cc0dd2b574size 49201234567891011121314151617181920212223242526272829{ "data_path": "Falah/Blood_8_classes_Dataset", "model": "microsoft/resnet-50", "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": "WBC-Classifier", "auto_find_batch_size": false, "mixed_precision": "fp8", "save_total_limit": 1, "save_strategy": "epoch", "push_to_hub": true, "repo_id": "NeuronZero/WBC-Classifier", "evaluation_strategy": "epoch", "image_column": "image", "target_column": "label", "log": "none"}README.mdAdded+22
checkpoint-6411/config.jsonAdded+62
checkpoint-6411/model.safetensorsAdded+3
checkpoint-6411/optimizer.ptAdded+3
checkpoint-6411/rng_state.pthAdded+3
checkpoint-6411/scheduler.ptAdded+3
checkpoint-6411/trainer_state.jsonAdded+126
checkpoint-6411/training_args.binAdded+3
config.jsonAdded+62
model.safetensorsAdded+3
preprocessor_config.jsonAdded+37
training_args.binAdded+3
training_params.jsonAdded+29