MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / reprocess

Method reprocess

rft/trainer/zmq.py:376–381  ·  view source on GitHub ↗

处理任务并生成处理后的数据块

(self)

Source from the content-addressed store, hash-verified

374 socket.setsockopt(zmq.TCP_KEEPALIVE_INTVL, 10)
375
376 def reprocess(self):
377 """处理任务并生成处理后的数据块"""
378 while True:
379 collected = [self.valid_tasks.get().data for _ in range(self.chunk_size)]
380 chunk_data = _process_inputs(collected, self.processor, self.max_prompt_length)
381 self.ready_queue.put(chunk_data)
382
383 def provider(self):
384 """为工作进程提供数据"""

Callers

nothing calls this directly

Calls 1

_process_inputsFunction · 0.85

Tested by

no test coverage detected