凤
weixin_44093752/genomics-tf-prediction-ascend-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

Genereux-akotenou/genomics-tf-prediction Ascend NPU adaptation

This repository adapts the official Genereux-akotenou/genomics-tf-prediction Keras binary classifier for plant transcription-factor binding-site prediction. Google/Kimi official-source search and the Hugging Face API were checked on 2026-08-22. The model card does not declare a license, so the delivery metadata intentionally records unknown rather than guessing one.

Source lock

  • Official model: Genereux-akotenou/genomics-tf-prediction
  • Official revision: 75920ac756b138f638afd9c2ae973a32d9a9e1b7
  • Selected official submodel: Binary-Classifier/ERF/FEEDFORWARD_k2.keras
  • Artifact size: 2,155,969 bytes
  • Artifact SHA-256: 2087f422515bbd99653da14e0eaf2a4afaf79cbba6115a87559bf68938239d6b
  • Official meta.json size/SHA-256: 99,383 / 32b4e81cde1a2e9e9f2d9a750fd234babe7c038a28020920f2f8658d0c315860

The official Keras ZIP contains model.weights.h5. The adaptation reads the eight model tensors with a strict key and shape check, transposes Keras Dense kernels for equivalent PyTorch Linear layers, disables Dropout in evaluation mode, and preserves ReLU/Sigmoid semantics. It does not download or depend on the repository's multi-gigabyte testset.

Real Ascend smoke result

The same deterministic [1,200] float32 input was executed on CPU and a real Ascend910 npu:0. This is an execution and finite-output smoke gate; it does not claim full plant-genomics benchmark accuracy.

  • CPU forward: 0.0014353366568684578 s
  • NPU forward: 0.13012981181964278 s on npu:0
  • CPU/NPU output: [1,1], finite on both devices, probability 0.0
  • CPU/NPU cosine similarity: 1.0
  • Maximum and mean absolute difference: 0.0 / 0.0
  • Parameter count: 176897
  • Official checkpoint SHA-256 rechecked on the Pod: 2087f422515bbd99653da14e0eaf2a4afaf79cbba6115a87559bf68938239d6b

The result is intentionally reported as smoke_only: true: the competition requirement for this pass is real NPU execution, not a full accuracy benchmark over the upstream multi-gigabyte test set.

Run

Place the official artifact under model/FEEDFORWARD_k2.keras, source the CANN environment, and run:

root@device:/#

./run.sh

CPU smoke can be selected with DEVICE=cpu ./run.sh. The script writes machine-readable JSON and NumPy artifacts under validation/.

Evidence

Agent workflow

NPU device call

Model result