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

↓ 2 callersMethodcomp_nofunc
(self)
evaluation/latex2sympy/gen/PSParser.py:3165
↓ 2 callersMethodconcatenated_forward
( self, model: "PreTrainedModel", batch: Dict[str, "torch.Tensor"] )
llamafactory/train/kto/trainer.py:149
↓ 2 callersMethodconcatenated_forward
r""" Computes the sum log probabilities of the labels under given logits if loss_type is not IPO, ORPO or SimPO. Otherwise the averag
llamafactory/train/dpo/trainer.py:171
↓ 2 callersFunctioncontains_number
(s)
evaluation/math_utils.py:241
↓ 2 callersFunctionconvert_add
(add)
evaluation/latex2sympy/latex2sympy2.py:369
↓ 2 callersFunctionconvert_comp
(comp)
evaluation/latex2sympy/latex2sympy2.py:564
↓ 2 callersFunctionconvert_frac
(frac)
evaluation/latex2sympy/latex2sympy2.py:742
↓ 2 callersFunctionconvert_func_arg
(arg)
evaluation/latex2sympy/latex2sympy2.py:973
↓ 2 callersFunctionconvert_matrix
(matrix)
evaluation/latex2sympy/latex2sympy2.py:267
↓ 2 callersFunctionconvert_relation
(rel)
evaluation/latex2sympy/latex2sympy2.py:144
↓ 2 callersFunctionconvert_unary
(unary)
evaluation/latex2sympy/latex2sympy2.py:433
↓ 2 callersFunctioncount_parameters
r""" Returns the number of trainable parameters and number of all parameters in the model.
llamafactory/extras/misc.py:89
↓ 2 callersFunctioncreate_app
(chat_model: "ChatModel")
llamafactory/api/app.py:70
↓ 2 callersFunctioncreate_chat_box
( engine: "Engine", visible: bool = False )
llamafactory/webui/components/chatbot.py:32
↓ 2 callersFunctioncreate_preview_box
(dataset_dir: "gr.Textbox", dataset: "gr.Dropdown")
llamafactory/webui/components/data.py:84
↓ 2 callersFunctioncreate_ui
(demo_mode: bool = False)
llamafactory/webui/interface.py:35
↓ 2 callersFunctiondictify
(data: "BaseModel")
llamafactory/api/common.py:23
↓ 2 callersFunctiondo_subs
(expr, at)
evaluation/latex2sympy/latex2sympy2.py:488
↓ 2 callersFunctionevaluate
(data_name, prompt_type, samples: list=None, file_path: str=None, max_num_samples=None, execute=False)
evaluation/evaluate.py:14
↓ 2 callersFunctionexport_model
(args: Optional[Dict[str, Any]] = None)
llamafactory/train/tuner.py:63
↓ 2 callersMethodextract_tool
r""" Extracts tool message.
llamafactory/data/template.py:86
↓ 2 callersFunctionfind_all_linear_modules
r""" Finds all available modules to apply lora or galore.
llamafactory/model/model_utils/misc.py:27
↓ 2 callersMethodforward
r""" Runs forward pass and computes the log probabilities.
llamafactory/train/kto/trainer.py:124
↓ 2 callersMethodfunc_multi_arg_noparens
(self)
evaluation/latex2sympy/gen/PSParser.py:6185
↓ 2 callersMethodfunc_single_arg_noparens
(self)
evaluation/latex2sympy/gen/PSParser.py:6091
↓ 2 callersFunctiongenerate_completions
(model, tokenizer, prompts, batch_size=1, stop_id_sequences=None, add_special_tokens=True, disable_tqdm=False,
evaluation/model_utils.py:78
↓ 2 callersFunctionget_batch_logps
r""" Computes the log probabilities of the given labels under the given logits. Returns: logps: A tensor of shape (batch_size,) conta
llamafactory/train/trainer_utils.py:441
↓ 2 callersFunctionget_config_path
r""" Gets the path to user config.
llamafactory/webui/common.py:66
↓ 2 callersFunctionget_differential_var
(d)
evaluation/latex2sympy/latex2sympy2.py:1098
↓ 2 callersFunctionget_differential_var_str
(text)
evaluation/latex2sympy/latex2sympy2.py:1103
↓ 2 callersFunctionget_forbidden_modules
r""" Freezes vision tower and language model for VLM full/freeze tuning.
llamafactory/model/model_utils/visual.py:125
↓ 2 callersMethodget_mm_inputs
r""" Builds batched multimodal inputs for VLMs.
llamafactory/data/mm_plugin.py:218
↓ 2 callersMethodget_scores
r""" Gets a list of scores of the reward model.
llamafactory/chat/chat_model.py:128
↓ 2 callersFunctionget_tool_utils
(name: str)
llamafactory/data/tool_utils.py:177
↓ 2 callersFunctionhandle_gcd_lcm
Return the result of gcd() or lcm(), as UnevaluatedExpr f: str - name of function ("gcd" or "lcm") args: List[Expr] - list of function a
evaluation/latex2sympy/latex2sympy2.py:1066
↓ 2 callersFunctionhandle_sum_or_prod
(func, name)
evaluation/latex2sympy/latex2sympy2.py:1020
↓ 2 callersFunctionis_digit
(num)
evaluation/grader.py:55
↓ 2 callersFunctionis_equ_num_equal
(equation, number)
evaluation/math_utils.py:134
↓ 2 callersFunctionis_expr_equal
(ans_p, ans_l, is_strict=False)
evaluation/math_utils.py:133
↓ 2 callersFunctionis_fastapi_available
()
llamafactory/extras/packages.py:45
↓ 2 callersFunctionis_matplotlib_available
()
llamafactory/extras/packages.py:57
↓ 2 callersFunctionis_multi_choice
(answer)
evaluation/math_eval.py:157
↓ 2 callersFunctionis_requests_available
()
llamafactory/extras/packages.py:65
↓ 2 callersFunctionis_transformers_version_greater_than_4_43
()
llamafactory/extras/packages.py:78
↓ 2 callersFunctionlatex
(tex)
evaluation/latex2sympy/latex2sympy2.py:1115
↓ 2 callersMethodlimit_sub
(self)
evaluation/latex2sympy/gen/PSParser.py:5985
↓ 2 callersFunctionload_args
r""" Loads saved arguments.
llamafactory/webui/utils.py:191
↓ 2 callersFunctionload_hf_lm_and_tokenizer
( model_name_or_path, tokenizer_name_or_path=None, device_map="auto", load_
evaluation/model_utils.py:140
↓ 2 callersFunctionload_prompt
(data_name, prompt_type, num_shots)
evaluation/utils.py:55
↓ 2 callersFunctionload_valuehead_params
r""" Loads value head parameters from Hugging Face Hub or local disk. Returns: dict with keys `v_head.summary.weight` and `v_head.summary.bia
llamafactory/model/model_utils/valuehead.py:33
↓ 2 callersFunctionmat_add_flat
(lh, rh)
evaluation/latex2sympy/latex2sympy2.py:314
↓ 2 callersFunctionmath_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
evaluation/grader.py:73
↓ 2 callersMethodmathit_text
(self)
evaluation/latex2sympy/gen/PSParser.py:4554
↓ 2 callersFunctionnumeric_equal
(prediction: float, reference: float)
evaluation/grader.py:266
↓ 2 callersMethodpostfix_nofunc
(self)
evaluation/latex2sympy/gen/PSParser.py:2495
↓ 2 callersFunctionreplace_model
r""" Replaces the default/reward modules in the model. The model is already unwrapped.
llamafactory/train/ppo/ppo_utils.py:45
↓ 2 callersFunctionrule2text
(ctx)
evaluation/latex2sympy/latex2sympy2.py:732
↓ 2 callersFunctionsave_args
r""" Saves arguments.
llamafactory/webui/utils.py:202
↓ 2 callersFunctionsetup
(args)
evaluation/math_eval.py:111
↓ 2 callersFunctionsmooth
r""" EMA implementation according to TensorBoard.
llamafactory/extras/ploting.py:34
↓ 2 callersFunctiontext_to_trajectory
evaluation/trajectory.py:13
↓ 2 callersMethodtruncate
(s, max_length=400)
evaluation/python_executor.py:144
↓ 1 callersMethodASSIGNMENT
(self)
evaluation/latex2sympy/gen/PSParser.py:1557
↓ 1 callersMethodBANG
(self)
evaluation/latex2sympy/gen/PSParser.py:2528
↓ 1 callersMethodCMD_CDOT
(self)
evaluation/latex2sympy/gen/PSParser.py:2083
↓ 1 callersMethodCMD_DIV
(self)
evaluation/latex2sympy/gen/PSParser.py:2089
↓ 1 callersMethodCMD_MOD
(self)
evaluation/latex2sympy/gen/PSParser.py:2095
↓ 1 callersMethodCMD_TIMES
(self)
evaluation/latex2sympy/gen/PSParser.py:2080
↓ 1 callersMethodCOLON
(self)
evaluation/latex2sympy/gen/PSParser.py:2092
↓ 1 callersMethodDIV
(self)
evaluation/latex2sympy/gen/PSParser.py:2086
↓ 1 callersMethodEQUAL
(self)
evaluation/latex2sympy/gen/PSParser.py:1560
↓ 1 callersMethodEXP_E
(self)
evaluation/latex2sympy/gen/PSParser.py:5334
↓ 1 callersMethodFUNC_INT
(self)
evaluation/latex2sympy/gen/PSParser.py:5289
↓ 1 callersMethodFUNC_LIM
(self)
evaluation/latex2sympy/gen/PSParser.py:5328
↓ 1 callersMethodFUNC_PROD
(self)
evaluation/latex2sympy/gen/PSParser.py:5322
↓ 1 callersMethodFUNC_SQRT
(self)
evaluation/latex2sympy/gen/PSParser.py:5307
↓ 1 callersMethodFUNC_SUM
(self)
evaluation/latex2sympy/gen/PSParser.py:5319
↓ 1 callersMethodGT
(self)
evaluation/latex2sympy/gen/PSParser.py:1569
↓ 1 callersMethodGTE
(self)
evaluation/latex2sympy/gen/PSParser.py:1572
↓ 1 callersMethodIN
(self)
evaluation/latex2sympy/gen/PSParser.py:1554
↓ 1 callersMethodLTE
(self)
evaluation/latex2sympy/gen/PSParser.py:1566
↓ 1 callersMethodMATRIX_XRIGHTARROW
(self)
evaluation/latex2sympy/gen/PSParser.py:1308
↓ 1 callersMethodMUL
(self)
evaluation/latex2sympy/gen/PSParser.py:2077
↓ 1 callersMethodUNEQUAL
(self)
evaluation/latex2sympy/gen/PSParser.py:1575
↓ 1 callersMethod__init__
(self, config: "LlavaConfig")
llamafactory/model/model_utils/visual.py:39
↓ 1 callersMethod__init__
(self, image_token: Optional[str], video_token: Optional[str])
llamafactory/data/mm_plugin.py:55
↓ 1 callersMethod__init__
(self, manager: "Manager", demo_mode: bool = False, lazy_init: bool = True)
llamafactory/webui/chatter.py:38
↓ 1 callersMethod__init__
(self, stop_id_sequences)
evaluation/model_utils.py:61
↓ 1 callersFunction_apply_llama_patch
()
llamafactory/model/model_utils/longlora.py:355
↓ 1 callersFunction_configure_library_root_logger
r""" Configures root logger using a stdout stream handler with an explicit format.
llamafactory/extras/logging.py:91
↓ 1 callersFunction_create_adam_mini_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", )
llamafactory/train/trainer_utils.py:373
↓ 1 callersFunction_create_badam_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", finetuning_args: "Finetunin
llamafactory/train/trainer_utils.py:312
↓ 1 callersFunction_create_galore_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", finetuning_args: "Finetunin
llamafactory/train/trainer_utils.py:188
↓ 1 callersFunction_create_loraplus_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", finetuning_args: "Finetunin
llamafactory/train/trainer_utils.py:272
↓ 1 callersFunction_encode_feedback_example
( prompt: Sequence[Dict[str, str]], response: Sequence[Dict[str, str]], kl_response: Sequence[Dict
llamafactory/data/processors/feedback.py:34
↓ 1 callersFunction_encode_pairwise_example
( prompt: Sequence[Dict[str, str]], response: Sequence[Dict[str, str]], system: Optional[str],
llamafactory/data/processors/pairwise.py:34
↓ 1 callersFunction_encode_unsupervised_example
( prompt: Sequence[Dict[str, str]], response: Sequence[Dict[str, str]], system: Optional[str],
llamafactory/data/processors/unsupervised.py:34
↓ 1 callersMethod_finalize
(self, lang: str, finish_info: str)
llamafactory/webui/runner.py:93
↓ 1 callersFunction_fix_a_slash_b
(string)
evaluation/parser.py:43
↓ 1 callersFunction_fix_fracs
(string)
evaluation/parser.py:11
← previousnext →201–300 of 1,570, ranked by callers