model-zoo
Guide selection, import, and compatibility of Fengshen model/config/tokenizer families and top-level exports.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- model-zoo
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guide selection, import, and compatibility of Fengshen model/config/tokenizer families and top-level exports.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/api-reference.md10.0 KB
- 参考文档references/auto-and-tokenizers.md9.0 KB
- 参考文档references/compatibility.md7.4 KB
- 参考文档references/model-overview.md9.5 KB
- 参考文档references/troubleshooting.md10.4 KB
- 脚本scripts/check_model_imports.py11.0 KB
03 SKILL.md 正文
Fengshenbang-LM Model Zoo
Use this sub-skill when a task is about choosing, importing, or troubleshooting Fengshen model, config, tokenizer, and generation-helper families. Keep this file as a router; use the bundled references for tables and details.
Load order
- Read references/model-overview.md to choose the model family and decide whether the package surface, a pipeline surface, or an example/conversion recipe is the right owner.
- Read references/api-reference.md for top-level exports, direct import paths, generation-helper routes, and the
fengshen_model_typepipeline mapping. - Read references/auto-and-tokenizers.md before using Fengshen auto factories, custom config keys,
AutoTokenizer, or tokenizer-specific files. - Read references/compatibility.md before installing or repairing dependencies, especially Transformers compatibility.
- Read references/troubleshooting.md when imports, tokenizers, offline caches, CUDA size limits, or optional DeepSpeed/Megatron paths fail.
Choose this sub-skill for
- Top-level imports from
fengshen, especiallyLongformerConfig,LongformerModel,RoFormerConfig,RoFormerModel,T5Config,T5EncoderModel,UbertPipelines, andUbertModel. - Custom model families: Longformer, RoFormer, Megatron-T5, ZEN1/ZEN2, DeBERTa-v2, DeltaLM, LLaMA/Ziya, Taiyi CLIP, Transformer-XL denoise/paraphrase/reasoning, BART, ALBERT, UniMC/UniEX/TCBert/Ubert, and VAE variants.
- Fengshen auto factories (
fengshen.models.auto), custom model/tokenizer keys (fengshen_model_type,fengshen_tokenizer_type), and deciding whether direct imports are safer than auto factories. - Safe installed-package import checks that do not download models or mutate checkpoints: run
python scripts/check_model_imports.py --helpfrom this sub-skill directory. - Diagnosing errors such as missing
cached_path, missingsoftmax_backward_data, absent SentencePiece/tokenizer files, unsupported custom config keys, model downloads in offline mode, model size on CPU, or optional DeepSpeed imports.
Route elsewhere
- Training loops, dataloaders, metrics, optimizer/scheduler arguments, checkpoints, and distributed/Megatron training go to
../data-training/SKILL.md. - Example recipes, model-family command conversion, Ziya conversion, Taiyi diffusion recipes, and checkpoint mutation/conversion planning go to
../examples-conversion/SKILL.md. fengshen-pipelineCLI invocation, public pipeline data schemas, and CLI parser behavior go to../pipelines-cli/SKILL.md.
Safety rules
- Do not instantiate
from_pretrainedon remote model IDs unless the task explicitly authorizes downloads and cache use. - Prefer import-only, config-only, or
local_files_only=Truechecks for diagnosis. - Treat CUDA, DeepSpeed, Megatron fused kernels, Taiyi diffusion, Ziya large-model inference, and full checkpoint conversion as optional/heavy paths unless a separate verification plan requires them.
- Do not depend on the original repository checkout. Use only this skill tree, the installed
fengshenpackage, user-provided model directories, and user-authorized caches.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).