Run this model with HF Jobs
Run litert-community/efficientnet_b0 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/litert-community/efficientnet_b0. 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/litert-community/efficientnet_b0 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 litert-community/efficientnet_b0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/efficientnet_b0 with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Replace dynamic-range int8 with weight-only int8
Browse filesSame change as efficientnet_b1 (merged earlier today): the shipped dynamic-range int8 degrades accuracy on this architecture, while weight-only int8 is near-lossless at the same size reduction.
Measured against the torch float reference on real photos plus fixed random tensors at native resolution: dynamic min logit correlation 0.716 (top-1 4/6) vs weight-only 0.996 (top-1 4/6). The replacement file is quantized directly from this repository's published float32 file (litert quantize, recipe weight_only_wi8_afp32), so the weights are identical.
The model card is updated in the same commit: the metric entries for the removed dynamic file are dropped and a short quantized-variant note with the measured numbers is added.
Files changed (2)
27 unmodified lines28293031323334353631323313 unmodified lines4748495051525354555657585960616227 unmodified lines - name: Top 5 Accuracy (Full Precision) type: accuracy value: 0.9353 - name: Top 1 Accuracy (Dynamic Quantized wi8 afp32) type: accuracy value: 0.7047 - name: Top 5 Accuracy (Dynamic Quantized wi8 afp32) type: accuracy value: 0.8950---
# EfficientNet B013 unmodified linesacc@5 (on ImageNet-1K): 93.532% num_params: 5,288,548
### Quantized variant
`efficientnet_b0_weight_only_wi8_afp32.tflite` is a weight-only int8quantization of the same weights (about 3.5x smaller than float32).Weight-only quantization is used instead of dynamic-range quantizationbecause EfficientNet's SE and SiLU layers are sensitive to activationquantization; in a spot check against the float model the weight-onlyfile keeps the top-1 predictions on real photos with a minimum logitcorrelation of 0.996.
## How to Use
**1. Install Dependencies** Ensure your Python environment is set up with the required libraries. Run the following command in your terminal: 12323version https://git-lfs.github.com/spec/v1oid sha256:86551f77214b2e24779a5ed3e9532f252b5bff352ba949a90e6372739bb6b685size 5988912oid sha256:16bc1c4fa541cef382b37f204458882862468638c7ccae7f8cb6b249e4788394size 6032208