AskBeforeAnswer

The AskBeforeAnswer model is a clarification-seeking language model based on Qwen2.5-7B-Instruct.

Instead of immediately answering an ambiguous question, the model is trained to determine whether clarification is required and, when necessary, identify the missing information and ask a targeted clarification question.

Production Model

This repository contains the exact W&B artifact approved by the project's model promotion procedure.

  • Training method: Supervised Fine-Tuning (SFT)
  • Model variant: sft
  • W&B Registry alias at promotion: production
  • W&B artifact: wandb-registry-Model/AskBeforeAnswer-Models:v0
  • W&B artifact digest: 8dd12fd8a79a7f5be7eac5d94def44c1
  • Release: v0.1.5
  • Base model: Qwen/Qwen2.5-7B-Instruct
  • Dataset: chrisjcc/ask-before-answer-dataset

The model was obtained directly from the immutable W&B artifact recorded in the promotion record.

The DVC-managed training output is not modified during deployment.

Behavior

The model produces structured responses containing:

  1. Action: whether to Clarify or Answer
  2. Reasoning: why clarification is or is not required
  3. Facets: missing information required to disambiguate the question
  4. Response: either a clarification question or a direct answer

Expected format:

Action: Clarify|Answer
Reasoning: <reasoning>
Facets: <list of missing facets>
Response: <clarifying question or direct answer>

Training

The production winner was selected through the project's experiment selection, verification, and promotion procedure.

The training pipeline supports:

  • Supervised Fine-Tuning (SFT)
  • Direct Preference Optimization (DPO)
  • Group Relative Policy Optimization (GRPO)
  • Odds Ratio Preference Optimization (ORPO)

This repository corresponds specifically to the model variant recorded in the promotion record.

Evaluation

Evaluation results are maintained in the project evaluation artifacts.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_model_name = "Qwen/Qwen2.5-7B-Instruct"
adapter_model_name = "chrisjcc/ask-before-answer"

tokenizer = AutoTokenizer.from_pretrained(
    base_model_name,
)

model = AutoModelForCausalLM.from_pretrained(
    base_model_name,
)

model = PeftModel.from_pretrained(
    model,
    adapter_model_name,
)

Dataset

The training datasets are available from:

chrisjcc/ask-before-answer-dataset

The repository contains separate sft and dpo configurations.

Intended Use

This model is intended for research into clarification-seeking behavior in language models, particularly for systems that should distinguish between answerable and underspecified user questions.

Limitations

The model may incorrectly classify questions as ambiguous or unambiguous.

Its generated reasoning and answers should not be treated as authoritative.

The model was trained on English-language data and may not generalize reliably to other languages or domains.

Reproducibility

The model published here was selected through the project's experiment selection, verification, and promotion procedure.

The promotion record identifies the exact W&B artifact version and digest used for deployment.

The local DVC training artifact is treated as immutable during deployment.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for chrisjcc/ask-before-answer

Base model

Qwen/Qwen2.5-7B
Finetuned
(3010)
this model

Dataset used to train chrisjcc/ask-before-answer

Space using chrisjcc/ask-before-answer 1