This delivery adapts the official Freepik/nsfw_image_detector checkpoint for a real Ascend NPU compatibility smoke. The official model card and source project are:
The verified Hugging Face revision is 15b85477e4fd2000db76ae9aae0f89a72f95e2e3. The official TimmWrapperForImageClassification model was loaded on npu:0 after installing the required timm dependency. A deterministic bfloat16 tensor with shape [1, 3, 448, 448] produced finite logits with shape [1, 4]; the real NPU forward completed in about 0.187 seconds.
This is an execution compatibility gate only. It does not claim NSFW classification quality or full image-task precision. The official weight file is excluded from Git and must be downloaded into the model directory before running:
python inference.py --model-dir /tmp/model-agent/nsfw --output validation/npu-runtime.jsonThe expected file is model.safetensors. Its verified size and SHA-256 are recorded in model-lock.json. The smoke uses the official Transformers model class and does not modify model weights.


