MCPcopy Create free account

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

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

↓ 1 callersFunctiongather_indexes
Gathers the vectors at the specific positions over a minibatch.
fastertransformer/examples/tensorflow/bert/bert-quantization/run_pretraining.py:396
↓ 1 callersFunctiongather_split_1d_tensor
Opposite of above function, gather values from model parallel ranks.
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/random.py:88
↓ 1 callersFunctiongather_tree
(step_ids, parent_ids, max_sequence_lengths, end_token)
fastertransformer/examples/pytorch/decoding/utils/decoding.py:155
↓ 1 callersFunctiongcd
fastertransformer/3rdparty/cutlass/include/cutlass/fast_math.h:155
↓ 1 callersFunctiongelu_impl
OpenAI's gelu implementation.
fastertransformer/3rdparty/Megatron-LM/megatron/model/utils.py:56
↓ 1 callersFunctiongenerate
Given prompts and input parameters, run inference and return: tokens: prompts plus the generated tokens. lengths: length of the prompt +
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/api.py:69
↓ 1 callersFunctiongenerate_gpt_config
(args)
fastertransformer/examples/pytorch/gpt/utils/generate_gpt_config.py:18
↓ 1 callersFunctiongenerate_gpt_config
(args)
fastertransformer/examples/pytorch/gptj/utils/generate_gptj_config.py:18
↓ 1 callersMethodgenerate_inputs
(self, num_rows, active_rows, hidden_size, num_experts, dtype, quant_type)
fastertransformer/tests/moe/th_moe_unit_tests.py:293
↓ 1 callersMethodgenerate_pad_mask
Generate a pad mask tensor. # Args. input_lengths: (batch_size * beam_width,), input lengths memory_length: the leng
fastertransformer/examples/pytorch/gpt/utils/gpt_decoder.py:979
↓ 1 callersMethodgenerate_query_vectors
(self, qa_data, split)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/evaluate_utils.py:84
↓ 1 callersFunctiongenerate_samples_by_calling_api
Generate outputs by calling
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/prompt.py:89
↓ 1 callersFunctiongenerate_samples_by_prompting_input_from_file
Prompt a pretrained language model to generate knowledge/response
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/prompt.py:169
↓ 1 callersFunctiongenerate_swin_igemm_config
fastertransformer/src/fastertransformer/utils/gemm_test/swin_igemm_func.cc:166
↓ 1 callersFunctiongenerate_tokens_probs_and_return_on_first_stage
Main token generation function. Arguments: model: no interleaving is supported. tokens: prompt tokens extended to be of size [b, m
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/generation.py:94
↓ 1 callersMethodgenerate_weights
(self, hidden_size, inter_size, num_experts, dtype, quant_type)
fastertransformer/tests/moe/th_moe_unit_tests.py:308
↓ 1 callersFunctionget
Returns a pointer to the vector starting at the current coordinate
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_dgrad_output_gradient_tile_access_iterator_analytic.h:301
↓ 1 callersMethodget
Returns a pointer
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_pitch_linear.h:374
↓ 1 callersMethodget
Returns a pointer
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_triangular_matrix.h:827
↓ 1 callersMethodget
Returns a pointer
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_2dthreadtile.h:773
↓ 1 callersMethodget
Returns a pointer
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_iterator_pitch_linear.h:406
↓ 1 callersMethodget
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/microbatches.py:61
↓ 1 callersFunctiongetAMax
fastertransformer/tests/unittests/fp8_gemm_test/worker.cpp:55
↓ 1 callersMethodgetCubinKernels
fastertransformer/3rdparty/fp8_qgmma_1x1/sharedCubinLoader.h:147
↓ 1 callersFunctiongetCusparseComputeType
fastertransformer/src/fastertransformer/utils/gemm.cc:1098
↓ 1 callersFunctiongetDefaultPenaltyValue
fastertransformer/src/fastertransformer/kernels/penalty_types.h:32
↓ 1 callersFunctiongetDeviceDomain
fastertransformer/src/fastertransformer/utils/nvtx_utils.cc:54
↓ 1 callersFunctiongetFieldCollectionType
fastertransformer/src/fastertransformer/tensorrt_plugin/vit/ViTPlugin.cpp:404
↓ 1 callersFunctiongetFieldCollectionTypeINT8
fastertransformer/src/fastertransformer/tensorrt_plugin/vit/ViTINT8Plugin.cpp:419
↓ 1 callersMethodgetFusedINT8QKVType
fastertransformer/src/fastertransformer/utils/cublasINT8MMWrapper.cc:437
↓ 1 callersFunctiongetInput
(input_file, batch_size, i)
fastertransformer/examples/tensorflow/xlnet/runData.py:39
↓ 1 callersFunctiongetJson
(json_file)
fastertransformer/examples/tensorflow/xlnet/runData.py:55
↓ 1 callersFunctiongetLayoutDetailsForTransform
fastertransformer/src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:115
↓ 1 callersFunctiongetMpiDtype
fastertransformer/src/fastertransformer/utils/mpi_utils.cc:23
↓ 1 callersMethodgetPipelineParallelRank
fastertransformer/src/fastertransformer/models/gptj/GptJ.cc:1213
↓ 1 callersMethodgetPipelineParallelSize
fastertransformer/src/fastertransformer/models/gptj/GptJ.cc:1219
↓ 1 callersFunctiongetScope
fastertransformer/src/fastertransformer/utils/nvtx_utils.cc:25
↓ 1 callersFunctiongetT5DecodingPlugin
(arg)
fastertransformer/examples/tensorrt/t5/testT5Plugin.py:90
↓ 1 callersFunctiongetT5EncoderPlugin
(arg)
fastertransformer/examples/tensorrt/t5/testT5Plugin.py:70
↓ 1 callersMethodgetTensorParallelRank
fastertransformer/src/fastertransformer/models/gptj/GptJ.cc:1225
↓ 1 callersMethodgetWeightPtrs
fastertransformer/src/fastertransformer/models/xlnet/XlnetLayerWeight.h:96
↓ 1 callersMethodgetWeightSizes
fastertransformer/src/fastertransformer/models/xlnet/XlnetLayerWeight.h:101
↓ 1 callersFunctionget_a_and_b_segments
Divide sample into a and b segments.
fastertransformer/3rdparty/Megatron-LM/megatron/data/dataset_utils.py:89
↓ 1 callersFunctionget_abq_parameters
(model, use_shift=True)
algorithm/quantize/utils.py:44
↓ 1 callersFunctionget_act_scales
(model, dataloader, num_samples=128)
algorithm/generate_act_scale_shift.py:39
↓ 1 callersFunctionget_act_seq_len
(examples, tokenizer, max_seq_length, doc_stride, max_query_length)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/run_squad_wrap.py:69
↓ 1 callersFunctionget_act_shifts
(model, dataloader, num_samples=128)
algorithm/generate_act_scale_shift.py:73
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
fastertransformer/examples/tensorflow/bert/tensorflow_bert/my_modeling.py:286
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/modeling.py:280
↓ 1 callersFunctionget_activation
Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns:
fastertransformer/examples/tensorflow/bert/bert-quantization/modeling.py:296
↓ 1 callersMethodget_all_encoder_layers
(self)
fastertransformer/examples/tensorflow/bert/bert-quantization/modeling.py:262
↓ 1 callersFunctionget_answer
(doc_tokens, tokens_for_postprocessing, start_logits, end_logits, args)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/inference.py:137
↓ 1 callersFunctionget_answers
(examples, features, results, args)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:443
↓ 1 callersMethodget_answers
(cls, qa)
algorithm/lm_eval/tasks/drop.py:71
↓ 1 callersMethodget_answers
(cls, doc, turn_id)
algorithm/lm_eval/tasks/coqa.py:73
↓ 1 callersFunctionget_args
()
fastertransformer/3rdparty/Megatron-LM/tools/preprocess_data.py:93
↓ 1 callersFunctionget_args
()
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/preprocessing.py:25
↓ 1 callersFunctionget_args
()
fastertransformer/examples/pytorch/gpt/bloom_lambada.py:118
↓ 1 callersMethodget_argument
(self, visitor_args, kwargs)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/parser.py:104
↓ 1 callersMethodget_arguments
(self)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/gemm_operation.py:238
↓ 1 callersMethodget_arguments
(self)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/gemm_operation.py:447
↓ 1 callersMethodget_arguments
(self, tree, nid, kwargs)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/parser.py:521
↓ 1 callersMethodget_arguments
(self, semaphore)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/conv2d_operation.py:176
↓ 1 callersMethodget_arguments
(self)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/reduction_operation.py:113
↓ 1 callersFunctionget_batch
Build the batch.
fastertransformer/3rdparty/Megatron-LM/pretrain_bert.py:50
↓ 1 callersFunctionget_batch
Build the batch.
fastertransformer/3rdparty/Megatron-LM/pretrain_t5.py:84
↓ 1 callersFunctionget_batch
Generate a batch
fastertransformer/3rdparty/Megatron-LM/pretrain_gpt.py:44
↓ 1 callersFunctionget_batch
Build the batch.
fastertransformer/3rdparty/Megatron-LM/pretrain_vit.py:39
↓ 1 callersMethodget_batch_per_block
(sq, sk, b, np)
fastertransformer/3rdparty/Megatron-LM/megatron/model/fused_softmax.py:222
↓ 1 callersMethodget_batch_stride
(self, problem_size)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/parser.py:259
↓ 1 callersMethodget_batch_stride
(self, problem_size)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/parser.py:283
↓ 1 callersFunctionget_bias_dropout_add
(training)
fastertransformer/3rdparty/Megatron-LM/megatron/model/transformer.py:378
↓ 1 callersFunctionget_block_samples_mapping
Get samples mapping for a dataset over fixed size blocks. This function also requires a dataset of the titles for the source documents since their
fastertransformer/3rdparty/Megatron-LM/megatron/data/realm_dataset_utils.py:110
↓ 1 callersFunctionget_c4_new
(nsamples, seed, seqlen, model)
algorithm/datautils.py:138
↓ 1 callersMethodget_cache_hook
(self)
algorithm/lm_eval/base.py:839
↓ 1 callersFunctionget_candidate_tiles
fastertransformer/src/fastertransformer/kernels/cutlass_kernels/cutlass_heuristic.cc:93
↓ 1 callersMethodget_cmd_line_argument
fastertransformer/3rdparty/cutlass/tools/util/include/cutlass/util/command_line.h:124
↓ 1 callersFunctionget_conv2d_arguments
(epilogue_functor)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/c_types.py:204
↓ 1 callersFunctionget_cta_shape_for_config
fastertransformer/src/fastertransformer/kernels/cutlass_kernels/cutlass_heuristic.cc:36
↓ 1 callersFunctionget_cudnn_mathtype
Maps CUTLASS math OpcodeClassID and MathOperationID to cuDNN math_type
fastertransformer/3rdparty/cutlass/tools/profiler/src/cudnn_helpers.cpp:178
↓ 1 callersFunctionget_current_global_batch_size
()
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:48
↓ 1 callersMethodget_current_global_batch_size
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/microbatches.py:64
↓ 1 callersFunctionget_custom_getter
(compute_type)
fastertransformer/examples/tensorflow/bert/bert-quantization/gpu_environment.py:35
↓ 1 callersFunctionget_data_parallel_rank
Return my rank for the data parallel group.
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/initialize.py:497
↓ 1 callersFunctionget_data_parallel_world_size
Return world size for the data parallel group.
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/initialize.py:492
↓ 1 callersFunctionget_database
Get the database by topics
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/preprocessing.py:257
↓ 1 callersFunctionget_detokenizer
(path)
fastertransformer/3rdparty/Megatron-LM/tasks/zeroshot_gpt/detokenizer.py:77
↓ 1 callersMethodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:123
↓ 1 callersFunctionget_device
(local_rank=None)
fastertransformer/3rdparty/Megatron-LM/megatron/dist_signal_handler.py:14
↓ 1 callersFunctionget_device_count
()
fastertransformer/examples/pytorch/gpt/utils/comm.py:27
↓ 1 callersMethodget_device_workspace_size
(self, arguments: Conv2dArguments)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/conv2d_operation.py:309
↓ 1 callersMethodget_doc_idx
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:522
↓ 1 callersMethodget_embedding_output
Gets output of the embedding lookup (i.e., input to the transformer). Returns: float Tensor of shape [batch_size, seq_length, hidden_size]
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/modeling.py:249
↓ 1 callersMethodget_embedding_table
(self)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/modeling.py:260
↓ 1 callersMethodget_embedding_table
(self)
fastertransformer/examples/tensorflow/bert/bert-quantization/modeling.py:276
↓ 1 callersMethodget_epilogue_node
(self, visitors)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/parser.py:99
↓ 1 callersMethodget_evidence_dataset
(self)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/evaluate_utils.py:64
↓ 1 callersMethodget_evidence_embedding
(self)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/evaluate_utils.py:60
↓ 1 callersFunctionget_extra_workspace_size
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/kernel/gemm_with_k_reduction.h:416
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_squad.py:927
← previousnext →2,801–2,900 of 14,558, ranked by callers