ekwek's picture
Upload 10 files
63d4ab6 verified
raw
history blame contribute delete
504 Bytes
class BaseModel:
def infer(self,
prompts,
top_p=0.95,
temperature=0.3,
repetition_penalty=1.2):
'''
Takes a list of prompts and returns the output hidden states
'''
pass
def stream_infer(self,
prompt,
top_p=0.95,
temperature=0.3,
repetition_penalty=1.2):
'''
Takes a prompt and returns an iterator of the output hidden states
'''
pass