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