Check Hf Config Save

Implement a missing XTuner Hugging Face config export from the official HF model when possible, then validate it against the installed Transformers round-trip and versioned inference-engine field contracts. Use when adding a model, when hf_config is missing or returns None, when changing from_hf/hf_config/save_hf, when reviewing config.json differences, or when debugging vLLM/SGLang checkpoint-load or inference failures. Also use for requests named check_hf_config_save.

InternLM Updated
Picture from the README

File contents

internlm/xtuner commit 7fbf11d20b

Frequently asked questions

npx get-skill add internlm/check-hf-config-save