MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / generate

Method generate

tests/explorer/scheduler_test.py:322–330  ·  view source on GitHub ↗
(self, prompt: str, lora_request=None, **kwargs)

Source from the content-addressed store, hash-verified

320 ]
321
322 async def generate(self, prompt: str, lora_request=None, **kwargs) -> Sequence[Experience]:
323 prompt_length = len(prompt)
324 return [
325 Experience(
326 tokens=torch.zeros(prompt_length + 5),
327 prompt_length=prompt_length,
328 logprobs=torch.zeros(5),
329 )
330 ]
331
332
333@ray.remote

Callers

nothing calls this directly

Calls 1

ExperienceClass · 0.90

Tested by

no test coverage detected