MCPcopy Create free account

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

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

↓ 1 callersFunction_tokenize_prompts_and_batch
Given a set of prompts and number of tokens to generate: - tokenize prompts - set the sequence length to be the max of length of promp
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/tokenization.py:95
↓ 1 callersFunction_train
Train the model.
fastertransformer/3rdparty/Megatron-LM/tasks/finetune_utils.py:157
↓ 1 callersFunction_train
Train the model.
fastertransformer/3rdparty/Megatron-LM/tasks/vision/finetune_utils.py:135
↓ 1 callersMethod_translate_batch_with_strategy
Translate a batch of sentences step by step using cache. Args: batch: a batch of sentences, yield by data iterator. s
fastertransformer/examples/pytorch/decoding/utils/translator.py:567
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_classifier.py:557
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/extract_features.py:302
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fastertransformer/examples/tensorflow/bert/bert-quantization/extract_features.py:302
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:316
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fastertransformer/examples/tensorflow/xlnet/convertInput.py:409
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:217
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:151
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:303
↓ 1 callersMethod_unscale_main_grads_and_check_for_nan
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/optimizer/optimizer.py:341
↓ 1 callersFunction_update_config_from_file
(config, cfg_file)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/config.py:241
↓ 1 callersFunction_update_tokenizer_config
(tokenizer_config: typing.Dict, unpacked_checkpoints_dir)
fastertransformer/examples/pytorch/gpt/utils/nemo_ckpt_convert.py:448
↓ 1 callersFunction_update_tokenizer_config
(tokenizer_config: typing.Dict, unpacked_checkpoints_dir)
fastertransformer/examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:1144
↓ 1 callersFunction_vocab_size_with_padding
Pad vocab size so it is divisible by model parallel size and still having GPU friendly size.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/tokenizer.py:55
↓ 1 callersMethod_white_space_fix
(self, text)
algorithm/lm_eval/tasks/drop.py:255
↓ 1 callersFunction_with_pipelining_forward_step
No interleaving is supported.
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/forward_step.py:157
↓ 1 callersFunctionaL
()
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 1 callersFunctionabq_state_dict
(model, destination=None, prefix='', keep_vars=False)
algorithm/quantize/utils.py:52
↓ 1 callersFunctionabqllm
( lm, args, dataloader, act_scales, act_shifts, logger=None, )
algorithm/quantize/abq_llm.py:54
↓ 1 callersFunctionabs_attn_core
Core absolute positional attention operations.
fastertransformer/examples/tensorflow/xlnet/modeling.py:122
↓ 1 callersFunctionaccimage_loader
(path: str)
fastertransformer/3rdparty/Megatron-LM/megatron/data/image_folder.py:245
↓ 1 callersFunctionaccimage_loader
(path)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/data/cached_image_folder.py:192
↓ 1 callersFunctionaccuracy
Computes the accuracy over the k top predictions for the specified values of k
fastertransformer/examples/pytorch/vit/ViT-quantization/eval_engine.py:78
↓ 1 callersFunctionaccuracy
(out, labels)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:233
↓ 1 callersFunctionaccuracy_func_provider
Provide function that calculates accuracies.
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/supervised/eval_utils.py:91
↓ 1 callersFunctionaccuracy_score
(pred, ref)
fastertransformer/examples/pytorch/t5/mnli_task_example.py:82
↓ 1 callersFunctionaccuracy_score
(pred, ref)
fastertransformer/examples/pytorch/t5/xnli_task_example.py:97
↓ 1 callersMethodactivation
Returns Actviation Tensor
fastertransformer/3rdparty/cutlass/tools/profiler/src/cudnn_helpers.h:556
↓ 1 callersMethodadd_additional_special_tokens
(self, tokens_list)
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/tokenizer.py:170
↓ 1 callersFunctionadd_bias_and_interleave_int4s_inplace
fastertransformer/src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:372
↓ 1 callersFunctionadd_bias_and_interleave_int8s_inplace
fastertransformer/src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:350
↓ 1 callersMethodadd_block_data
Add data for set of blocks :param row_id: 1D array of unique int ids for the blocks :param block_embeds: 2D array of embeddin
fastertransformer/3rdparty/Megatron-LM/megatron/data/realm_index.py:61
↓ 1 callersMethodadd_embed_data
Add the embedding of each block to the underlying FAISS index
fastertransformer/3rdparty/Megatron-LM/megatron/data/realm_index.py:186
↓ 1 callersFunctionadd_forward_hooks
(layer_gpu_map)
algorithm/parallel_utils.py:162
↓ 1 callersMethodadd_item
(self, tensor)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:284
↓ 1 callersFunctionadd_new_module
(name, original_module, added_module)
algorithm/quantize/abq_llm.py:41
↓ 1 callersMethodadd_param_to_skip_allreduce
(self, param_name)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:814
↓ 1 callersFunctionadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_pitch_linear.h:138
↓ 1 callersFunctionadd_pointer_offset
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_triangular_matrix.h:358
↓ 1 callersFunctionadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_2dthreadtile.h:309
↓ 1 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_pitch_linear.h:368
↓ 1 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_scale_bias_vector_access_iterator.h:123
↓ 1 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_triangular_matrix.h:814
↓ 1 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_2dthreadtile.h:760
↓ 1 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_iterator_pitch_linear.h:389
↓ 1 callersFunctionadd_tile_offset
Advances an iterator along logical dimensions of matrix in units of whole threadblock tiles
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/predicated_scale_bias_vector_access_iterator.h:231
↓ 1 callersFunctionadd_tile_offset
Advances an iterator along logical dimensions of matrix in units of whole warp tiles
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/predicated_scale_bias_vector_iterator.h:168
↓ 1 callersFunctionadd_tile_offset
Advances an iterator along logical dimensions of matrix in units of whole tiles
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_vector_access_iterator.h:211
↓ 1 callersMethodadd_tile_offset
Adds a tile offset
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_pitch_linear.h:380
↓ 1 callersMethodadd_tile_offset
Advances an iterator along logical dimensions of matrix in units of whole tiles
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_triangular_matrix.h:821
↓ 1 callersMethodadd_tile_offset
Advances an iterator along logical dimensions of matrix in units of whole tiles
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_2dthreadtile.h:767
↓ 1 callersMethodadd_tile_offset
Adds a tile offset
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_iterator_pitch_linear.h:395
↓ 1 callersFunctionadvance
Advances the iterator along the advance dimension
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/warp/mma_tensor_op_tile_access_iterator.h:242
↓ 1 callersFunctionadvance
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_dgrad_output_gradient_tile_access_iterator_analytic.h:239
↓ 1 callersMethodadvance
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/vector_iterator.h:135
↓ 1 callersMethodadvance
fastertransformer/src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/kernel/moe_problem_visitor.h:149
↓ 1 callersMethodadvance_to_block
Moves pointers to what we should process Returns "false" if there is no work to do
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/kernel_forward.h:137
↓ 1 callersFunctionaj
()
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 1 callersFunctional
(e)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 1 callersMethodalignment
(self)
fastertransformer/3rdparty/cutlass/tools/library/scripts/rt.py:169
↓ 1 callersMethodalignment
(self)
fastertransformer/3rdparty/cutlass/tools/library/scripts/rt.py:245
↓ 1 callersMethodalignment
(self)
fastertransformer/3rdparty/cutlass/tools/library/scripts/rt.py:376
↓ 1 callersFunctionall_gather_item
(item, dtype, group=None, async_op=False, local_rank=None)
fastertransformer/3rdparty/Megatron-LM/megatron/dist_signal_handler.py:28
↓ 1 callersMethodallocateAndExchangePeerAccessPointer
fastertransformer/src/fastertransformer/utils/custom_ar_comm.cc:58
↓ 1 callersFunctionallocate_mem_buff
Allocate a memory buffer.
fastertransformer/3rdparty/Megatron-LM/megatron/memory.py:24
↓ 1 callersMethodallreduce_gradients
Reduce gradients across data parallel ranks.
fastertransformer/3rdparty/Megatron-LM/megatron/model/distributed.py:195
↓ 1 callersFunctionalmostEqual
fastertransformer/tests/unittests/unittest_utils.h:66
↓ 1 callersFunctionalmostEqual
fastertransformer/tests/unittests/gtest_utils.h:22
↓ 1 callersFunctionampscaler_get_grad_norm
(parameters, norm_type: float = 2.0)
algorithm/utils.py:26
↓ 1 callersFunctionampscaler_get_grad_norm
(parameters, norm_type: float = 2.0)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/utils.py:179
↓ 1 callersMethodappend_context
(cls, ctx, partial_ctx)
algorithm/lm_eval/tasks/winogrande.py:101
↓ 1 callersMethodappend_context
(cls, ctx, partial_ctx)
algorithm/lm_eval/tasks/wsc273.py:140
↓ 1 callersMethodapply_act
(self, inp, act_str)
fastertransformer/tests/gemm_dequantize/th_gemm_dequantize.py:53
↓ 1 callersMethodapply_act
(self, inp, act_str)
fastertransformer/tests/gemm_dequantize/single_test.py:56
↓ 1 callersFunctionapply_mask
fastertransformer/src/fastertransformer/kernels/llama/flash_attention2/softmax.h:102
↓ 1 callersFunctionapply_mask_causal
fastertransformer/src/fastertransformer/kernels/llama/flash_attention2/softmax.h:126
↓ 1 callersMethodas_array
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/data/realm_dataset_utils.py:88
↓ 1 callersMethodas_tuple
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/data/realm_dataset_utils.py:91
↓ 1 callersMethodassert_all_tensors_reachable
Checks that all the tensors in the graph are reachable from outputs.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/modeling_test.py:162
↓ 1 callersFunctionassert_rank
(tensor, expected_rank, name=None)
fastertransformer/examples/tensorflow/encoder/utils/encoder.py:183
↓ 1 callersFunctionassert_rank
(tensor, expected_rank, name=None)
fastertransformer/examples/tensorflow/bert/utils/bert.py:325
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python i
fastertransformer/examples/tensorflow/bert/tensorflow_bert/my_modeling.py:969
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python i
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/modeling.py:959
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python i
fastertransformer/examples/tensorflow/bert/bert-quantization/modeling.py:1052
↓ 1 callersFunctionassert_viewless_tensor
Assert that a tensor is not a view (i.e., its '._base' field is not set).
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/random.py:155
↓ 1 callersFunctionassign_layers_to_gpus
(layers: List[nn.Module])
algorithm/parallel_utils.py:103
↓ 1 callersMethodat
Returns a reference to the element at the logical Coord in host memory
fastertransformer/3rdparty/cutlass/tools/util/include/cutlass/util/host_tensor_planar_complex.h:393
↓ 1 callersFunctionatomicMaxFloat
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/attention_scaling_coefs_updater.h:12
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is all
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/modeling.py:558
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is all
fastertransformer/examples/tensorflow/bert/bert-quantization/modeling.py:585
↓ 1 callersFunctionattn_mask_postprocess
(attn_mask)
fastertransformer/3rdparty/Megatron-LM/megatron/model/t5_model.py:38
↓ 1 callersFunctionauto_resume_helper
(output_dir)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/utils.py:159
↓ 1 callersFunctionauto_resume_helper
(output_dir, save_master=False)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/utils_moe.py:222
↓ 1 callersFunctionaxis_to_split
(name: str)
fastertransformer/examples/pytorch/gpt/utils/huggingface_bloom_convert.py:154
↓ 1 callersFunctionaz
(e)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 1 callersFunctionbD
(bF)
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
↓ 1 callersFunctionbT
(b0,b1)
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
← previousnext →2,301–2,400 of 14,558, ranked by callers