MCPcopy Create free account

hub / github.com/Mwie1024/Extra-CoT / functions

Functions1,850 in github.com/Mwie1024/Extra-CoT

↓ 1 callersMethodprocess_all_samples
(self, samples: List[Dict[str, Any]])
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/gpt_chunk_camel_data.py:481
↓ 1 callersMethodprocess_all_samples
处理所有样本的CoT文本,返回分块结果
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/chunk_camel_data.py:446
↓ 1 callersMethodprocess_all_samples
处理所有样本的CoT文本
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/claude_chunk_camel_data.py:430
↓ 1 callersMethodprocess_all_samples
(self, samples: List[Dict[str, Any]])
src/data/compressor/dataset_preparation/camel/camel_chunk_only_cot/gpt_chunk_camel_data.py:481
↓ 1 callersFunctionprocess_dataset
( input_file: str, output_file: str, model: str, max_workers: int, min_interval: float,
src/data/compressor/dataset_preparation/API/gpt-4o.py:515
↓ 1 callersFunctionprocess_dataset
( input_file: str, output_file: str, model: str, max_workers: int, min_interval: float,
src/data/compressor/dataset_preparation/API/gpt4o_ranges_labeler.py:610
↓ 1 callersFunctionprocess_dir
( in_dir: str, out_dir: str, buckets: List[float], tol: float, tokenizer_name: str = "o200
src/data/compressor_longformer/validate/longformer_pipeline/filter_by_token_ratio.py:86
↓ 1 callersFunctionprocess_dir
( in_dir: str, out_dir: str, buckets: List[float], tol: float, tokenizer_name: str = "o200
src/data/sft/longformer_pipeline/filter_by_token_ratio.py:86
↓ 1 callersFunctionprocess_jsonl
( input_path: str, output_path: str, keep_keys: List[str], response_key: str = "response",
src/data/sft/metamath_145k_query/filter_correct_answer.py:89
↓ 1 callersFunctionprocess_records
( data: Union[List[dict], dict], fmt: str )
src/data/sft/longformer_pipeline/query_result/autofollow_sft_dataset/clear_consecutive_symbol_exclude_three_dot.py:107
↓ 1 callersFunctionprocess_think_tags
处理JSONL文件,提取<think>和</think>之间的内容 Args: input_file: 输入文件路径 output_file: 输出文件路径
src/data/compressor/dataset_preparation/camel/camel_chunk_only_cot/process_think_tags.py:15
↓ 1 callersFunctionpunct_ratio
(s: str)
src/data/sft/longformer_pipeline/query_result/Compression/RL_actual_ratio/filter_bad_sample.py:163
↓ 1 callersFunctionquantiles
(vals, ps=(0,0.25,0.5,0.75,1.0))
src/data/compressor/dataset_preparation/label_training_data/visualization/check_token_distribution.py:6
↓ 1 callersFunctionread_any
优先 JSON,失败退回 JSONL。统一返回 list[dict]。
src/data/compressor/dataset_preparation/label_training_data/label_training_data.py:25
↓ 1 callersFunctionread_any_utf8
(path: str)
src/data/compressor_longformer/eval/preview_longformer.py:24
↓ 1 callersFunctionread_cloud_json
r"""Read a JSON/JSONL file from cloud storage (S3 or GCS). Args: cloud_path: str Cloud path in the format: - 's3:
llamafactory/src/llamafactory/data/data_utils.py:170
↓ 1 callersFunctionread_data
(path: str)
src/data/compressor_longformer/validate/eval_utils/evaluate.py:41
↓ 1 callersFunctionread_jsonl
(path: str)
src/data/compressor_longformer/validate/longformer_pipeline/filter_by_token_ratio.py:25
↓ 1 callersFunctionread_jsonl
(path: str)
src/data/compressor_longformer/validate/eval_utils/evaluate_local.py:40
↓ 1 callersFunctionread_jsonl
(path: str)
src/data/compressor_longformer/validate/eval_utils/eval_lora.py:44
↓ 1 callersFunctionread_jsonl
(path: str)
src/data/sft/metamath_145k_query/select_sft_subset.py:33
↓ 1 callersFunctionread_jsonl
(path: str)
src/data/sft/longformer_pipeline/filter_by_token_ratio.py:25
↓ 1 callersFunctionread_jsonl
(path: str)
src/eval/qwen1p7b_eval/vllm_eval.py:19
↓ 1 callersFunctionread_jsonl
(path: str)
src/eval/qwen1p7b_eval/special_token_vllm.py:58
↓ 1 callersFunctionread_jsonl
(path: str)
src/eval/qwen1p7b_eval/mmlu-stem/eval_vllm.py:58
↓ 1 callersMethodread_jsonl_file
(self, file_path: str)
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/gpt_chunk_camel_data.py:462
↓ 1 callersMethodread_jsonl_file
读取JSONL文件并返回所有样本
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/chunk_camel_data.py:423
↓ 1 callersMethodread_jsonl_file
读取JSONL文件
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/claude_chunk_camel_data.py:404
↓ 1 callersMethodread_jsonl_file
(self, file_path: str)
src/data/compressor/dataset_preparation/camel/camel_chunk_only_cot/gpt_chunk_camel_data.py:462
↓ 1 callersFunctionreconstruct_text
(tokens: List[str], kept_indices: List[int])
src/data/compressor/dataset_preparation/index_retrival.py:122
↓ 1 callersFunctionreduce_tensor_sum
inplace sum-reduce
src/data/compressor_longformer/train/train_longformer_v2.py:66
↓ 1 callersFunctionregister_autoclass
(config: "PretrainedConfig", model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer")
llamafactory/src/llamafactory/model/model_utils/misc.py:80
↓ 1 callersFunctionremove_model_output
从 JSONL 文件中移除 model_output 字段并保存为新的 JSONL 文件
src/data/sft/metamath_145k_query/check_think_tag.py:3
↓ 1 callersFunctionrender_by_spans
(text: str, spans: List[Tuple[int,int]])
src/data/compressor_longformer/eval/preview_longformer.py:100
↓ 1 callersFunctionrepetition_profile
(tokens: List[str])
src/data/sft/longformer_pipeline/query_result/Compression/clean_bad_samples.py:83
↓ 1 callersFunctionreservoir_sample
(iterable, k: int, seed: int = 42)
src/data/compressor_longformer/validate/inference_metamath.py:67
↓ 1 callersFunctionreservoir_sample_exclusive
在“非冲突样本”集合上做等概率抽样(Vitter Algorithm R) - exclude_keys: 来自排除文件的键集合 - seen_keys: 输入内部去重(支持多键:别名并集)
src/data/compressor_longformer/validate/datasets/sample_exlusive_1k.py:208
↓ 1 callersFunctionresize_embedding_layer
r"""Resize token embeddings.
llamafactory/src/llamafactory/model/model_utils/embedding.py:40
↓ 1 callersFunctionrestore_layernorm
r"""Restore the layernorm parameters in the model. The model is already unwrapped (and gathered).
llamafactory/src/llamafactory/train/ppo/ppo_utils.py:76
↓ 1 callersFunctionrewrite_sample_ratio_100
Use query for input and model_output for output (fallbacks used if missing).
src/data/sft/longformer_pipeline/query_result/autofollow_sft_dataset/rewrite_follow_to_unified_json_v1.py:97
↓ 1 callersFunctionrewrite_sample_ratio_100
Use query for input and model_output for output (fallbacks used if missing).
src/data/sft/longformer_pipeline/query_result/autofollow_sft_dataset/rewrite_follow_to_unified_json_v2.py:102
↓ 1 callersFunctionrewrite_sample_ratio_20_80
Use question and output; add token to input/output as specified.
src/data/sft/longformer_pipeline/query_result/autofollow_sft_dataset/rewrite_follow_to_unified_json_v1.py:85
↓ 1 callersFunctionrewrite_sample_ratio_20_80
Use question and output; add token to input/output as specified.
src/data/sft/longformer_pipeline/query_result/autofollow_sft_dataset/rewrite_follow_to_unified_json_v2.py:90
↓ 1 callersFunctionrisk_score
(feats: dict)
src/data/sft/longformer_pipeline/query_result/Compression/SFT_actual_ratio_intesection/filter_bad_sample.py:84
↓ 1 callersFunctionrun_dpo
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
llamafactory/src/llamafactory/train/dpo/workflow.py:36
↓ 1 callersFunctionrun_kto
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
llamafactory/src/llamafactory/train/kto/workflow.py:35
↓ 1 callersFunctionrun_ppo
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
llamafactory/src/llamafactory/train/ppo/workflow.py:34
↓ 1 callersFunctionrun_pt
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
llamafactory/src/llamafactory/train/pt/workflow.py:36
↓ 1 callersFunctionrun_retry
(data_path:str, manifest_path:str, output_path:str, model:str, max_workers:int, min_interval:flo
src/data/compressor/dataset_preparation/API/api_result_completiness/retry_empty_chunks.py:372
↓ 1 callersFunctionrun_rm
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
llamafactory/src/llamafactory/train/rm/workflow.py:35
↓ 1 callersFunctionrun_sft
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
llamafactory/src/llamafactory/train/sft/workflow.py:40
↓ 1 callersFunctionsafe_compress_prompt
Call llmlingua.compress_prompt with auto-fallback for unsupported kwargs and missing counts.
src/data/compressor_longformer/eval/compare_longformer_llmlingua2/compare.py:103
↓ 1 callersFunctionsafe_compress_prompt
- Constructor already handles use_llmlingua2; don't pass it here. - Drop unsupported kwargs automatically. - If token counts missing, fal
src/data/compressor_longformer/validate/Tokenskip_pipeline/llmlingua2_compression.py:197
↓ 1 callersFunctionsample_key
(question: str, chunks: List[str])
src/data/compressor/dataset_preparation/API/dataset_split/sampler.py:28
↓ 1 callersFunctionsample_records
Deterministically sample k records; keep original order among sampled.
src/data/compressor_longformer/validate/Tokenskip_pipeline/llmlingua2_compression.py:46
↓ 1 callersFunctionsave_cmd
r"""Save CLI commands to launch training.
llamafactory/src/llamafactory/webui/common.py:202
↓ 1 callersFunctionsave_config
(input_dir: str, output_dir: str)
llamafactory/scripts/convert_ckpt/llamafy_baichuan2.py:76
↓ 1 callersFunctionsave_config
(input_dir: str, output_dir: str, torch_dtype: str)
llamafactory/scripts/convert_ckpt/llamafy_qwen.py:113
↓ 1 callersFunctionsave_items
(items: List[dict], path: str, fmt: str)
src/data/sft/longformer_pipeline/query_result/autofollow_sft_dataset/patch_think_and_remove_begin_symbol.py:30
↓ 1 callersFunctionsave_jsonl
(items: List[dict], path: str)
src/data/compressor_longformer/validate/longformer_pipeline/longformer_tokenizer_compression.py:62
↓ 1 callersFunctionsave_jsonl
(items: List[Dict[str, Any]], path: str)
src/data/compressor_longformer/validate/Tokenskip_pipeline/llmlingua2_compression.py:38
↓ 1 callersFunctionsave_jsonl
(items: List[Dict[str, Any]], path: str)
src/data/compressor_longformer/validate/datasets/sample_exlusive_1k.py:263
↓ 1 callersFunctionsave_jsonl
(items: List[dict], path: str)
src/data/sft/longformer_pipeline/longformer_compressor.py:32
↓ 1 callersMethodsave_predictions
r"""Save model predictions to `output_dir`. A custom behavior that not contained in Seq2SeqTrainer.
llamafactory/src/llamafactory/train/rm/trainer.py:112
↓ 1 callersMethodsave_predictions
r"""Save model predictions to `output_dir`. A custom behavior that not contained in Seq2SeqTrainer.
llamafactory/src/llamafactory/train/sft/trainer.py:137
↓ 1 callersMethodsave_processed_results
(self, processed_results: List[Dict[str, Any]], output_path: str)
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/gpt_chunk_camel_data.py:523
↓ 1 callersMethodsave_processed_results
保存处理后的结果到JSONL文件
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/claude_chunk_camel_data.py:483
↓ 1 callersMethodsave_processed_results
(self, processed_results: List[Dict[str, Any]], output_path: str)
src/data/compressor/dataset_preparation/camel/camel_chunk_only_cot/gpt_chunk_camel_data.py:523
↓ 1 callersMethodsave_report
保存详细的检查结果到JSON文件
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/check_latex_completiness.py:295
↓ 1 callersMethodsave_report
保存详细的检查结果到JSON文件
src/data/compressor/dataset_preparation/camel/camel_chunk_only_cot/check_latex_completiness.py:295
↓ 1 callersMethodsave_statistics
(self, stats: Dict[str, Any], stats_path: str)
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/gpt_chunk_camel_data.py:582
↓ 1 callersMethodsave_statistics
保存统计信息到JSON文件
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/claude_chunk_camel_data.py:569
↓ 1 callersMethodsave_statistics
(self, stats: Dict[str, Any], stats_path: str)
src/data/compressor/dataset_preparation/camel/camel_chunk_only_cot/gpt_chunk_camel_data.py:582
↓ 1 callersMethodsave_successful_samples
保存所有LaTeX公式匹配成功的样本到JSONL文件
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/check_latex_completiness.py:300
↓ 1 callersMethodsave_successful_samples
保存所有LaTeX公式匹配成功的样本到JSONL文件
src/data/compressor/dataset_preparation/camel/camel_chunk_only_cot/check_latex_completiness.py:300
↓ 1 callersFunctionsave_weight
(input_dir: str, output_dir: str, shard_size: str, save_safetensors: bool)
llamafactory/scripts/convert_ckpt/llamafy_baichuan2.py:31
↓ 1 callersFunctionsave_weight
(input_dir: str, output_dir: str, shard_size: str, save_safetensors: bool)
llamafactory/scripts/convert_ckpt/llamafy_qwen.py:39
↓ 1 callersFunctionsearch_for_fit
r"""Find the index of largest number that fits into the knapsack with the given capacity.
llamafactory/src/llamafactory/data/processor/processor_utils.py:48
↓ 1 callersFunctionseed_everything
(seed: int)
src/data/compressor_longformer/validate/llama_factory_0.5_0.7_0.9.py:19
↓ 1 callersFunctionseed_everything
(seed: int)
src/data/compressor_longformer/validate/build_llamafactory_input_special_token.py:35
↓ 1 callersFunctionseed_everything
(seed: int)
src/data/compressor_longformer/validate/build_llamafactory_input_numeric.py:18
↓ 1 callersFunctionseed_everything
(seed: int)
src/data/compressor_longformer/validate/build_llamafactory_input.py:35
↓ 1 callersFunctionseed_everything
(seed: int)
src/data/compressor_longformer/validate/build_mixture_llamafactory.py:37
↓ 1 callersFunctionseed_everything
(seed: int)
src/data/compressor_longformer/validate/longformer_pipeline/build_llamafactory_input_numeric.py:18
↓ 1 callersFunctionseed_everything
(seed: int)
src/data/compressor_longformer/validate/Tokenskip_pipeline/build_llamafactory_input_numeric.py:18
↓ 1 callersFunctionseed_everything
(seed: int)
src/data/compressor_longformer/validate/Tokenskip_pipeline/compression_llmlingua2/build_llamafactory_input_numeric.py:18
↓ 1 callersFunctionselect_and_rebuild_from
Builds the compressed text from top-k kept tokens (by score), merges adjacent spans, trims whitespace. Returns: compressed_text, orig_t
src/data/compressor_longformer/eval/compare_longformer_llmlingua2/compare.py:243
↓ 1 callersFunctionselect_and_rebuild_from
返回: compressed_text, orig_tok, kept_tok, orig_chars, kept_chars, ratio_tok, ratio_char
src/data/compressor_longformer/validate/longformer_pipeline/longformer_tokenizer_compression.py:175
↓ 1 callersFunctionselect_and_rebuild_from
返回: compressed_text, orig_tok, kept_tok, orig_chars, kept_chars, ratio_tok, ratio_char
src/data/sft/longformer_pipeline/longformer_compressor.py:146
↓ 1 callersFunctionset_seed
(seed: int)
src/data/compressor_longformer/validate/eval_utils/evaluate_local.py:36
↓ 1 callersFunctionset_seed
(seed: int)
src/data/compressor_longformer/validate/eval_utils/eval_lora.py:40
↓ 1 callersFunctionset_seed
(seed: int)
src/data/compressor_longformer/train/train_longformer_v2.py:52
↓ 1 callersFunctionset_seed
(seed: int)
src/data/compressor_longformer/train/train_longformer.py:69
↓ 1 callersFunctionset_seed
(seed: int)
src/eval/qwen1p7b_eval/vllm_eval.py:16
↓ 1 callersFunctionset_seed
(seed: int)
src/eval/qwen1p7b_eval/special_token_vllm.py:55
↓ 1 callersFunctionset_seed
(seed: int)
src/eval/qwen1p7b_eval/mmlu-stem/eval_vllm.py:55
↓ 1 callersFunctionshould_drop
(think_text: str, enc, ratio: str, include_r020: bool)
src/data/sft/longformer_pipeline/query_result/Compression/clean_bad_samples.py:137
↓ 1 callersFunctionshould_retry
(exc: Exception)
src/data/compressor/dataset_preparation/API/gpt-4o.py:226
↓ 1 callersFunctionshould_retry
(exc: Exception)
src/data/compressor/dataset_preparation/API/gpt4o_ranges_labeler.py:257
↓ 1 callersFunctionshould_retry
(exc: Exception)
src/data/compressor/dataset_preparation/API/api_result_completiness/retry_empty_chunks.py:215
← previousnext →1,201–1,300 of 1,850, ranked by callers