Repository navigation
Optimize model structure and performance with LayerNorm updates - #5
Merged
Merged
Conversation
EthanPeng-2048
added a commit
that referenced
this pull request
Nov 28, 2026
按 audit-report/ 十分片审查(P0 1 / P1 59 / P2 259)修复 include/、modules/、src/ 全部条目;WeightQuant/weight_quant_name 下沉 engine/abstraction 的 precision.hpp (子仓 7c03212),compute_layer_base 不再反向 include L3 的 model_spec.hpp(也不再 把 kvrec 拖进每个层 TU)。 - 结构:TrainingSession 双 step 抽 run_micro_step_ 骨架;RunDriver::fit → FitRun、 TextTrainer::fit → FitState、mnist_train main(453 行) → 8 个具名静态函数、 parse_text_train_args(435 行) → 7 个分组子例程;FeedForward 激活三选一改 make_activation_layer 工厂;6 个复合层补 param_children();PatchEmbedding 手写 patch 循环改 im2col/col2im(纯搬运,数值逐位不变);两个超长 backward 抽 helper。 - 错误通道:create_optimizer 裸 nullptr → Result<unique_ptr>(src 20 文件 + engine/tests/gpu_test.cpp 经子仓 1ba440b 适配);cli --lr-schedule 查 kLrSchedules 真源(原手写名单漏 multistep);手写错误检查全改 EX_* 宏族。 - 测试:夹具收编 test_common.hpp(本地 CHECK 副本、snapshot_params/l1_move 五份同构、 matrices_equal 同名异义消歧);修 fused_gpu 悬垂 span、conv2d_gradcheck 吞错假通过、 attn 缺 batch>1(铁律 #5);已删 AOT/scan_exprs 注释扫尾、NN_* 宏名对齐 EX_*。 - 回归修复:RunDriver 拆分把 execute_step 的 Result<bool> 判成 if(!cont)(应解引用), --max-steps 提前停与中止语义失效——run_driver_test/text_trainer_test 当场抓住; 另修 training_session 返回类型收窄与 text_trainer 的 -> 用法。 - 验收:Release 构建 0 error;ctest 82/82(基线 81/81 + 新增 downstream_smoke)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.