CarperAI / trlx

A repo for distributed training of language models with Reinforcement Learning via Human Feedback (RLHF)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type hint doesn't match documentation for prompts arg of PromptPipeline.__init__

g-simmons opened this issue · comments

@register_datapipeline
class PromptPipeline(BasePipeline):
"""
Dataloader which is used to supply prompts for either training or evaluation
Args:
prompts (`List[str]` or `List[Dict[str, Any]]`): list of raw text prompts or a dictionary with a required
key `"prompt"` and extra information, that would be passed along the generation for that prompt as a
keyword argument to a reward function.

prompts: Union[Dict[str, Any], List[str]],

would be an easy PR if you wanna fix it ;)