MCPcopy Create free account

hub / github.com/bytedance/ABQ-LLM / functions

Functions14,558 in github.com/bytedance/ABQ-LLM

↓ 1 callersMethodprocess_samples_from_single_path
Abstract method that takes a filename and returns a list of dataset samples, each sample being a dict of {'text': string, 'text':
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/supervised/data.py:233
↓ 1 callersMethodprocess_samples_from_single_path
(filename)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/unsupervised/nq.py:209
↓ 1 callersMethodprocess_samples_from_single_path
Abstract method that takes a single path / filename and returns a list of dataset samples, each sample being a dict of {'text_a':
fastertransformer/3rdparty/Megatron-LM/tasks/glue/data.py:64
↓ 1 callersFunctionprocess_set
(args, input_file, output_f_cleaned, output_f_filtered)
fastertransformer/3rdparty/Megatron-LM/tools/openwebtext/cleanup_fix_dataset.py:98
↓ 1 callersFunctionprocess_single_datapath
Read in RACE files, combine, clean-up, tokenize, and convert to samples.
fastertransformer/3rdparty/Megatron-LM/tasks/race/data.py:53
↓ 1 callersFunctionprocess_task
(args, task_name, ngrams)
fastertransformer/3rdparty/Megatron-LM/tools/openwebtext/filter_ngrams.py:221
↓ 1 callersFunctionprocess_task_lambda
(args, task_file, ngrams)
fastertransformer/3rdparty/Megatron-LM/tools/openwebtext/filter_ngrams.py:207
↓ 1 callersFunctionprocess_woi_dataset
This is a function used for processing the wizard of internet (woi) dataset Expected processed format: topic \t dialogue context \t
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/preprocessing.py:142
↓ 1 callersFunctionprocess_wow_dataset
This is a function used for processing the wizard of wikipedia (wow) dataset Expected processed format: topic \t dialogue context \
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/preprocessing.py:56
↓ 1 callersFunctionprofile_model
(config, jit_xla, num_iter)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/profile_transformer_inference.py:113
↓ 1 callersFunctionprologue
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/mma_from_smem.h:388
↓ 1 callersFunctionprompt_convert
(args, prompt_config, prompt_weights)
fastertransformer/examples/pytorch/gpt/utils/nemo_ckpt_convert.py:407
↓ 1 callersFunctionprompt_convert
(args, prompt_config, prompt_weights)
fastertransformer/examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:129
↓ 1 callersFunctionprompt_selection_for_knowledge_generation
Selecting prompts for the knowledge generation
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/preprocessing.py:378
↓ 1 callersFunctionprompt_selection_for_response_generation
Selecting prompts for the response generation
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/preprocessing.py:476
↓ 1 callersFunctionprune
Pruning function for items from Conv2dProblemVector based on a Specification
fastertransformer/3rdparty/cutlass/test/unit/conv/device/conv2d_problems.h:100
↓ 1 callersMethodput
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation_server.py:37
↓ 1 callersFunctionq
(F)
fastertransformer/3rdparty/cutlass/docs/jquery.js:68
↓ 1 callersFunctionqk_hmma_dot_
fastertransformer/src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:650
↓ 1 callersFunctionqk_hmma_dot_
fastertransformer/src/fastertransformer/kernels/llama/decoder_masked_groupedquery_attention/decoder_masked_groupedquery_attention_template.hpp:650
↓ 1 callersFunctionquad_allreduce_
fastertransformer/src/fastertransformer/kernels/llama/flash_attention2/softmax.h:41
↓ 1 callersFunctionquantization_CUBLASLT_ORDER_COL32_2R_4R4
fastertransformer/src/fastertransformer/tf_op/bert/weight_quantize_op.cc:101
↓ 1 callersFunctionquantization_CUBLASLT_ORDER_COL4_4R2_8C
fastertransformer/src/fastertransformer/tf_op/bert/weight_quantize_op.cc:57
↓ 1 callersMethodraw
Obtains raw bits
fastertransformer/3rdparty/cutlass/include/cutlass/tfloat32.h:150
↓ 1 callersMethodraw
Obtains raw bits
fastertransformer/3rdparty/cutlass/include/cutlass/bfloat16.h:165
↓ 1 callersFunctionread_config
(gin_file)
fastertransformer/examples/tensorflow/t5/utils/jax_t5_ckpt_convert.py:211
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/extract_features.py:319
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
fastertransformer/examples/tensorflow/bert/bert-quantization/extract_features.py:319
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:168
↓ 1 callersMethodread_index
(self, path)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:137
↓ 1 callersFunctionread_layers
(filename, range)
fastertransformer/examples/pytorch/gptneox/utils/eleutherai_gpt_neox_convert.py:101
↓ 1 callersFunctionread_metadata
(tracker_filename)
fastertransformer/3rdparty/Megatron-LM/megatron/checkpointing.py:110
↓ 1 callersFunctionread_model_config
fastertransformer/examples/cpp/multi_gpu_gpt/gpt_example_utils.cc:98
↓ 1 callersFunctionread_request_config
fastertransformer/examples/cpp/multi_gpu_gpt/gpt_example_utils.cc:176
↓ 1 callersFunctionread_shard
(ckpt_dir, idx)
fastertransformer/examples/pytorch/gptj/utils/gptj_ckpt_convert.py:70
↓ 1 callersFunctionread_start_ids
fastertransformer/examples/cpp/multi_gpu_gpt/multi_gpu_gpt_async_example.cc:453
↓ 1 callersMethodread_tqdm
(self, update_frequency=10000)
algorithm/lm_eval/decontamination/archiver.py:100
↓ 1 callersMethodread_tqdm
(self)
algorithm/lm_eval/decontamination/archiver.py:155
↓ 1 callersFunctionrecursively_lint_files
Recursively lint all python files in chosen subdirectories of megatron-lm
fastertransformer/3rdparty/Megatron-LM/tools/linter.py:7
↓ 1 callersFunctionrecv_backward
(tensor_shapes, timers)
fastertransformer/3rdparty/Megatron-LM/megatron/schedules.py:517
↓ 1 callersFunctionrecv_from_prev_pipeline_rank_
Receive from previous pipeline stage and update the input buffer inplace.
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/communication.py:26
↓ 1 callersMethodreduce
See :meth:`opennmt.layers.Reducer.__call__`.
fastertransformer/examples/tensorflow/bert/utils/reducer.py:120
↓ 1 callersMethodreduce
(self, inputs)
fastertransformer/examples/tensorflow/bert/utils/reducer.py:133
↓ 1 callersMethodreduce
See :meth:`opennmt.layers.Reducer.__call__`.
fastertransformer/examples/tensorflow/decoder/utils/reducer.py:120
↓ 1 callersMethodreduce
(self, inputs)
fastertransformer/examples/tensorflow/decoder/utils/reducer.py:133
↓ 1 callersMethodreduce
See :meth:`opennmt.layers.Reducer.__call__`.
fastertransformer/examples/tensorflow/common_utils/reducer.py:120
↓ 1 callersMethodreduce
(self, inputs)
fastertransformer/examples/tensorflow/common_utils/reducer.py:133
↓ 1 callersFunctionreduce_
fastertransformer/src/fastertransformer/kernels/llama/flash_attention2/softmax.h:56
↓ 1 callersMethodreduce_sequence
See :meth:`opennmt.layers.Reducer.__call__`.
fastertransformer/examples/tensorflow/bert/utils/reducer.py:125
↓ 1 callersMethodreduce_sequence
See :meth:`opennmt.layers.Reducer.__call__`.
fastertransformer/examples/tensorflow/decoder/utils/reducer.py:125
↓ 1 callersMethodreduce_sequence
See :meth:`opennmt.layers.Reducer.__call__`.
fastertransformer/examples/tensorflow/common_utils/reducer.py:125
↓ 1 callersMethodref
Returns a TensorRef pointing to the first element of the tensor.
fastertransformer/3rdparty/cutlass/include/cutlass/tensor_view.h:202
↓ 1 callersMethodref
Returns a TensorRef pointing to the first element of the tensor.
fastertransformer/3rdparty/cutlass/include/cutlass/tensor_view_planar_complex.h:193
↓ 1 callersMethodref_moe_fc
(self, activations, expert_for_row, weights, scales, biases, activation_str)
fastertransformer/tests/moe/th_moe_unit_tests.py:131
↓ 1 callersMethodreference
Returns a tensor reference to the shared memory buffer
fastertransformer/3rdparty/cutlass/examples/43_dual_gemm/threadblock/dual_epilogue.h:177
↓ 1 callersFunctionregex_match
Test if a regex pattern is contained within a text.
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/unsupervised/qa_utils.py:142
↓ 1 callersMethodregister_contaminant_cpp
(self, dirt_string)
algorithm/lm_eval/decontamination/janitor.py:192
↓ 1 callersMethodregister_contaminant_python
(self, dirt_string)
algorithm/lm_eval/decontamination/janitor.py:210
↓ 1 callersMethodregister_scales_and_zeros
(self)
algorithm/quantize/quantizer.py:181
↓ 1 callersFunctionrel_multihead_attn
Multi-head attention with relative positional encoding.
fastertransformer/examples/tensorflow/xlnet/modeling.py:293
↓ 1 callersFunctionrel_shift
perform relative shift to form the relative attention score.
fastertransformer/examples/tensorflow/xlnet/modeling.py:179
↓ 1 callersFunctionrelative_positional_encoding
create relative positional encoding.
fastertransformer/examples/tensorflow/xlnet/modeling.py:221
↓ 1 callersMethodrelease
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/dist_signal_handler.py:75
↓ 1 callersFunctionremove_articles
(text)
algorithm/lm_eval/tasks/qasper.py:49
↓ 1 callersFunctionremove_articles
(text)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/unsupervised/qa_utils.py:160
↓ 1 callersFunctionremove_articles
(text)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/squad_evaluate-v1.1.py:27
↓ 1 callersFunctionremove_articles
(text)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/squad_evaluate_v1_1.py:27
↓ 1 callersFunctionremove_punc
(text)
algorithm/lm_eval/tasks/qasper.py:55
↓ 1 callersFunctionremove_punc
(text)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/unsupervised/qa_utils.py:166
↓ 1 callersFunctionremove_punc
(text)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/squad_evaluate-v1.1.py:33
↓ 1 callersFunctionremove_punc
(text)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/squad_evaluate_v1_1.py:33
↓ 1 callersMethodremove_right_units
(self, string)
algorithm/lm_eval/tasks/hendrycks_math.py:192
↓ 1 callersFunctionreorder_qkv_weight_or_bias
Reorder the qkv weight to use at FT. Note that the shape of the fused QKV weights in HF is different from the shape that FT requires.
fastertransformer/examples/pytorch/gpt/utils/huggingface_bloom_convert.py:163
↓ 1 callersMethodreorder_tensor_B
Reorder tensor_B for interleaved layout :param tensor_B: input tensor B :type tensor_B: numpy.ndarray :param problem
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/gemm_operation.py:199
↓ 1 callersMethodreorder_tensor_B
Reorder tensor_B for interleaved layout :param tensor_B: input tensor B :type tensor_B: numpy.ndarray :param problem
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/conv2d_operation.py:131
↓ 1 callersFunctionreport_memory
Simple GPU memory report.
fastertransformer/3rdparty/Megatron-LM/megatron/utils.py:93
↓ 1 callersMethodreset
Deletes the managed object and resets capacity to zero
fastertransformer/3rdparty/cutlass/tools/util/include/cutlass/util/device_memory.h:223
↓ 1 callersMethodreset
Reset timer.
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:219
↓ 1 callersMethodreset
(self)
fastertransformer/examples/pytorch/gpt/utils/profiler.py:25
↓ 1 callersMethodreset_parameters
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/model/fused_layer_norm.py:97
↓ 1 callersMethodreset_parameters
(self)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:115
↓ 1 callersMethodreset_parameters
(self)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:186
↓ 1 callersMethodreset_parameters
(self)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/linear_activation.py:75
↓ 1 callersMethodreset_parameters
(self)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/linear_activation.py:126
↓ 1 callersFunctionreshape
(config, name, array)
fastertransformer/examples/pytorch/t5/utils/nemo_t5_ia3.py:178
↓ 1 callersFunctionreshape_1d
(matrix, m)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/sparse_masklib.py:13
↓ 1 callersFunctionreshape_key_cache
fastertransformer/src/fastertransformer/kernels/decoder_masked_multihead_attention_fp8_test.cc:94
↓ 1 callersFunctionreshard
(x, old_shape)
fastertransformer/examples/pytorch/gptj/utils/gptj_ckpt_convert.py:14
↓ 1 callersMethodresize
Changes the size of the logical tensor. Only allocates memory if new capacity exceeds reserved capacity. To force allocation, call reset().
fastertransformer/3rdparty/cutlass/tools/util/include/cutlass/util/host_tensor_planar_complex.h:205
↓ 1 callersMethodresize
Changes the size of the view without affecting pointer or layout
fastertransformer/3rdparty/cutlass/include/cutlass/tensor_view_planar_complex.h:167
↓ 1 callersMethodrestore_pruned_weights
Call this method to disable sparsity and restore all weights. This will only work if init(...) was called with allow_recompute=True.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/asp.py:176
↓ 1 callersFunctionretrieval_loss
(model, dataloader)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/supervised/eval_utils.py:138
↓ 1 callersMethodreturnStream
fastertransformer/src/fastertransformer/utils/allocator.h:313
↓ 1 callersFunctionroot_two<double>
fastertransformer/3rdparty/cutlass/include/cutlass/constants.h:252
↓ 1 callersFunctionroot_two<float>
fastertransformer/3rdparty/cutlass/include/cutlass/constants.h:476
↓ 1 callersMethodrotate
fastertransformer/3rdparty/cutlass/include/cutlass/quaternion.h:235
↓ 1 callersMethodrouge
Returns `t5` style ROUGE scores. See the related implementation: https://github.com/google-research/text-to-text-transfer-transformer
algorithm/lm_eval/tasks/truthfulqa.py:392
↓ 1 callersFunctionround_ste
Implement Straight-Through Estimator for rounding operation.
algorithm/quantize/quantizer.py:29
↓ 1 callersMethodrun
(self, mode, problem_size, batch_count=1, alpha=1.0, beta=0.0)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/test/gemm_testbed.py:371
↓ 1 callersMethodrun
Executes one test
fastertransformer/3rdparty/cutlass/test/unit/gemm/device/testbed_gemm_with_reduction.h:386
← previousnext →3,401–3,500 of 14,558, ranked by callers