feat(scripts): add asset preparation for example training - #207
Merged
Conversation
kilinchange
force-pushed
the
chore/add-prepare-assets-script
branch
from
August 18, 2026 08:00
a3d231b to
90b35fc
Compare
Collaborator
Author
Contributor
|
感觉可以同步修改一下 README.md 的 Getting Started 部分 |
kilinchange
force-pushed
the
chore/add-prepare-assets-script
branch
from
August 19, 2026 03:26
90b35fc to
67fbe67
Compare
Collaborator
Author
已修改 |
kilinchange
requested review from
Chamberlain0w0,
JYMiracle305 and
chen2021673
August 19, 2026 03:31
Chamberlain0w0
approved these changes
Aug 19, 2026
JYMiracle305
approved these changes
Aug 19, 2026
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.


背景
InfiniTrain 的 MNIST、GPT-2 和 LLaMA 3 示例依赖不同来源、不同格式的数据集与模型权重。此前缺少统一的数据生成入口,用户需要手动运行 python 脚本下载并转换相关文件。
主要改动
mnistgpt2llama3allDATA_DIR自定义输出目录。FORCE=1强制重新生成。MNIST
GPT-2
LLaMA 3.2 1B
meta-llama/Llama-3.2-1B。SKIP_LLAMA3_WEIGHTS=1,仅准备 tokenizer 数据。HF_TOKEN或 Hugging Face 本地登录凭据。目录整理
数据生成脚本统一放置在:
同时在 .gitignore 中补充 Python 字节码缓存忽略规则。
使用方式
自定义输出目录:
资源说明
LLaMA 3.2 1B 完整准备过程大约需要: