Merged
CANN开发者共建计划-修正 openpangu_v5_7b/llada2_moe/kimi_linear_48b_a3b README 指向 src/pypto_gym/transformers 的相对路径 #1038
板糖Add on 16 days ago
CANN开发者共建计划-修正 openpangu_v5_7b/llada2_moe/kimi_linear_48b_a3b README 指向 src/pypto_gym/transformers 的相对路径 #1038
Merged
Total: 3 files changed+3-3
| @@ -31,7 +31,7 @@ supported envelope (e.g. tensors off the bound NPU). | |||
| 31 | ## Integration | 31 | ## Integration |
| 32 | 32 | ||
| 33 | The kernel is wired into the model through the | 33 | The kernel is wired into the model through the |
| 34 | -[modeling_kimi.py](../../../transformers/kimi_linear_48b_a3b/modeling_kimi.py) | 34 | +[modeling_kimi.py](../../../src/pypto_gym/transformers/kimi_linear_48b_a3b/modeling_kimi.py) |
| 35 | dispatch hook: the ops package is injected as | 35 | dispatch hook: the ops package is injected as |
| 36 | `sys.modules["kimi_linear_48b_a3b_pto_kernels"]`, exposing `USE_PTO_KDA` (opt-in | 36 | `sys.modules["kimi_linear_48b_a3b_pto_kernels"]`, exposing `USE_PTO_KDA` (opt-in |
| 37 | switch, default off) and `kda_chunk_wrapper`; decode uses the unchanged upstream | 37 | switch, default off) and `kda_chunk_wrapper`; decode uses the unchanged upstream |
| @@ -30,5 +30,5 @@ zero-token / mixed-width); see `tests/ops/llada2_moe/test_cases.json`. | |||
| 30 | 30 | ||
| 31 | The kernel is wired into the model through `_moe_infer_pypto()` on | 31 | The kernel is wired into the model through `_moe_infer_pypto()` on |
| 32 | `LLaDA2MoeSparseMoeBlock` in | 32 | `LLaDA2MoeSparseMoeBlock` in |
| 33 | -[modeling_llada2_moe.py](../../../transformers/llada2_moe/modeling_llada2_moe.py), | 33 | +[modeling_llada2_moe.py](../../../src/pypto_gym/transformers/llada2_moe/modeling_llada2_moe.py), |
| 34 | gated by the `USE_PTO_EXPERT_FFN` switch (opt-in). | 34 | gated by the `USE_PTO_EXPERT_FFN` switch (opt-in). |
| @@ -52,7 +52,7 @@ source env_setup.sh | |||
| 52 | ## Integration | 52 | ## Integration |
| 53 | 53 | ||
| 54 | The kernel is wired into the model through `PanguEmbeddedModel.forward` in | 54 | The kernel is wired into the model through `PanguEmbeddedModel.forward` in |
| 55 | -[modeling_openpangu_dense.py](../../../transformers/openpangu_v5_7b/modeling_openpangu_dense.py), | 55 | +[modeling_openpangu_dense.py](../../../src/pypto_gym/transformers/openpangu_v5_7b/modeling_openpangu_dense.py), |
| 56 | gated by `USE_PTO_FUSED_LAYER`. Prefill and the disabled case fall back to the | 56 | gated by `USE_PTO_FUSED_LAYER`. Prefill and the disabled case fall back to the |
| 57 | PyTorch `PanguEmbeddedDecoderLayer`; decode (when enabled) iterates over layers | 57 | PyTorch `PanguEmbeddedDecoderLayer`; decode (when enabled) iterates over layers |
| 58 | and calls `self.fused_layers[i](...)` per layer. | 58 | and calls `self.fused_layers[i](...)` per layer. |