hygon-nlp-operator

Benchmarks GEMM, Conv2d, longtail, and Transformer Block operators on Hygon DCU hardware.

7|1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/DeepLink-org/DeepEval-Skills --skill hygon-nlp-operator-deeplink-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hygon-nlp-operator
Source: https://github.com/DeepLink-org/DeepEval-Skills/tree/main/skills/Hygon/nlp/hygon-nlp-operator
Command: npx skills add https://github.com/DeepLink-org/DeepEval-Skills --skill hygon-nlp-operator-deeplink-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, pandas, and includes scripts (resource) components.

What problem does it solve? Measuring NLP operator performance on Hygon DCU accelerators requires manual container setup, environment validation, benchmark execution, and result formatting, which is error-prone and hard to reproduce. This Skill automates the full evaluation pipeline so operators get consistent, verifiable latency baselines. ## Core Features & Use Cases - Multi-operator benchmarking: Runs GEMM (FP16/FP32 via GPUfusion), Conv2d (HIP-PyTorch/MIOpen), LongTail-Bench operators, and Transformer encoder/decoder block inference latency tests. - Deterministic result collection: Converts measurement CSVs into Result Contract 2.0 JSON with per-case latency and eight summary metrics (avg, p50, p95, min, max), with run-token and workload-fingerprint validation to prevent stale result reuse. - Containerized workflow: Guides Docker container creation with DCU device mounts, DTK environment checks, and atomic result publishing. - Use Case: An engineer needs baseline GEMM latency on a Hygon DCU cluster. The Skill launches the container, runs FP16/FP32 GEMM with 10 warmup and 1000 timed iterations, and emits a validated result.json. ## Quick Start Ask the agent to generate GEMM operator baseline values on a Hygon DCU and it will run the full benchmark and produce result.json.

Frequently Asked Questions about hygon-nlp-operator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I benchmark GEMM operator performance on Hygon DCU?

Launch the provided Docker container with DCU device mounts, then run run_native_gemm.py against the FP16 and FP32 case CSVs with 10 warmup and 1000 timed iterations. Finally call collect_cases.py with --benchmark gemm to produce result.json.

What operators does Hygon DCU NLP benchmarking support?

It supports five operator categories: GEMM via GPUfusion-compiled binaries, Conv2d via HIP-PyTorch/MIOpen, LongTail-Bench operators in FP32 and FP16, Transformer encoder/decoder block inference, and RCCL/MPI communication operators on multi-node setups.

Does the Conv2d benchmark use cuDNN on Hygon DCU?

No. Conv2d must use the HIP-PyTorch/MIOpen path in test_conv_dcu.py because the GPUfusion cuDNN compatibility layer can fail at cudnnSetConvolution2dDescriptor. Falling back to that path is explicitly prohibited.

Why does result collection fail for LongTail operator benchmarks?

Collection fails when the f32 and f16 CSVs do not match the run-scoped manifest, when aibench_run_token values differ, or when old torch.json results are reused. Each run must regenerate the manifest and delete stale results before executing.

What hardware is required for Hygon operator benchmarking?

GEMM, Conv2d, longtail, and Transformer Block benchmarks need at least one available DCU with DTK runtime. Communication operator tests additionally require multi-node multi-card setups with MPI, RCCL, and configured cluster networking.