xujiashuai/timm-convnext_large_mlp.clip_laion2b_augreg_ft_in1k
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

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.

  • Original: timm/convnext_large_mlp.clip_laion2b_augreg_ft_in1k
  • Architecture: ConvNeXt Large (MLP head)
  • Parameters: 200,128,168
  • Input Resolution: 256x256
  • Output Classes: 1000

2. NPU Adaptation

  • Device: Ascend NPU (npu:0)
  • Framework: PyTorch + torch_npu

3. Accuracy

MetricValue
Cosine Similarity0.999970
Max Abs Error0.017619

4. Latency

DeviceAvg Latency
NPU (npu:0)19.83 ms

5. CPU vs NPU

MetricCPUNPU
Output Shape[1, 1000][1, 1000]
Prediction2121

6. Usage

source setup_env.sh
HF_ENDPOINT=https://hf-mirror.com python3 inference.py --device npu:0