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

↓ 1 callersFunction_fix_sqrt
(string)
evaluation/parser.py:60
↓ 1 callersFunction_get_default_logging_level
r""" Returns the default logging level.
llamafactory/extras/logging.py:69
↓ 1 callersFunction_get_jinja_template
r""" Returns the jinja template.
llamafactory/data/template.py:312
↓ 1 callersFunction_get_library_root_logger
()
llamafactory/extras/logging.py:87
↓ 1 callersFunction_get_package_version
(name: str)
llamafactory/extras/packages.py:34
↓ 1 callersFunction_get_paligemma_token_type_ids
r""" Gets paligemma token type ids for computing loss. Returns: batch_token_type_ids: shape (batch_size, sequence_length)
llamafactory/data/mm_plugin.py:37
↓ 1 callersFunction_get_quantization_dataset
r""" Prepares the tokenized dataset to perform AutoGPTQ. Do not use tensor output for JSON serialization.
llamafactory/model/model_utils/quantization.py:60
↓ 1 callersFunction_load_single_dataset
r""" Loads a single dataset and aligns it to the standard format.
llamafactory/data/loader.py:45
↓ 1 callersMethod_pad_tensors_to_target_len
r""" Pads the tensor to the same length as the target tensor.
llamafactory/train/sft/trainer.py:121
↓ 1 callersFunction_parse_eval_args
(args: Optional[Dict[str, Any]] = None)
llamafactory/hparams/parser.py:156
↓ 1 callersFunction_parse_infer_args
(args: Optional[Dict[str, Any]] = None)
llamafactory/hparams/parser.py:151
↓ 1 callersFunction_parse_train_args
(args: Optional[Dict[str, Any]] = None)
llamafactory/hparams/parser.py:146
↓ 1 callersFunction_patch_for_block_diag_attn
(model_type: str)
llamafactory/model/model_utils/packing.py:116
↓ 1 callersMethod_regularize_videos
r""" Regularizes videos to avoid error. Including reading, resizing and converting.
llamafactory/data/mm_plugin.py:120
↓ 1 callersMethod_save_results
(self, category_corrects: Dict[str, "NDArray"], results: Dict[str, Dict[int, str]])
llamafactory/eval/evaluator.py:139
↓ 1 callersFunction_setup_freeze_tuning
( model: "PreTrainedModel", finetuning_args: "FinetuningArguments", is_trainable: bool, cast_t
llamafactory/model/adapter.py:58
↓ 1 callersFunction_setup_full_tuning
( model: "PreTrainedModel", finetuning_args: "FinetuningArguments", is_trainable: bool, cast_t
llamafactory/model/adapter.py:39
↓ 1 callersFunction_setup_lora_tuning
( config: "PretrainedConfig", model: "PreTrainedModel", model_args: "ModelArguments", finetuni
llamafactory/model/adapter.py:139
↓ 1 callersMethod_stream_chat
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
llamafactory/chat/hf_engine.py:212
↓ 1 callersFunction_test
()
evaluation/python_executor.py:202
↓ 1 callersFunction_test_extract_answer
()
evaluation/parser.py:742
↓ 1 callersFunction_test_generate_completions
()
evaluation/model_utils.py:203
↓ 1 callersFunction_test_math_equal
()
evaluation/grader.py:351
↓ 1 callersFunction_test_str_to_trajectory
()
evaluation/trajectory.py:120
↓ 1 callersFunctionabort_process
r""" Aborts the processes recursively in a bottom-up way.
llamafactory/webui/utils.py:37
↓ 1 callersMethodaccent_symbol
(self)
evaluation/latex2sympy/gen/PSParser.py:828
↓ 1 callersFunctionadd_z3_leaf_module
r""" Sets module as a leaf module to skip partitioning in deepspeed zero3.
llamafactory/model/model_utils/moe.py:35
↓ 1 callersFunctionalign_dataset
r""" Aligned dataset: _prompt: [{"role": "user", "content": "..."}] * (2T - 1) _response: [{"role": "assistant", "content": "..."}
llamafactory/data/aligner.py:225
↓ 1 callersFunctionapply_liger_kernel
( config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool, require_logits
llamafactory/model/model_utils/liger_kernel.py:30
↓ 1 callersFunctionautocast_projector_dtype
r""" Casts projector output to half precision for fine-tuning quantized VLMs.
llamafactory/model/model_utils/visual.py:83
↓ 1 callersMethodbatch_inference
(self, batch_input: Dict[str, "torch.Tensor"])
llamafactory/eval/evaluator.py:72
↓ 1 callersFunctioncall_with_timeout
(func, *args, timeout=1, **kwargs)
evaluation/grader.py:337
↓ 1 callersMethodchat
r""" Gets a list of responses of the chat model.
llamafactory/chat/chat_model.py:62
↓ 1 callersFunctioncheck_dependencies
r""" Checks the version of the required packages.
llamafactory/extras/misc.py:75
↓ 1 callersFunctionclean_units
Clean the units in the number.
evaluation/parser.py:434
↓ 1 callersFunctioncompare
(actual, expected, symbolically=False)
evaluation/latex2sympy/tests/context.py:65
↓ 1 callersFunctioncompare_ans
(ans_p_str, ans_l_str, is_strict=False)
evaluation/math_utils.py:210
↓ 1 callersFunctioncompare_numerical_ans
(ans_p, ans_l)
evaluation/math_utils.py:29
↓ 1 callersMethodcompute_preference_loss
r""" Computes loss for preference learning.
llamafactory/train/dpo/trainer.py:143
↓ 1 callersMethodcompute_reference_log_probs
r""" Computes log probabilities of the reference model.
llamafactory/train/kto/trainer.py:165
↓ 1 callersMethodcompute_reference_log_probs
r""" Computes log probabilities of the reference model.
llamafactory/train/dpo/trainer.py:194
↓ 1 callersFunctionconfigure_attn_implementation
( config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool )
llamafactory/model/model_utils/attention.py:32
↓ 1 callersFunctionconfigure_longlora
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
llamafactory/model/model_utils/longlora.py:362
↓ 1 callersFunctionconfigure_moe
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
llamafactory/model/model_utils/moe.py:69
↓ 1 callersFunctionconfigure_packing
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
llamafactory/model/model_utils/packing.py:148
↓ 1 callersFunctionconfigure_quantization
r""" Priority: PTQ-quantized (train/infer) > AutoGPTQ (export) > On-the-fly quantization (train/infer)
llamafactory/model/model_utils/quantization.py:101
↓ 1 callersFunctionconfigure_rope
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
llamafactory/model/model_utils/rope.py:34
↓ 1 callersFunctionconfigure_visual_model
r""" Patches VLMs before loading them.
llamafactory/model/model_utils/visual.py:106
↓ 1 callersFunctionconstruct_prompt
(example, data_name, args)
evaluation/utils.py:189
↓ 1 callersFunctionconvert_binom
(binom)
evaluation/latex2sympy/latex2sympy2.py:788
↓ 1 callersFunctionconvert_exp
(exp)
evaluation/latex2sympy/latex2sympy2.py:542
↓ 1 callersFunctionconvert_func
(func)
evaluation/latex2sympy/latex2sympy2.py:794
↓ 1 callersFunctionconvert_pi_to_number
(code_string)
evaluation/parser.py:437
↓ 1 callersFunctionconvert_postfix
(postfix)
evaluation/latex2sympy/latex2sympy2.py:503
↓ 1 callersFunctionconvert_postfix_list
(arr, i=0)
evaluation/latex2sympy/latex2sympy2.py:460
↓ 1 callersFunctionconvert_pretrained_model_to_mod
( model: "PreTrainedModel", config: "PretrainedConfig", model_args: "ModelArguments" )
llamafactory/model/model_utils/mod.py:32
↓ 1 callersFunctionconvert_word_number
(text: str)
evaluation/parser.py:65
↓ 1 callersFunctioncreate_chat_completion_response
( request: "ChatCompletionRequest", chat_model: "ChatModel" )
llamafactory/api/chat.py:142
↓ 1 callersFunctioncreate_ds_config
r""" Creates deepspeed config.
llamafactory/webui/utils.py:239
↓ 1 callersFunctioncreate_eval_tab
(engine: "Engine")
llamafactory/webui/components/eval.py:32
↓ 1 callersFunctioncreate_export_tab
(engine: "Engine")
llamafactory/webui/components/export.py:103
↓ 1 callersFunctioncreate_infer_tab
(engine: "Engine")
llamafactory/webui/components/infer.py:32
↓ 1 callersMethodcreate_optimizer
( self, model: "AutoModelForCausalLMWithValueHead", training_args: "Seq2SeqTrainingArg
llamafactory/train/ppo/trainer.py:303
↓ 1 callersFunctioncreate_reward_model
r""" Creates reward model for PPO training.
llamafactory/train/trainer_utils.py:135
↓ 1 callersMethodcreate_scheduler
( self, training_args: "Seq2SeqTrainingArguments", num_training_steps: int, optimizer: "torch.optim.Op
llamafactory/train/ppo/trainer.py:330
↓ 1 callersFunctioncreate_score_evaluation_response
( request: "ScoreEvaluationRequest", chat_model: "ChatModel" )
llamafactory/api/chat.py:229
↓ 1 callersFunctioncreate_stream_chat_completion_response
( request: "ChatCompletionRequest", chat_model: "ChatModel" )
llamafactory/api/chat.py:193
↓ 1 callersFunctioncreate_top
()
llamafactory/webui/components/top.py:32
↓ 1 callersFunctioncreate_train_tab
(engine: "Engine")
llamafactory/webui/components/train.py:37
↓ 1 callersFunctioncreate_web_demo
()
llamafactory/webui/interface.py:70
↓ 1 callersFunctiondump_layernorm
r""" Dumps the layernorm parameters in the model. The model is already unwrapped (and gathered).
llamafactory/train/ppo/ppo_utils.py:69
↓ 1 callersMethodencode_multiturn
r""" Returns multiple pairs of token ids representing prompts and responses respectively.
llamafactory/data/template.py:73
↓ 1 callersMethodenterAbs_group
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:316
↓ 1 callersMethodenterAccent
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:343
↓ 1 callersMethodenterAccent_symbol
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:10
↓ 1 callersMethodenterAdditive
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:163
↓ 1 callersMethodenterArgs
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:478
↓ 1 callersMethodenterAtom
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:370
↓ 1 callersMethodenterAtom_expr
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:361
↓ 1 callersMethodenterAtom_expr_no_supexpr
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:352
↓ 1 callersMethodenterBinom
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:406
↓ 1 callersMethodenterCeil_group
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:334
↓ 1 callersMethodenterComp
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:280
↓ 1 callersMethodenterComp_nofunc
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:289
↓ 1 callersMethodenterDet
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:100
↓ 1 callersMethodenterElementary_transform
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:73
↓ 1 callersMethodenterElementary_transforms
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:82
↓ 1 callersMethodenterEquality
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:145
↓ 1 callersMethodenterEval_at
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:235
↓ 1 callersMethodenterEval_at_sub
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:244
↓ 1 callersMethodenterEval_at_sup
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:253
↓ 1 callersMethodenterExp
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:262
↓ 1 callersMethodenterExp_nofunc
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:271
↓ 1 callersMethodenterExpr
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:154
↓ 1 callersMethodenterFloor_group
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:325
↓ 1 callersMethodenterFrac
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:397
↓ 1 callersMethodenterFunc
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:469
↓ 1 callersMethodenterFunc_common_args
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:487
↓ 1 callersMethodenterFunc_multi_arg
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:523
↓ 1 callersMethodenterFunc_multi_arg_noparens
(self, ctx)
evaluation/latex2sympy/gen/PSListener.py:532
← previousnext →301–400 of 1,570, ranked by callers