计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
chatglm2-6b【效率与协作】Guides ChatGLM2-6B Transformers inference, local demos, FastAPI/OpenAI-compatible serving, C-Eval evaluation, and P-Tuning v2 fine-tuning.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo-specific operating skill when a task names ChatGLM2-6B, the
THUDM/chatglm2-6b model, its legacy CLI/Gradio/Streamlit demos, its FastAPI
or OpenAI-compatible API samples, C-Eval evaluation, or the ptuning/
training/checkpoint workflow. This skill distills the public repository into
self-contained routes; model weights and benchmark datasets are external and
are never bundled.
references/model-and-environment.md.python scripts/check_installation.py --backend auto.references/troubleshooting.md for
cross-cutting model-cache, backend, version, license, and safety issues.sub-skills/chat-and-demos/SKILL.md./ or OpenAI-compatible /v1/chat/completions, curl clients,
SSE, or service deployment: read
sub-skills/api-serving/SKILL.md.sub-skills/evaluation/SKILL.md.torchrun, prefix checkpoints, prediction,
or optional DeepSpeed: read
sub-skills/ptuning/SKILL.md.When a task spans routes, start with the route that owns the artifact and
follow its explicit cross-link. For example, validate chat data in ptuning,
then use chat-and-demos to inspect a prefix checkpoint, and finally use
api-serving to expose the loaded model.
This repository is script-oriented rather than a Python distribution; it has
no pyproject.toml/setup.py package to install. From a checkout, install the
runtime file with a Python version supported by the selected dependency wheels:
python -m pip install -r references/runtime-requirements.txt
The bundled requirements file includes the base runtime plus service, evaluation, and P-Tuning extras used by this skill. If you want a smaller environment, install only the lines required by the selected route. The source demos use legacy Gradio APIs; verify the version before launch and read the environment reference rather than accepting an unbounded latest version. For full-parameter fine-tuning, DeepSpeed is optional and must match the installed PyTorch/CUDA stack.
The bundled scripts/check_installation.py checks dependency metadata, a
requested backend, and an optional local model path without downloading or
loading weights. It is a preflight, not proof that a multi-billion-parameter
model fits. Read references/repo-provenance.md
before refreshing the skill against a changed checkout; the provenance file
records the source commit, dirty state, model-loading contract, and evidence
paths.
references/license-and-safety.md.