Skip to content

[A2-P] 李畅松 - 提交 profiling 实验结果 - #157

Open
maybe1possible wants to merge 3 commits into
OpenMOSS:mainfrom
maybe1possible:a2-p/maybe1possible
Open

[A2-P] 李畅松 - 提交 profiling 实验结果#157
maybe1possible wants to merge 3 commits into
OpenMOSS:mainfrom
maybe1possible:a2-p/maybe1possible

Conversation

@maybe1possible

Copy link
Copy Markdown
Contributor

基本信息

  • 同学真名:李畅松
  • 作业编号:A2-P

修改范围

  • 本 PR 只包含我本人本次作业的文件。
  • 没有修改其他同学、students/_template、公共题面或仓库配置。
  • PR 标题符合 [A编号] 姓名 - 简短说明

公开性与安全

  • GitHub 中的内容按公开资料检查。
  • 未包含内部主机名、IP、账号、凭据或私钥。
  • 已检查提交内容,未提交大型数据、模型权重、缓存或完整 trace。

双层提交

  • README.md 提供可公开、脱敏的作业报告。
  • README.md 已填写飞书补充文档链接。

A1/A0 额外检查

不适用:本 PR 是 A2-P。

A2-P 额外检查

  • 已提交 README.md、submission/profiling/**/*.py、规定的轻量 results/ 和三张被报告引用的压缩图片。
  • 已运行同步检查和 scripts/validate_repo.py;李畅松目录不再报告缺少链接或必需文件。
  • 已使用 torch.profiler 完成两个模型规模 × 三个 context 的六个 train_step trace。
  • 未提交 snapshot、完整 trace、权重、数据、压缩包、上游代码或依赖环境。
  • results/ 与 assets/ 保持轻量;Profile 仅保留汇总和截图。

实验摘要

  • ToyModel dtype trace 已在 Python 3.12.13 / PyTorch 2.5.1+cu124 / RTX 4090 上完成。
  • FP32 与 BF16 autocast 的中间 dtype、loss、gradient 和 peak memory 已写入 results/mixed_precision.json。
  • 正式 GPU 元数据:Driver 550.163.01,开跑前 free 48626 MiB / total 49140 MiB,power limit 450 W,P-state P8。

给助教的说明

根目录 README 已将 A2-P 标为“已发布”,但 A2-P 题面和 CONTRIBUTING.md 仍保留“发布候选稿/请勿提交”文字;请以课程当前通知为准。

Feishu supplement: https://fudan-nlp.feishu.cn/wiki/QvEmwHImPibuSMkYxbucPKzOn0e

@WillQvQ WillQvQ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

审核结论:需要修改后再合并。

当前有以下阻塞:

  1. PR 越界新增 docs/li-changsong-a2-gpu-manual.md。一个 A2-P PR 只能修改 students/李畅松/assignments/A2-P/;请删除该文件或另行处理。
  2. torch_profile.py 用 profiler 包住整个 run(args),而 run() 内同时包含 profile/warmup 和多次 measurement;公开 trace 也出现多次 optimizer call。题面要求每个配置只捕获一个预热后的稳定 train_step measurement step。请先在 profiler 外完成 warm-up,再用短 schedule 仅捕获 1 step,并更新六组 trace 汇总、metadata、截图和报告。
  3. memory_snapshot.py 在调用 run(args) 之前就开启 _record_memory_history,因此 warm-up 也被录入;题面明确要求 warm-up 完成后再开启 history。请调整边界、重新生成独立 snapshot/两张 Active Memory Timeline 及轻量峰值证据。
  4. results/memory/run_metadata.json 的公开 OOM message 包含进程号 1987602。公开提交禁止进程/内部运行标识,请脱敏后再提交;不要仅在 README 中声称已脱敏。
  5. 三个 CSV 以 CRLF 提交,git diff --check 报告 71 行 trailing whitespace(输出共 143 行)。请统一转换为 LF,保持数据值不变。

修复后重新 push 即可复核。

审核者:GPT-5.6 Sol Ultra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants