interlens.participant.participants.qwen¶
interlens.participant.participants.qwen
¶
QwenModelParticipant
dataclass
¶
QwenModelParticipant(
name: str = "",
hf_id: str | None = None,
weights_path: str | None = None,
dtype: str = "bfloat16",
attn: str = "flash_attention_2",
quant: str | None = None,
revision: str | None = None,
device: str | device | None = None,
max_new_tokens: int = 512,
temperature: float = 0.8,
top_p: float = 0.95,
seed: int | None = None,
thinking: bool | str = "auto",
system_prompt: str | None = None,
private_context: tuple = (),
tools: tuple = (),
max_tool_iters: int = 4,
kv_reuse: bool | str = "auto",
steering: object = None,
_model: "PreTrainedModel | None" = None,
_tokenizer: "PreTrainedTokenizerBase | None" = None,
)
Bases: ModelParticipant
A participant in a conversation that is a Qwen language model. Its tool-call format is the Hermes/base
<tool_call> JSON already handled by ModelParticipant, so this class adds no behavior — it exists so
Qwen models resolve to a distinct, statically-typed participant class.