凤
weixin_44093752/ByteDance-Seed-CryoFM-v2-Ascend-NPU
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

ByteDance-Seed/cryofm-v2 Ascend NPU adaptation

This package pins the public official CryoFM2 pre-training checkpoint and its official 3D U-Net source. CryoFM2 is a flow-based foundation model for cryo-EM density maps with a 64 x 64 x 64 voxel contract.

Official sources

  • Hugging Face: https://huggingface.co/ByteDance-Seed/cryofm-v2
  • Resolved revision: 4e308f7f028af46ca2c7ee5af81e29775bc370dd
  • Official source: https://github.com/ByteDance-Seed/cryofm/tree/64486814723010bd200525cda2fa463a25ba1339
  • License: Apache-2.0

Adaptation boundary

The wrapper instantiates the official UNet3DModel, strictly loads the official cryofm2-pretrain/model.safetensors, and executes one official-model forward on npu:0 using a 64 x 64 x 64 input volume and timestep 500. The result records shape, device, finite-output, and weight-integrity gates. This is an NPU execution smoke test only; it does not claim cryo-EM reconstruction quality, sampling quality, or full precision alignment.

The large official weight is intentionally not committed to this Git repository. scripts/pod_validate.sh downloads the pinned public file into /tmp/model-agent/cryofm-v2, verifies its SHA-256, and runs the wrapper with the bundled official runtime subset.

Run with bash scripts/pod_validate.sh or directly with inference.py --weight-path ./artifacts/model.safetensors --source-path ./runtime/src --device npu after placing the verified weight at that path.

Latest verified smoke record: Ascend910 npu:0, strict state load true, output shape [1, 1, 64, 64, 64], finite output true, forward time 0.2382525699 s.

Delivery manifest

  • inference.py: strict official checkpoint loader and one-step NPU forward wrapper.
  • scripts/pod_validate.sh: pinned weight download, SHA-256 verification, and reproducible Pod validation entrypoint.
  • validation/npu.json and validation/precision.json: machine-readable validation records.
  • evidence/ and assets/: the original terminal evidence and its rendered images.

Evidence

Agent workflow

NPU device call

Model result