MCPcopy Create free account

hub / github.com/JIA-Lab-research/Logits-Based-Finetuning / functions

Functions1,570 in github.com/JIA-Lab-research/Logits-Based-Finetuning

↓ 4 callersFunctionrun_exp
(args: Optional[Dict[str, Any]] = None, callbacks: List["TrainerCallback"] = [])
llamafactory/train/tuner.py:43
↓ 4 callersFunctionstrip_string
(string, skip_unit=False)
evaluation/parser.py:212
↓ 4 callersMethodsubeq
(self)
evaluation/latex2sympy/gen/PSParser.py:6376
↓ 4 callersFunctionsymbolic_equal
(a, b)
evaluation/grader.py:276
↓ 4 callersMethodto_dict
(self)
llamafactory/hparams/generating_args.py:68
↓ 4 callersMethodtransform_swap
(self)
evaluation/latex2sympy/gen/PSParser.py:1105
↓ 3 callersMethod__call__
(self, features: Sequence[Dict[str, Any]])
llamafactory/data/collator.py:208
↓ 3 callersFunction_check_extra_dependencies
( model_args: "ModelArguments", finetuning_args: "FinetuningArguments", training_args: Optional["S
llamafactory/hparams/parser.py:111
↓ 3 callersMethod_close_thread_pool
(self)
llamafactory/train/callbacks.py:234
↓ 3 callersFunction_create_stream_chat_completion_chunk
( completion_id: str, model: str, delta: "ChatCompletionMessage", index: Optional[int] = 0,
llamafactory/api/chat.py:130
↓ 3 callersFunction_get_decay_parameter_names
r""" Returns a list of names of parameters with weight decay. (weights in non-layernorm layers)
llamafactory/train/trainer_utils.py:179
↓ 3 callersFunction_get_init_kwargs
r""" Gets arguments to load config/tokenizer/model. Note: including inplace operation of model_args.
llamafactory/model/loader.py:46
↓ 3 callersMethod_initialize
(self, data: Dict["Component", Any], do_train: bool, from_preview: bool)
llamafactory/webui/runner.py:57
↓ 3 callersFunction_jinja_escape
(content: str)
llamafactory/data/template.py:286
↓ 3 callersFunction_parse_args
(parser: "HfArgumentParser", args: Optional[Dict[str, Any]] = None)
llamafactory/hparams/parser.py:56
↓ 3 callersFunction_set_transformers_logging
(log_level: Optional[int] = logging.INFO)
llamafactory/hparams/parser.py:76
↓ 3 callersMethod_update_component
r""" Gets the dict to update the components.
llamafactory/webui/engine.py:39
↓ 3 callersFunction_verify_model_args
( model_args: "ModelArguments", data_args: "DataArguments", finetuning_args: "FinetuningArguments"
llamafactory/hparams/parser.py:82
↓ 3 callersFunctionadd_flat
(lh, rh)
evaluation/latex2sympy/latex2sympy2.py:298
↓ 3 callersMethodatom_expr
(self)
evaluation/latex2sympy/gen/PSParser.py:4304
↓ 3 callersFunctionclean_expr_str
(expr_str)
evaluation/math_utils.py:74
↓ 3 callersMethodclose
(self)
llamafactory/extras/logging.py:64
↓ 3 callersFunctionconvert_elementary_transform
(matrix, transform)
evaluation/latex2sympy/latex2sympy2.py:205
↓ 3 callersMethodcopyfrom
(cls, source: "Self", **kwargs)
llamafactory/hparams/model_args.py:316
↓ 3 callersFunctioncreate_ref_model
r""" Creates reference model for PPO/DPO training. Evaluation mode is not supported. The valuehead parameter is randomly initialized since it
llamafactory/train/trainer_utils.py:99
↓ 3 callersMethodelementary_transforms
(self)
evaluation/latex2sympy/gen/PSParser.py:1255
↓ 3 callersMethodeval_at
(self)
evaluation/latex2sympy/gen/PSParser.py:2608
↓ 3 callersMethodexp_nofunc
(self, _p=0)
evaluation/latex2sympy/gen/PSParser.py:2921
↓ 3 callersFunctionextract_program
(text:str=None, trajectory:list=None, last_only=False)
evaluation/trajectory.py:69
↓ 3 callersFunctionfix_valuehead_checkpoint
r""" The model is already unwrapped. There are three cases: 1. full tuning without ds_zero3: state_dict = {"model.layers.*": ..., "v_head
llamafactory/train/callbacks.py:54
↓ 3 callersMethodfunc
(self)
evaluation/latex2sympy/gen/PSParser.py:5348
↓ 3 callersMethodfunc_common_args
(self)
evaluation/latex2sympy/gen/PSParser.py:5889
↓ 3 callersMethodfunc_multi_arg
(self)
evaluation/latex2sympy/gen/PSParser.py:6133
↓ 3 callersMethodfunc_single_arg
(self)
evaluation/latex2sympy/gen/PSParser.py:6055
↓ 3 callersMethodget_base_elems
r""" Gets the base elements that are commonly used.
llamafactory/webui/manager.py:63
↓ 3 callersFunctionget_infer_args
(args: Optional[Dict[str, Any]] = None)
llamafactory/hparams/parser.py:367
↓ 3 callersFunctionget_logits_processor
r""" Gets logits processor that removes NaN and Inf logits.
llamafactory/extras/misc.py:150
↓ 3 callersFunctionget_simple_examples
Returns an array of tuples, containing the string `input`, sympy `output` using the provided sympy `func`, and `symbolically` boolean for cal
evaluation/latex2sympy/tests/context.py:25
↓ 3 callersFunctionget_train_args
(args: Optional[Dict[str, Any]] = None)
llamafactory/hparams/parser.py:161
↓ 3 callersFunctionhandle_ceil
Apply ceil() then return the ceil-ed expression. expr: Expr - sympy expression as an argument to ceil()
evaluation/latex2sympy/latex2sympy2.py:1089
↓ 3 callersFunctionhandle_floor
Apply floor() then return the floored expression. expr: Expr - sympy expression as an argument to floor()
evaluation/latex2sympy/latex2sympy2.py:1080
↓ 3 callersFunctionis_pillow_available
()
llamafactory/extras/packages.py:61
↓ 3 callersFunctionlatex2latex
(tex)
evaluation/latex2sympy/latex2sympy2.py:1126
↓ 3 callersFunctionload_config
r""" Loads model config.
llamafactory/model/loader.py:114
↓ 3 callersMethodmathit
(self)
evaluation/latex2sympy/gen/PSParser.py:4497
↓ 3 callersFunctionparse_digits
(num)
evaluation/grader.py:39
↓ 3 callersFunctionparse_ground_truth
(example: Dict[str, Any], data_name)
evaluation/parser.py:575
↓ 3 callersFunctionparse_latex_answer
(sample)
evaluation/math_utils.py:116
↓ 3 callersMethodpostfix_op
(self)
evaluation/latex2sympy/gen/PSParser.py:2548
↓ 3 callersMethodrelation_list
(self)
evaluation/latex2sympy/gen/PSParser.py:1687
↓ 3 callersMethodreset
(self)
llamafactory/extras/misc.py:62
↓ 3 callersMethodstep
(self, closure: Optional[Callable[[], float]] = None)
llamafactory/train/trainer_utils.py:69
↓ 3 callersMethodstream_chat
r""" Gets the response token-by-token of the chat model.
llamafactory/chat/chat_model.py:93
↓ 3 callersMethodunary
(self)
evaluation/latex2sympy/gen/PSParser.py:2284
↓ 3 callersMethodunary_nofunc
(self)
evaluation/latex2sympy/gen/PSParser.py:2368
↓ 2 callersMethodADD
(self)
evaluation/latex2sympy/gen/PSParser.py:2261
↓ 2 callersMethodE_NOTATION
(self)
evaluation/latex2sympy/gen/PSParser.py:4381
↓ 2 callersMethodL_PAREN
(self)
evaluation/latex2sympy/gen/PSParser.py:5226
↓ 2 callersMethodPERCENT_NUMBER
(self)
evaluation/latex2sympy/gen/PSParser.py:4378
↓ 2 callersMethodSYMBOL
(self)
evaluation/latex2sympy/gen/PSParser.py:4372
↓ 2 callersMethodVARIABLE
(self)
evaluation/latex2sympy/gen/PSParser.py:4390
↓ 2 callersFunction_add_or_replace_eos_token
(tokenizer: "PreTrainedTokenizer", eos_token: str)
llamafactory/data/template.py:273
↓ 2 callersMethod_convert_elements_to_ids
r""" Converts elements to token ids.
llamafactory/data/template.py:133
↓ 2 callersMethod_create_thread_pool
(self, output_dir: str)
llamafactory/train/callbacks.py:230
↓ 2 callersMethod_dump
(self)
llamafactory/train/rm/metric.py:33
↓ 2 callersMethod_dump
(self)
llamafactory/train/sft/metric.py:69
↓ 2 callersMethod_dump
(self)
llamafactory/train/sft/metric.py:101
↓ 2 callersMethod_encode
r""" Encodes formatted inputs to pairs of token ids. Turn 0: prefix + system + query resp Turn t: sep + query
llamafactory/data/template.py:92
↓ 2 callersFunction_encode_supervised_example
( prompt: Sequence[Dict[str, str]], response: Sequence[Dict[str, str]], system: Optional[str],
llamafactory/data/processors/supervised.py:34
↓ 2 callersMethod_form_config_dict
(self, data: Dict["Component", Any])
llamafactory/webui/runner.py:319
↓ 2 callersMethod_generate
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
llamafactory/chat/vllm_engine.py:99
↓ 2 callersFunction_get_library_name
()
llamafactory/extras/logging.py:83
↓ 2 callersFunction_get_merged_dataset
r""" Gets the merged datasets in the standard format.
llamafactory/data/loader.py:157
↓ 2 callersFunction_get_preprocessed_dataset
r""" Preprocesses the dataset, including format checking and tokenization.
llamafactory/data/loader.py:180
↓ 2 callersFunction_get_unsloth_kwargs
( config: "PretrainedConfig", model_name_or_path: str, model_args: "ModelArguments" )
llamafactory/model/model_utils/unsloth.py:30
↓ 2 callersMethod_get_video_sample_frames
r""" Computes video sample frames according to fps.
llamafactory/data/mm_plugin.py:88
↓ 2 callersMethod_launch
(self, data: Dict["Component", Any], do_train: bool)
llamafactory/webui/runner.py:297
↓ 2 callersFunction_load_data_file
(file_path: str)
llamafactory/webui/components/data.py:59
↓ 2 callersFunction_noisy_mean_initialization
(embed_weight: "torch.Tensor", num_new_tokens: int)
llamafactory/model/model_utils/embedding.py:32
↓ 2 callersFunction_parse
(s)
evaluation/grader.py:277
↓ 2 callersMethod_parse_eval_args
(self, data: Dict["Component", Any])
llamafactory/webui/runner.py:238
↓ 2 callersMethod_parse_example
r""" input: a dict with keys {"question", "A", "B", "C", "D", "answer"} output: a tuple of (prompt, response)
llamafactory/eval/template.py:28
↓ 2 callersMethod_parse_train_args
(self, data: Dict["Component", Any])
llamafactory/webui/runner.py:102
↓ 2 callersMethod_preprocess_image
r""" Pre-processes a single image.
llamafactory/data/mm_plugin.py:73
↓ 2 callersMethod_preview
(self, data: Dict["Component", Any], do_train: bool)
llamafactory/webui/runner.py:287
↓ 2 callersMethod_process_args
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
llamafactory/chat/hf_engine.py:73
↓ 2 callersFunction_process_request
( request: "ChatCompletionRequest", )
llamafactory/api/chat.py:70
↓ 2 callersFunction_register_eval_template
(name: str, system: str, choice: str, answer: str)
llamafactory/eval/template.py:58
↓ 2 callersMethod_regularize_images
r""" Regularizes images to avoid error. Including reading and pre-processing.
llamafactory/data/mm_plugin.py:99
↓ 2 callersMethod_reset
(self, max_steps: int = 0)
llamafactory/train/callbacks.py:210
↓ 2 callersMethod_timing
(self, cur_steps: int)
llamafactory/train/callbacks.py:217
↓ 2 callersMethodachat
r""" Asynchronously gets a list of responses of the chat model.
llamafactory/chat/chat_model.py:79
↓ 2 callersMethodaget_scores
r""" Asynchronously gets a list of scores of the reward model.
llamafactory/chat/chat_model.py:139
↓ 2 callersMethodapply
(self, code)
evaluation/python_executor.py:140
↓ 2 callersMethodastream_chat
r""" Asynchronously gets the response token-by-token of the chat model.
llamafactory/chat/chat_model.py:113
↓ 2 callersMethodbatch_apply
(self, batch_code)
evaluation/python_executor.py:150
↓ 2 callersFunctionchoice_answer_clean
(pred: str)
evaluation/grader.py:25
↓ 2 callersFunctionchoice_answer_clean
(pred: str)
evaluation/parser.py:367
↓ 2 callersFunctionclean_cmd
r""" Removes args with NoneType or False or empty string value.
llamafactory/webui/utils.py:100
↓ 2 callersMethodcomp
(self)
evaluation/latex2sympy/gen/PSParser.py:3036
← previousnext →101–200 of 1,570, ranked by callers