From 5d5cbf2985815e7253646537fb041289a8592062 Mon Sep 17 00:00:00 2001 From: whn09 Date: Wed, 21 Oct 2026 09:54:02 +0800 Subject: [PATCH] Add bilingual issue and PR templates English first, Chinese at the end in a collapsed
block. The PR template lists the tests/neuron suite commands. Co-Authored-By: Claude Opus 5.5 --- .github/ISSUE_TEMPLATE/task.md | 34 ++++++++++++++++++++++++++++++++ .github/pull_request_template.md | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/task.md create mode 100644 .github/pull_request_template.md diff --git a/.github/ISSUE_TEMPLATE/task.md b/.github/ISSUE_TEMPLATE/task.md new file mode 100644 index 0000000..cd40965 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/task.md @@ -0,0 +1,34 @@ +--- +name: Task +about: A self-contained task for the Neuron (Trainium) port +title: "[area] " +labels: '' +assignees: '' +--- + +**Context.** What is observed today (symptom, measurement, file/function involved). + +**Task.** What to change, and where. + +**Done when.** The concrete check that closes the issue (test command, numbers). + +**Pointers.** Relevant files, issues (#N), docs, prior art. + +--- +Branch: `neuron`. Design notes: [`deepinfer/neuron_ops/NEURON_PORT.md`](https://github.com/whn09/DeepInfer/blob/neuron/deepinfer/neuron_ops/NEURON_PORT.md). Test suite: `tests/neuron/setup_trn2.sh`, `tests/neuron/run_all.sh` (CPU mode: `DEEPINFER_NEURON_DEVICE=cpu`). Comment here to claim this task. + +
+中文 + +**背景。** 目前观察到的情况(现象、测量结果、涉及的文件/函数)。 + +**任务。** 要改什么、改在哪里。 + +**完成标准。** 关闭该 issue 的具体检查方式(测试命令、数值)。 + +**线索。** 相关文件、issue(#N)、文档、已有参考实现。 + +--- +分支:`neuron`。设计说明:[`deepinfer/neuron_ops/NEURON_PORT.md`](https://github.com/whn09/DeepInfer/blob/neuron/deepinfer/neuron_ops/NEURON_PORT.md)。测试套件:`tests/neuron/setup_trn2.sh`、`tests/neuron/run_all.sh`(CPU 模式:`DEEPINFER_NEURON_DEVICE=cpu`)。在此留言即可认领该任务。 + +
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..bf1a6f0 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,34 @@ +## Summary +What this PR does and why. + +## Changes +- + +## Testing +- [ ] `bash tests/neuron/run_all.sh cpu` (host only) +- [ ] `CORES= bash tests/neuron/run_all.sh device` (if you have free NeuronCores; state the range used) + +Paste the relevant results (pass/fail, numbers vs golden). + +## Related issues +Closes # + +
+中文 + +## 概述 +本 PR 做了什么、为什么。 + +## 改动 +- + +## 测试 +- `bash tests/neuron/run_all.sh cpu`(仅 host) +- `CORES= bash tests/neuron/run_all.sh device`(如有空闲 NeuronCore;注明所用范围) + +贴出相关结果(通过/失败、与 golden 对比的数值)。 + +## 相关 issue +Closes # + +