Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HIT-SCIR-SC/QiaoBan
/ functions
Functions
7 in github.com/HIT-SCIR-SC/QiaoBan
⨍
Functions
7
◇
Types & classes
0
↓ 1 callers
Function
get_logger
(logger_name,output_dir)
finetune.py:28
↓ 1 callers
Function
load_tokenizer_and_model
(base_model, load_8bit=False)
interact.py:8
↓ 1 callers
Function
return_random_prompt
()
collect.py:30
↓ 1 callers
Function
sample_decode
( input_ids: torch.Tensor, model: torch.nn.Module, tokenizer: transformers.PreTrainedTokenizer,
interact.py:45
↓ 1 callers
Function
tokenize
(prompt)
finetune.py:101
Function
generate_and_tokenize_prompt
(data_point)
finetune.py:113
Function
train
( train_on_inputs: bool = False, # if False, masks out inputs in loss group_by_length: bool = True,
finetune.py:51