timm/convnext_large_mlp.clip_laion2b_augreg_ft_in1k - Ascend NPU Adaptation
1. Model Overview
ConvNeXt Large with MLP head, pre-trained with CLIP on LAION-2B and augmented regularization, fine-tuned on ImageNet-1k at 256x256 resolution.
2. NPU Adaptation
- Device: Ascend NPU (npu:0)
- Framework: PyTorch + torch_npu
3. Accuracy
| Metric | Value |
|---|
| Cosine Similarity | 0.999970 |
| Max Abs Error | 0.017619 |
4. Latency
| Device | Avg Latency |
|---|
| NPU (npu:0) | 19.83 ms |
5. CPU vs NPU
| Metric | CPU | NPU |
|---|
| Output Shape | [1, 1000] | [1, 1000] |
| Prediction | 21 | 21 |
6. Usage
source setup_env.sh
HF_ENDPOINT=https://hf-mirror.com python3 inference.py --device npu:0