MCPcopy Create free account

hub / github.com/albertan017/LLM4Decompile / functions

Functions184 in github.com/albertan017/LLM4Decompile

↓ 1 callersFunctionmain
()
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:626
↓ 1 callersFunctionmain
()
evaluation/run_evaluation_llm4decompile.py:238
↓ 1 callersFunctionmain
()
evaluation/run_evaluation_llm4decompile_vllm.py:241
↓ 1 callersFunctionmain
()
train/compile.py:109
↓ 1 callersFunctionmain
()
train/colossalai_llm4decompile/train.py:63
↓ 1 callersFunctionmain
()
train/colossalai_llm4decompile/prepare_pretrain_dataset.py:26
↓ 1 callersFunctionnormalize_code_list_parallel
(input_json, output_json, key_name='pseudo', num_workers=None, remove=1)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:165
↓ 1 callersFunctionnormalize_code_list_parallel
(input_json, output_json, key_name='pseudo', num_workers=None, remove=1)
sk2decompile/evaluation/normalize_pseudo.py:165
↓ 1 callersFunctionparse_args
()
sk2decompile/evaluation/llm_server.py:9
↓ 1 callersFunctionparse_args
()
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:70
↓ 1 callersFunctionparse_args
()
decompile-bench/llm_server.py:9
↓ 1 callersFunctionparse_args
()
evaluation/run_evaluation_llm4decompile.py:19
↓ 1 callersFunctionparse_args
()
evaluation/run_evaluation_llm4decompile_vllm.py:20
↓ 1 callersFunctionparse_args
()
train/compile.py:95
↓ 1 callersFunctionprepare_workspace
Clone the necessary subset of the repo into a temporary workspace.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:267
↓ 1 callersFunctionpreprocess
Preprocess the data by tokenizing.
train/finetune.py:83
↓ 1 callersFunctionprocess_case
Process a single JSONL entry.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:333
↓ 1 callersFunctionprocess_code
(code_str)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:134
↓ 1 callersFunctionprocess_code
(code_str)
sk2decompile/evaluation/normalize_pseudo.py:134
↓ 1 callersFunctionprocess_one
Write sample_src to temp file (sample.c), run generator -> sample.cstr, run solver -> sample.h, read header, return header text.
sk2decompile/evaluation/inf_type.py:9
↓ 1 callersFunctionremove_comments
(text)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:125
↓ 1 callersFunctionremove_comments
(text)
sk2decompile/evaluation/normalize_pseudo.py:125
↓ 1 callersFunctionremove_keywords
(text)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:60
↓ 1 callersFunctionremove_keywords
(text)
sk2decompile/evaluation/normalize_pseudo.py:60
↓ 1 callersFunctionreplace_function_body
Replace the exact reference_function text with inferred_function. Returns the updated source and a boolean indicating if replacement happene
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:135
↓ 1 callersFunctionreplace_typedefs
(text)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:115
↓ 1 callersFunctionreplace_typedefs
(text)
sk2decompile/evaluation/normalize_pseudo.py:115
↓ 1 callersFunctionrun_eval_pipeline
(args: ArgumentParser)
evaluation/run_evaluation_llm4decompile.py:173
↓ 1 callersFunctionrun_eval_pipeline
(args: ArgumentParser)
evaluation/run_evaluation_llm4decompile_vllm.py:174
↓ 1 callersFunctionsanitize_case_id
Generate filesystem-safe case identifier.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:252
↓ 1 callersFunctionsave_checkpoint
Save model checkpoint, optimizer, LR scheduler and intermedidate running states.
train/colossalai_llm4decompile/colossal_llama/utils/ckpt_io.py:36
↓ 1 callersFunctionsave_json
Save as JSON format
train/colossalai_llm4decompile/colossal_llama/utils/ckpt_io.py:28
↓ 1 callersFunctionsnapshot_artifacts
Copy the workspace benchmark directory into the case directory.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:316
↓ 1 callersFunctionstream_generate
Generates sequences of token ids using the specified model and generation parameters. Adapted from https://huggingface.co/THUDM/chatglm3-6b/b
train/colossalai_llm4decompile/colossal_llama/utils/stream_chat_patch.py:141
↓ 1 callersFunctionstrip_empty
(code)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:20
↓ 1 callersFunctionstrip_empty
(code)
sk2decompile/Preprocess/format.py:19
↓ 1 callersFunctionstrip_empty
(code)
sk2decompile/evaluation/normalize_pseudo.py:20
↓ 1 callersFunctiontrain
()
train/finetune.py:137
↓ 1 callersFunctiontype_score
Compute Jaccard similarity over identifier patterns (func*, type*, var*, field*) between candidate and ground truth code. Returns:
sk2decompile/verl/SK2DECOMPILE/reward_functions/exe_type.py:31
↓ 1 callersFunctionwrite_case_artifacts
Persist reusable artifacts for a case.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:234
↓ 1 callersFunctionwrite_summary
Write JSON and Markdown summary reports.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:562
↓ 1 callersFunctionwrite_to_file
(file_path, data)
train/compile.py:88
Method__call__
(self, instances: Sequence[Dict])
train/finetune.py:107
Method__call__
Args: instances (`Sequence[Dict[str, List[int]]]`): Mini-batch samples, each sample is stored in an individual d
train/colossalai_llm4decompile/colossal_llama/dataset/loader.py:63
Method__del__
(self)
evaluation/server/text_generation.py:59
Method__init__
( self, model_id: str, port: int, dtype: str, max_input_len: int,
evaluation/server/text_generation.py:16
Method__init__
(self, port, stop_sequences: List[str])
evaluation/server/text_generation.py:65
Method__init__
(self, config: LlamaConfig)
train/colossalai_llm4decompile/colossal_llama/utils/flash_attention_patch.py:224
Method__init__
( self, dataset: DatasetType, num_replicas: Optional[int] = None, rank: Option
train/colossalai_llm4decompile/colossal_llama/dataset/loader.py:146
Method__iter__
(self)
train/colossalai_llm4decompile/colossal_llama/dataset/loader.py:165
Method__len__
(self)
train/colossalai_llm4decompile/colossal_llama/dataset/loader.py:171
Function_prepare_decoder_attention_mask
Decoder attetion mask
train/colossalai_llm4decompile/colossal_llama/utils/flash_attention_patch.py:32
Functionattention_forward
Re-define LLaMA-2 `LlamaAttention` forward method using flash-attention.
train/colossalai_llm4decompile/colossal_llama/utils/flash_attention_patch.py:59
Functioncompile_and_write
(input_file, output_file)
train/compile.py:13
Functioncompute_score
(solution_str, ground_truth, extra_info=None)
sk2decompile/verl/SK2DECOMPILE/reward_functions/exe_type.py:21
Functioncompute_score
Compute reward based on identifier naming similarity using Qwen3 embeddings. Returns score^2 to sharpen the reward signal.
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_qwen3.py:172
Functioncompute_score
Compute reward based on identifier naming similarity using GTE embeddings. Returns score^2 to sharpen the reward signal.
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_gte.py:172
Functioncompute_score
(solution_str, ground_truth, extra_info=None)
sk2decompile/verl/SK2DECOMPILE/reward_functions/sim_exe.py:19
Functionconvert
(match)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:49
Functionconvert
(match)
sk2decompile/evaluation/normalize_pseudo.py:49
Functionconvert
(match: re.Match[str])
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:127
Functioncopy_ignore_eval_dirs
Ignore helper to skip evaluation artifacts when copying benchmark dirs.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:258
Functioneval_func
(write_path, input_prompt, api_key, max_retries=5, initial_delay=1)
sk2decompile/evaluation/gpt_judge.py:17
Functionevaluate_func
(params)
evaluation/run_evaluation_llm4decompile.py:35
Functionevaluate_func
(params)
evaluation/run_evaluation_llm4decompile_vllm.py:36
Functionfolder
()
sk2decompile/Preprocess/inf_type.py:108
Functionfolder
()
sk2decompile/evaluation/inf_type.py:108
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor
train/colossalai_llm4decompile/colossal_llama/utils/flash_attention_patch.py:231
Methodforward
(self, hidden_states)
train/colossalai_llm4decompile/colossal_llama/utils/flash_attention_patch.py:343
Functionmain
()
sk2decompile/evaluation/inf_type.py:60
Functionneftune_post_forward_hook
Implements the NEFTune forward pass for the model using forward hooks. Note this works only for torch.nn.Embedding layers. This method is sli
train/colossalai_llm4decompile/colossal_llama/utils/neftune_patch.py:25
Functionprocess_entry
(entry, key_name='pseudo')
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:143
Functionprocess_entry
(entry, key_name='pseudo')
sk2decompile/evaluation/normalize_pseudo.py:143
Functionprocess_one
Write sample_src to temp file (sample.c), run generator -> sample.cstr, run solver -> sample.h, read header, return header text.
sk2decompile/Preprocess/inf_type.py:9
Functionprocess_record
(record)
sk2decompile/Preprocess/format.py:56
Functionreplace_with_flash_attention
(model: LlamaForCausalLM)
train/colossalai_llm4decompile/colossal_llama/utils/flash_attention_patch.py:209
Functionreplacer
(match)
sk2decompile/Preprocess/format.py:22
Functionrms_norm_forward
Formard function for RMS Norm
train/colossalai_llm4decompile/colossal_llama/utils/flash_attention_patch.py:203
Functionstreaming_chat
Streaming chat responses generation with a given model and tokenizer. Args: model (Any): The language model to generate responses.
train/colossalai_llm4decompile/colossal_llama/utils/stream_chat_patch.py:52
Functiontrain_tokenize_function
(examples, tokenizer)
train/finetune.py:127
Functionunfreeze_parameters
(model: LlamaForCausalLM)
train/colossalai_llm4decompile/colossal_llama/utils/froze.py:16
Methodwebserver_ready
()
evaluation/server/text_generation.py:48
Functionwrapper_func
(args)
sk2decompile/evaluation/metrics/cal_execute_rate.py:69
Functionwrapper_func
(args)
decompile-bench/metrics/cal_execute_rate.py:62
← previous101–184 of 184, ranked by callers