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

↓ 494 callersFunctionassert_equal
(latex, expr, variable_values={}, symbolically=False)
evaluation/latex2sympy/tests/context.py:82
↓ 185 callersMethodappend
( self, chatbot: List[List[Optional[str]]], messages: Sequence[Dict[str, str]],
llamafactory/webui/chatter.py:120
↓ 115 callersMethodexpr
(self)
evaluation/latex2sympy/gen/PSParser.py:1966
↓ 66 callersFunctionregister_model_group
( models: Dict[str, Dict[DownloadSource, str]], template: Optional[str] = None, vision: bool = Fal
llamafactory/extras/constants.py:113
↓ 64 callersFunction_register_template
r""" Registers a chat template. To add the following chat template: ``` [HUMAN]: user prompt here [AI]: model response he
llamafactory/data/template.py:204
↓ 63 callersMethod__init__
(self, input, output=sys.stdout)
evaluation/latex2sympy/gen/PSParser.py:802
↓ 57 callersMethodenterRule
(self, listener)
evaluation/latex2sympy/gen/PSParser.py:2101
↓ 57 callersMethodexitRule
(self, listener)
evaluation/latex2sympy/gen/PSParser.py:2105
↓ 48 callersMethodupdate
(self, val, n=1)
llamafactory/extras/misc.py:68
↓ 38 callersFunctionget_logger
r""" Returns a logger with the specified name. It it not supposed to be accessed externally.
llamafactory/extras/logging.py:113
↓ 38 callersMethodsupexpr
(self)
evaluation/latex2sympy/gen/PSParser.py:6313
↓ 34 callersFunctionconvert_expr
(expr)
evaluation/latex2sympy/latex2sympy2.py:200
↓ 33 callersMethodget_elem_by_id
r""" Gets element by id. Example: top.lang, train.dataset
llamafactory/webui/manager.py:49
↓ 25 callersMethodatom
(self)
evaluation/latex2sympy/gen/PSParser.py:4404
↓ 23 callersMethodtranspose
(self)
evaluation/latex2sympy/gen/PSParser.py:918
↓ 22 callersMethodapply
r""" Forms a list of slots according to the inputs to encode.
llamafactory/data/formatter.py:37
↓ 22 callersMethodsubexpr
(self)
evaluation/latex2sympy/gen/PSParser.py:6236
↓ 17 callersFunction_Pow
(a, b)
evaluation/latex2sympy/tests/context.py:21
↓ 17 callersFunctionget_save_dir
r""" Gets the path to saved model checkpoints.
llamafactory/webui/common.py:54
↓ 16 callersFunction_Mul
(a, b)
evaluation/latex2sympy/tests/context.py:17
↓ 16 callersMethod_validate_input
r""" Validates if this model accepts the input modalities.
llamafactory/data/mm_plugin.py:59
↓ 16 callersFunctionload_tokenizer
r""" Loads pretrained tokenizer and optionally loads processor. Note: including inplace operation of model_args.
llamafactory/model/loader.py:62
↓ 15 callersFunction_Add
(a, b)
evaluation/latex2sympy/tests/context.py:13
↓ 14 callersMethodLETTER_NO_E
(self)
evaluation/latex2sympy/gen/PSParser.py:4275
↓ 14 callersFunction_log
(a, b)
evaluation/latex2sympy/tests/all_good_test.py:36
↓ 14 callersFunctionget_mm_plugin
( name: str, image_token: Optional[str] = None, video_token: Optional[str] = None, )
llamafactory/data/mm_plugin.py:618
↓ 14 callersFunctionload_model
r""" Loads pretrained model.
llamafactory/model/loader.py:122
↓ 13 callersFunction_factorial
(a)
evaluation/latex2sympy/tests/all_good_test.py:32
↓ 12 callersFunctionis_gradio_available
()
llamafactory/extras/packages.py:53
↓ 11 callersFunction_is_package_available
(name: str)
llamafactory/extras/packages.py:30
↓ 11 callersMethodadditive
(self, _p=0)
evaluation/latex2sympy/gen/PSParser.py:2014
↓ 11 callersMethodexp
(self, _p=0)
evaluation/latex2sympy/gen/PSParser.py:2815
↓ 11 callersFunctionget_template_and_fix_tokenizer
r""" Gets chat template and fixes the tokenizer.
llamafactory/data/template.py:355
↓ 11 callersMethodrelation
(self, _p=0)
evaluation/latex2sympy/gen/PSParser.py:1589
↓ 10 callersFunction_Abs
(a)
evaluation/latex2sympy/tests/all_good_test.py:28
↓ 10 callersMethod_get_mm_inputs
r""" Processes visual inputs. Returns: (llava and paligemma) pixel_values: tensor with shape (B, C, H, W) Return
llamafactory/data/mm_plugin.py:142
↓ 10 callersFunctionconvert_atom
(atom)
evaluation/latex2sympy/latex2sympy2.py:590
↓ 10 callersMethoddet
(self)
evaluation/latex2sympy/gen/PSParser.py:1440
↓ 10 callersMethodgroup
(self)
evaluation/latex2sympy/gen/PSParser.py:3315
↓ 9 callersMethodequality
(self)
evaluation/latex2sympy/gen/PSParser.py:1920
↓ 9 callersMethodrelation_list_content
(self)
evaluation/latex2sympy/gen/PSParser.py:1830
↓ 9 callersFunctionshift
(state: "torch.Tensor")
llamafactory/model/model_utils/longlora.py:92
↓ 9 callersMethodtransform_atom
(self)
evaluation/latex2sympy/gen/PSParser.py:972
↓ 8 callersMethodencode_oneturn
r""" Returns a single pair of token ids representing prompt and response respectively.
llamafactory/data/template.py:55
↓ 8 callersMethodmp
(self, _p=0)
evaluation/latex2sympy/gen/PSParser.py:2109
↓ 8 callersMethodset_attr
(self, key: str, obj: Dict[str, Any], default: Optional[Any] = None)
llamafactory/data/parser.py:71
↓ 7 callersMethodLT
(self)
evaluation/latex2sympy/gen/PSParser.py:1563
↓ 7 callersMethodNUMBER
(self)
evaluation/latex2sympy/gen/PSParser.py:4375
↓ 7 callersMethodadd_elems
r""" Adds elements to manager.
llamafactory/webui/manager.py:27
↓ 7 callersMethodfrac
(self)
evaluation/latex2sympy/gen/PSParser.py:4626
↓ 7 callersFunctionget_dataset
r""" Gets the train dataset and optionally gets the evaluation dataset.
llamafactory/data/loader.py:229
↓ 7 callersFunctionlatex2sympy
(sympy: str, variable_values={})
evaluation/latex2sympy/latex2sympy2.py:46
↓ 7 callersMethodprocess_messages
r""" Pre-processes input messages before tokenization for VLMs.
llamafactory/data/mm_plugin.py:190
↓ 7 callersMethodsave_model
r""" Saves model checkpoint. Subclass and override to inject custom behavior.
llamafactory/train/ppo/trainer.py:486
↓ 6 callersFunctioncreate_custom_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", finetuning_args: "Finetunin
llamafactory/train/trainer_utils.py:398
↓ 6 callersFunctioncreate_custom_scheduler
( training_args: "Seq2SeqTrainingArguments", num_training_steps: int, optimizer: Optional["torch.o
llamafactory/train/trainer_utils.py:416
↓ 6 callersMethodeval
(self)
llamafactory/eval/evaluator.py:79
↓ 6 callersFunctionget_current_device
r""" Gets the current available device.
llamafactory/extras/misc.py:118
↓ 6 callersFunctionnumpify
r""" Casts a torch tensor or a numpy array to a numpy array.
llamafactory/extras/misc.py:197
↓ 6 callersFunctionplot_loss
r""" Plots loss curves and saves the image.
llamafactory/extras/ploting.py:73
↓ 6 callersMethodprocess_token_ids
r""" Pre-processes token ids after tokenization for VLMs.
llamafactory/data/mm_plugin.py:203
↓ 6 callersFunctiontorch_gc
r""" Collects GPU or NPU memory.
llamafactory/extras/misc.py:219
↓ 6 callersMethodtransform_scale
(self)
evaluation/latex2sympy/gen/PSParser.py:1040
↓ 5 callersMethodSUB
(self)
evaluation/latex2sympy/gen/PSParser.py:2264
↓ 5 callersFunction_set_z3_leaf_modules
(model: "PreTrainedModel", leaf_modules: Sequence["torch.nn.Module"])
llamafactory/model/model_utils/moe.py:28
↓ 5 callersFunctioncreate_modelcard_and_push
( trainer: "Trainer", model_args: "ModelArguments", data_args: "DataArguments", training_args:
llamafactory/train/trainer_utils.py:73
↓ 5 callersMethodelementary_transform
(self)
evaluation/latex2sympy/gen/PSParser.py:1192
↓ 5 callersFunctioninfer_seqlen
r""" Computes the real sequence length after truncation by the cutoff_len.
llamafactory/data/processors/processor_utils.py:51
↓ 5 callersFunctionload_config
r""" Loads user config if exists.
llamafactory/webui/common.py:73
↓ 5 callersFunctionload_jsonl
(file: Union[str, Path])
evaluation/utils.py:20
↓ 5 callersMethodmatrix_row
(self)
evaluation/latex2sympy/gen/PSParser.py:1510
↓ 5 callersMethodmp_nofunc
(self, _p=0)
evaluation/latex2sympy/gen/PSParser.py:2204
↓ 5 callersFunctionmul_flat
(lh, rh)
evaluation/latex2sympy/latex2sympy2.py:330
↓ 5 callersMethodtransform_assignment
(self)
evaluation/latex2sympy/gen/PSParser.py:1148
↓ 5 callersFunctionuse_modelscope
()
llamafactory/extras/misc.py:260
↓ 5 callersFunctionuse_openmind
()
llamafactory/extras/misc.py:264
↓ 4 callersMethodDIFFERENTIAL
(self)
evaluation/latex2sympy/gen/PSParser.py:4384
↓ 4 callersMethodGREEK_CMD
(self)
evaluation/latex2sympy/gen/PSParser.py:4278
↓ 4 callersMethodOTHER_SYMBOL_CMD
(self)
evaluation/latex2sympy/gen/PSParser.py:4281
↓ 4 callersFunction_convert_slots_to_jinja
(slots: "SLOTS", tokenizer: "PreTrainedTokenizer", placeholder: str = "content")
llamafactory/data/template.py:290
↓ 4 callersMethodabs_group
(self)
evaluation/latex2sympy/gen/PSParser.py:3739
↓ 4 callersMethodaccent
(self)
evaluation/latex2sympy/gen/PSParser.py:4171
↓ 4 callersMethodargs
(self)
evaluation/latex2sympy/gen/PSParser.py:5828
↓ 4 callersMethodatom_expr_no_supexpr
(self)
evaluation/latex2sympy/gen/PSParser.py:4225
↓ 4 callersMethodbinom
(self)
evaluation/latex2sympy/gen/PSParser.py:4697
↓ 4 callersMethodceil_group
(self)
evaluation/latex2sympy/gen/PSParser.py:4049
↓ 4 callersFunctionconvert_mp
(mp)
evaluation/latex2sympy/latex2sympy2.py:396
↓ 4 callersMethodeval_at_sub
(self)
evaluation/latex2sympy/gen/PSParser.py:2676
↓ 4 callersMethodeval_at_sup
(self)
evaluation/latex2sympy/gen/PSParser.py:2741
↓ 4 callersFunctionextract_answer
(pred_str, data_name, use_last_number=True)
evaluation/parser.py:499
↓ 4 callersMethodfloor_group
(self)
evaluation/latex2sympy/gen/PSParser.py:3913
↓ 4 callersMethodfunc_normal_multi_arg
(self)
evaluation/latex2sympy/gen/PSParser.py:5180
↓ 4 callersMethodfunc_normal_single_arg
(self)
evaluation/latex2sympy/gen/PSParser.py:5112
↓ 4 callersFunctionget_device_count
r""" Gets the number of available GPU or NPU devices.
llamafactory/extras/misc.py:136
↓ 4 callersMethodget_elem_list
r""" Returns the list of all elements.
llamafactory/webui/manager.py:36
↓ 4 callersFunctionmat_mul_flat
(lh, rh)
evaluation/latex2sympy/latex2sympy2.py:346
↓ 4 callersMethodmatrix
(self)
evaluation/latex2sympy/gen/PSParser.py:1340
↓ 4 callersFunctionmy_equals
(ans_p, ans_l)
evaluation/math_utils.py:129
↓ 4 callersMethodnorm_group
(self)
evaluation/latex2sympy/gen/PSParser.py:3635
↓ 4 callersMethodpostfix
(self)
evaluation/latex2sympy/gen/PSParser.py:2442
next →1–100 of 1,570, ranked by callers