Add a response template

#39
by Rocketknight1 HF Staff - opened

Adds a response template, so Transformers' parse_response can parse this model's output. It complements #11, which adds the chat template.

DeepSeek org

Thanks for adding this! One limitation of the current response parsing framework is that DSML uses string="true/false" on each parameter to distinguish strings from JSON values. The xml-inline parser cannot currently use that attribute to select how each value is decoded, and schema-based casting cannot reliably recover the distinction—for example, "2" versus 2 when both types are allowed. Could you consider adding attribute-aware value parsing, or a dedicated DSML parser, to preserve these semantics as defined in encoding.py?

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment