MobileNetV3-Small-075 is a width-reduced version of MobileNetV3-Small, using 0.75x width multiplier to further reduce parameters and computation. Suitable for extremely resource-constrained scenarios. Trained on ImageNet-1K, input size 224x224.
Original model: timm/tf_mobilenetv3_small_075.in1k
| Component | Version |
|---|---|
| NPU | Ascend910 |
| CANN | 25.5.2 |
| PyTorch | 2.9.0 |
| torch_npu | 2.9.0 |
| timm | 1.0.27 |
| Python | 3.11.14 |
| OS | Linux (aarch64) |
pip install torch torchvision timm Pillow numpy modelscope safetensors
export MODELSCOPE_CACHE=/tmp/modelscope# CPU inference
python3 inference.py --model_name tf_mobilenetv3_small_075.in1k --device cpu --output_dir ./tf_mobilenetv3_small_075.in1k
# NPU inference
python3 inference.py --model_name tf_mobilenetv3_small_075.in1k --device npu --output_dir ./tf_mobilenetv3_small_075.in1k| Metric | CPU | NPU (Ascend910) |
|---|---|---|
| Input size | 224x224 | 224x224 |
| Avg inference | 10.47 ms | 4.57 ms |
| Top-1 class | class 549 | class 549 |
| Top-1 prob | 6.6653% | 6.6479% |
NPU speedup: 2.3x vs CPU.
| Metric | Value |
|---|---|
| Max logits diff | 0.03467906 |
| Mean logits diff | 0.00588750 |
| Cosine Similarity | 0.999977 |
| Max prob diff | 0.025690% |
| Mean prob diff | 0.000624% |
| Relative L2 error | 0.672890% |
| Top-1 match | Yes |
| Top-5 overlap | 5/5 |
Top-5 predictions:
| Rank | CPU class | CPU prob | NPU class | NPU prob |
|---|---|---|---|---|
| 1 | class 549 | 6.6653% | class 549 | 6.6479% |
| 2 | class 916 | 2.5666% | class 916 | 2.5596% |
| 3 | class 446 | 1.3935% | class 446 | 1.3678% |
| 4 | class 846 | 1.1231% | class 892 | 1.1269% |
| 5 | class 892 | 1.1183% | class 846 | 1.1014% |
NPU vs CPU error < 1%. All metrics show NPU results match CPU:

import torch
import timm
from PIL import Image
from timm.data import create_transform, resolve_data_config
model = timm.create_model('tf_mobilenetv3_small_075.in1k', pretrained=True)
model.eval()
if torch.npu.is_available():
model = model.npu()
transform = create_transform(**resolve_data_config(model.pretrained_cfg, model=model))
img = Image.open('image.jpg').convert('RGB')
input_tensor = transform(img).unsqueeze(0)
if torch.npu.is_available():
input_tensor = input_tensor.npu()
with torch.no_grad():
logits = model(input_tensor)
probs = torch.nn.functional.softmax(logits, dim=-1)
top5 = torch.topk(probs, k=5)
for i in range(5):
print(f"class {top5.indices[0][i].item()}: {top5.values[0][i].item()*100:.2f}%")