Run this model with HF Jobs

Run webbrain-one/Ling-3.0-tiny-ONNX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/webbrain-one/Ling-3.0-tiny-ONNX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/webbrain-one/Ling-3.0-tiny-ONNX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/webbrain-one/Ling-3.0-tiny-ONNX. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

added response_template

#1
by nico-martin HF Staff - opened

This PR adds support for the response_template in tokenizer_config.json. A response template tells the tokenizer how to parse the model's raw output into a structured assistant message (reasoning_content, content, tool_calls), so tokenizer.parse_response() and chat pipelines return parsed messages instead of raw text. See https://huggingface.co/docs/transformers/en/chat_response_parsing

Template
Neither this repo nor the original model (inclusionAI/Ling-3.0-tiny) ships a response_template, so we built this one from the model's chat template and its real output:

  • Reasoning is wrapped in <think>…</think>.
  • Tool calls are <tool_call>name<arg_key>…</arg_key><arg_value>…</arg_value></tool_call>, and several calls can follow each other.
  • A turn ends with <|role_end|>.

The template only uses parsing features that upstream Python transformers supports.

How it was tested
We ran this checkpoint (q4f16) with Transformers.js, using its own chat template, on a single tool call, two parallel tool calls, a plain answer, a plain question with a tool available, and a run with thinking disabled. Every well-formed output parsed correctly, both in one shot and when streamed. Upstream Python transformers gives the same results on the same outputs.

The template describes the checkpoint's output format. It does not mean that every response contains every region, and it does not guarantee tool-use quality.

nico-martin changed pull request status to open
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment