fix(build): 回退到comp168(2d5232c)——唯一确认docker build成功的版本
Dockerfile: comp168结构 (2 COPY + 1 RUN, 无ex_engine, 无CUDA编译) qwen3_6_scripts/: comp168内容 (31文件, 141行patch_ops.sh) computility-run.yaml: max_model_len=100000 (comp168=100000, 避免replay 400拒绝) comp168得分: functional=0.923, replay=60194, total=60194 改动: 只有yaml的max_model_len从comp168的100000保持不变
This commit is contained in:
@@ -104,33 +104,21 @@ class Qwen3CoderToolParser(ToolParser):
|
||||
return f"call_{uuid.uuid4().hex[:24]}"
|
||||
|
||||
def _reset_streaming_state(self) -> None:
|
||||
"""CCCL agent_radix_sort_downsweep union TempStorage pattern:
|
||||
Streaming parse state is organized in phases like CUDA shared memory
|
||||
that gets reused across load/rank/scatter phases. Each tool call
|
||||
transitions through phases: DETECT → HEADER → PARAMS → CLOSE.
|
||||
Reset all phase state at once (like clearing the union on new tile)."""
|
||||
# Phase: DETECT (looking for <tool_call>)
|
||||
self.current_tool_index = 0
|
||||
self.is_tool_call_started = False
|
||||
self.accumulated_text: str = ""
|
||||
self.streaming_request: Optional[ChatCompletionRequest] = None
|
||||
|
||||
# Phase: HEADER (parsing <function=name>)
|
||||
self.header_sent = False
|
||||
self.current_tool_id = None
|
||||
self.current_function_name: Optional[str] = None
|
||||
|
||||
# Phase: PARAMS (parsing <parameter=key>value</parameter>)
|
||||
self.current_param_name: Optional[str] = None
|
||||
self.current_param_value: str = ""
|
||||
self.param_count = 0
|
||||
self.in_param = False
|
||||
self.in_function = False
|
||||
self.accumulated_params: Dict[str, Any] = {}
|
||||
|
||||
# Phase: CLOSE (emitting JSON and transitioning to next tool)
|
||||
self.accumulated_text: str = ""
|
||||
self.json_started = False
|
||||
self.json_closed = False
|
||||
self.accumulated_params: Dict[str, Any] = {}
|
||||
self.streaming_request: Optional[ChatCompletionRequest] = None
|
||||
|
||||
def _get_arguments_config(
|
||||
self, func_name: str,
|
||||
|
||||
Reference in New Issue
Block a user