MCPcopy Create free account

hub / github.com/SCIR-HI/Huatuo-Llama-Med-Chinese / functions

Functions19 in github.com/SCIR-HI/Huatuo-Llama-Med-Chinese

↓ 5 callersMethodgenerate_prompt
( self, instruction: str, input: Union[None, str] = None, label: Union[None, s
utils/prompter.py:28
↓ 3 callersMethodget_response
(self, output: str)
utils/prompter.py:50
↓ 2 callersFunctionevaluate
( instruction, input=None, temperature=0.1, top_p=0.75, top_k=40,
infer.py:63
↓ 2 callersFunctionevaluate
( instruction, input=None, temperature=0.1, top_p=0.75, top_k=40,
infer_literature.py:64
↓ 2 callersFunctiontokenize
(prompt, add_eos_token=True)
finetune.py:128
↓ 1 callersFunctioninfer_from_json
(instruct_dir)
infer.py:95
↓ 1 callersFunctionload_instruction
(instruct_dir)
infer.py:15
↓ 1 callersFunctiontranslate_state_dict_key
(k)
export_state_dict_checkpoint.py:73
↓ 1 callersFunctionunpermute
(w)
export_state_dict_checkpoint.py:65
Method__init__
(self, template_name: str = "", verbose: bool = False)
utils/prompter.py:13
Functionevaluate
( instruction, input=None, temperature=0.1, top_p=0.75, top_k=40,
generate.py:84
Functiongenerate_and_tokenize_prompt
(data_point)
finetune.py:150
Functionload_instruction
(instruct_dir)
infer_literature.py:16
Functionmain
( load_8bit: bool = False, base_model: str = "", # the infer data, if not exists, infer the defaul
infer.py:26
Functionmain
( load_8bit: bool = False, base_model: str = "", # the infer data, if not exists, infer the defaul
infer_literature.py:27
Functionmain
( load_8bit: bool = False, base_model: str = "", lora_weights: str = "tloen/alpaca-lora-7b", p
generate.py:24
Methodon_save
( self, args: TrainingArguments, state: TrainerState, control:
finetune.py:230
Functionpermute
(w)
export_state_dict_checkpoint.py:57
Functiontrain
( # model/data params base_model: str = "", # the only required argument data_path: str = "yahma/
finetune.py:32