计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
model-loading【效率与协作】Load HFL Chinese BERT-wwm family models with Transformers or PaddleHub while avoiding RoBERTa-class and offline-cache mistakes.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about loading or validating HFL Chinese BERT-wwm family model identifiers, choosing the correct MODEL_NAME or PaddleHub MODULE_NAME, checking whether a model is available in an offline Hugging Face cache, or fixing errors caused by using RoBERTa classes for RoBERTa-wwm-named checkpoints.
hfl/chinese-bert-wwm, hfl/chinese-bert-wwm-ext, hfl/chinese-roberta-wwm-ext, hfl/chinese-roberta-wwm-ext-large, hfl/rbt3, hfl/rbt4, hfl/rbt6, or hfl/rbtl3 loading.BertTokenizer/BertModel and AutoTokenizer/AutoModel for these identifiers.RobertaTokenizer or RobertaModel is wrong for these models despite names containing RoBERTa.../task-selection-and-finetuning/SKILL.md.../data-and-benchmarks/SKILL.md.../../references/troubleshooting.md.references/loading-workflows.md.BertTokenizer plus BertModel, or AutoTokenizer plus AutoModel. Do not use RobertaTokenizer or RobertaModel for this repository's Chinese RoBERTa-wwm family.from_pretrained:
local_files_only=True or the bundled checker's default offline mode;scripts/check_transformers_model.py instead of writing ad hoc loading code.Run the checker from this sub-skill directory or provide its path explicitly:
python scripts/check_transformers_model.py --help
python scripts/check_transformers_model.py hfl/rbt3 --try-load-tokenizer --offline-only
python scripts/check_transformers_model.py --model-id hfl/chinese-roberta-wwm-ext --try-load-config --allow-download
The helper validates the bundled model-id map and imports the expected Transformers classes. It does not download by default. It exits nonzero for unknown ids, missing imports/backends, or any requested config/tokenizer/model load that fails.
references/loading-workflows.md: model-id and PaddleHub mappings, offline/online/cache workflows, and checkpoint-format notes.references/api-reference.md: verified public APIs and signatures for the minimum Transformers workflow.references/troubleshooting.md: workflow-specific failure diagnosis and fixes.