MCPcopy Create free account

hub / github.com/FreedomIntelligence/GrammarGPT / functions

Functions23 in github.com/FreedomIntelligence/GrammarGPT

↓ 3 callersMethodgenerate_prompt
( self, instruction: str, input: Union[None, str] = None, label: Union[None, s
utils/prompter.py:28
↓ 2 callersMethodget_response
(self, output: str)
utils/prompter.py:50
↓ 2 callersFunctionread_file
(file, test=True)
pseudo_data/check_no_overlap.py:6
↓ 2 callersFunctiontokenize
(prompt, add_eos_token=True)
finetune.py:141
↓ 1 callersFunctioncheck
(construct_file,dev_file,test_file,overlap_file)
pseudo_data/check_no_overlap.py:28
↓ 1 callersFunctionevaluate
( instruction, input=None, # temperature=0.1, temperature=0.7, top_p=0
generate.py:93
↓ 1 callersFunctiongenerate_with_streaming
(**kwargs)
generate.py:138
↓ 1 callersFunctionload_json
(file)
pseudo_data/check_no_overlap.py:14
↓ 1 callersFunctionmain
( use_lora= False, test_file='nacgec.test.input', des_file ='../submission.txt', load_8bit: bo
generate.py:26
↓ 1 callersFunctionoverlap_detect
(cons_sent, sent_list)
pseudo_data/check_no_overlap.py:19
Method__call__
(self, input_ids, scores)
utils/callbacks.py:19
Method__enter__
(self)
utils/callbacks.py:71
Method__exit__
(self, exc_type, exc_val, exc_tb)
utils/callbacks.py:74
Method__init__
(self, callback_func=None)
utils/callbacks.py:16
Method__init__
(self, func, kwargs={}, callback=None)
utils/callbacks.py:32
Method__init__
(self, template_name: str = "", verbose: bool = False)
utils/prompter.py:13
Method__iter__
(self)
utils/callbacks.py:61
Method__next__
(self)
utils/callbacks.py:64
Method_callback
(val)
utils/callbacks.py:40
Functiongenerate_and_tokenize_prompt
(data_point)
finetune.py:163
Functiongenerate_with_callback
(callback=None, **kwargs)
generate.py:128
Methodgentask
()
utils/callbacks.py:45
Functiontrain
( use_lora: bool = False, # model/data params base_model: str = "FreedomIntelligence/phoenix-inst-
finetune.py:28