Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bigcode-project/starcoder
/ functions
Functions
31 in github.com/bigcode-project/starcoder
⨍
Functions
31
◇
Types & classes
8
↓ 2 callers
Method
copy
(self)
chat/dialogues.py:83
↓ 2 callers
Function
get_dialogue_template
(template: str)
chat/dialogues.py:199
↓ 2 callers
Method
get_inference_prompt
(self)
chat/dialogues.py:56
↓ 2 callers
Function
prepare_sample_text
Prepare the text from a sample of the dataset.
finetune/finetune.py:124
↓ 1 callers
Function
chars_token_ratio
Estimate the average number of characters per token in the dataset.
finetune/finetune.py:93
↓ 1 callers
Function
create_datasets
(tokenizer, args)
finetune/finetune.py:194
↓ 1 callers
Method
from_dict
(cls, data)
chat/dialogues.py:97
↓ 1 callers
Function
get_args
()
finetune/finetune.py:51
↓ 1 callers
Function
get_args
()
finetune/merge_peft_adapters.py:8
↓ 1 callers
Method
get_special_tokens
(self)
chat/dialogues.py:80
↓ 1 callers
Method
get_training_prompt
(self)
chat/dialogues.py:45
↓ 1 callers
Function
hf_login
Login to HuggingFace Hub if HF_TOKEN is defined in the environment
chat/utils.py:61
↓ 1 callers
Function
main
()
chat/train.py:44
↓ 1 callers
Function
main
()
chat/generate.py:25
↓ 1 callers
Function
main
(args)
finetune/finetune.py:300
↓ 1 callers
Function
main
()
finetune/merge_peft_adapters.py:16
↓ 1 callers
Function
mask_user_labels
Masks the user turns of a dialogue from the loss
chat/dialogues.py:232
↓ 1 callers
Method
parse_yaml_and_args
(self, yaml_arg: str, other_args: Optional[List[str]] = None)
chat/utils.py:26
↓ 1 callers
Function
print_trainable_parameters
Prints the number of trainable parameters in the model.
finetune/finetune.py:109
↓ 1 callers
Function
run_training
(args, train_data, val_data)
finetune/finetune.py:237
↓ 1 callers
Method
to_dict
(self)
chat/dialogues.py:93
Method
__init__
( self, tokenizer, dataset, infinite=False, seq_length=1024, n
finetune/finetune.py:142
Method
__iter__
(self)
finetune/finetune.py:163
Method
_from_pretrained
Loads the dialogue template from a local directory or the Huggingface Hub. Args: model_id (`str`): ID of the mode
chat/dialogues.py:114
Method
_save_pretrained
(self, save_directory: Union[str, Path])
chat/dialogues.py:107
Method
get_dialogue
Helper function to format the messages as an easy-to-read dialogue.
chat/dialogues.py:68
Function
group_texts
(examples)
chat/train.py:190
Method
on_save
( self, args: TrainingArguments, state: TrainerState, control: TrainerControl,
finetune/finetune.py:19
Method
on_train_end
( self, args: TrainingArguments, state: TrainerState, control: TrainerControl,
finetune/finetune.py:36
Function
prepare_dialogue
Format example to single- or multi-turn dialogue.
chat/dialogues.py:205
Function
tokenize_function
(examples)
chat/train.py:148