Run this model with HF Jobs

Run Qwen/Qwen3.6-27B 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 and TRL to fine-tune https://huggingface.co/Qwen/Qwen3.6-27B. 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/Qwen/Qwen3.6-27B 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/Qwen/Qwen3.6-27B. 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.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Qwen/Qwen3.6-27B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Update chat_template.jinja

#20
by dluthyc - opened

Title: Fix partial assistant prefills when continue_final_message=True

Summary:
The current chat_template.jinja always appends <|im_end|> after assistant turns.
When callers disable add_generation_prompt and use a final assistant message as a prefill, this closes the assistant message before generation starts, so the model tends to emit an empty continuation or start a new turn incorrectly.

This patch makes the final assistant turn honor Hugging Face's continue_final_message contract by skipping the closing <|im_end|> only when:

  • the current message is the last message
  • continue_final_message is defined
  • continue_final_message is true

All other rendering paths are unchanged.

Minimal repro:

messages = [
    {"role": "user", "content": "Reply in JSON."},
    {"role": "assistant", "content": '{"name": "'},
]

tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=False,
    continue_final_message=True,
)

Before:

<|im_start|>user
Reply in JSON.<|im_end|>
<|im_start|>assistant
{"name": "<|im_end|>

After:

<|im_start|>user
Reply in JSON.<|im_end|>
<|im_start|>assistant
{"name": "
Cannot merge
This branch has merge conflicts in the following files:
  • chat_template.jinja

Sign up or log in to comment