Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SCIR-HI/Huatuo-Llama-Med-Chinese
/ functions
Functions
19 in github.com/SCIR-HI/Huatuo-Llama-Med-Chinese
⨍
Functions
19
◇
Types & classes
2
↓ 5 callers
Method
generate_prompt
( self, instruction: str, input: Union[None, str] = None, label: Union[None, s
utils/prompter.py:28
↓ 3 callers
Method
get_response
(self, output: str)
utils/prompter.py:50
↓ 2 callers
Function
evaluate
( instruction, input=None, temperature=0.1, top_p=0.75, top_k=40,
infer.py:63
↓ 2 callers
Function
evaluate
( instruction, input=None, temperature=0.1, top_p=0.75, top_k=40,
infer_literature.py:64
↓ 2 callers
Function
tokenize
(prompt, add_eos_token=True)
finetune.py:128
↓ 1 callers
Function
infer_from_json
(instruct_dir)
infer.py:95
↓ 1 callers
Function
load_instruction
(instruct_dir)
infer.py:15
↓ 1 callers
Function
translate_state_dict_key
(k)
export_state_dict_checkpoint.py:73
↓ 1 callers
Function
unpermute
(w)
export_state_dict_checkpoint.py:65
Method
__init__
(self, template_name: str = "", verbose: bool = False)
utils/prompter.py:13
Function
evaluate
( instruction, input=None, temperature=0.1, top_p=0.75, top_k=40,
generate.py:84
Function
generate_and_tokenize_prompt
(data_point)
finetune.py:150
Function
load_instruction
(instruct_dir)
infer_literature.py:16
Function
main
( load_8bit: bool = False, base_model: str = "", # the infer data, if not exists, infer the defaul
infer.py:26
Function
main
( load_8bit: bool = False, base_model: str = "", # the infer data, if not exists, infer the defaul
infer_literature.py:27
Function
main
( load_8bit: bool = False, base_model: str = "", lora_weights: str = "tloen/alpaca-lora-7b", p
generate.py:24
Method
on_save
( self, args: TrainingArguments, state: TrainerState, control:
finetune.py:230
Function
permute
(w)
export_state_dict_checkpoint.py:57
Function
train
( # model/data params base_model: str = "", # the only required argument data_path: str = "yahma/
finetune.py:32