MCPcopy Create free account

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

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

↓ 1 callersMethodrun
Executes one test
fastertransformer/3rdparty/cutlass/test/unit/gemm/device/testbed_splitk.h:99
↓ 1 callersMethodrun
Executes one test
fastertransformer/3rdparty/cutlass/test/unit/gemm/device/testbed_complex.h:139
↓ 1 callersMethodrun
Executes one test
fastertransformer/3rdparty/cutlass/test/unit/gemm/device/testbed_sparse.h:334
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/rank_2k.h:313
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/rank_k.h:290
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/trmm.h:479
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/gemm_splitk_parallel.h:337
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/gemm_batched.h:407
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/gemm.h:473
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/gemm_complex.h:428
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/gemm_array.h:429
↓ 1 callersMethodrun
Runs the kernel using initialized state.
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/symm.h:321
↓ 1 callersFunctionrunTest
(json_file, seq_len, batch_size, input_ids, input_mask, segment_ids, use_float16)
fastertransformer/examples/tensorflow/xlnet/runData.py:72
↓ 1 callersMethodrun_ft_moe
(self, input_dict, active_rows, k, activation_str)
fastertransformer/tests/moe/th_moe_unit_tests.py:341
↓ 1 callersFunctionrun_mha_fwd
fastertransformer/src/fastertransformer/kernels/llama/flash_attention2/flash_api.cpp:13
↓ 1 callersMethodrun_ref_moe
(self, input_dict, k, activation_str)
fastertransformer/tests/moe/th_moe_unit_tests.py:350
↓ 1 callersFunctionrun_swintransformer_plugin
(args, config, model, images)
fastertransformer/examples/tensorrt/swin/infer_swintransformer_plugin_int8.py:97
↓ 1 callersFunctionrun_swintransformer_plugin
(args, config, model, images)
fastertransformer/examples/tensorrt/swin/infer_swintransformer_plugin.py:109
↓ 1 callersFunctionrun_swintransformernv_op
(config, args, model, images, use_fp16)
fastertransformer/examples/pytorch/swin/infer_swintransformer_int8_op.py:204
↓ 1 callersMethodrun_tester
(self, tester)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/modeling_test.py:135
↓ 1 callersFunctionrun_torch
(model, images, mark)
fastertransformer/examples/tensorrt/vit/infer_visiontransformer_plugin.py:131
↓ 1 callersFunctionrun_torch
(model, images, mark)
fastertransformer/examples/tensorrt/vit/infer_visiontransformer_int8_plugin.py:142
↓ 1 callersFunctionrun_torch
(model, images, mark)
fastertransformer/examples/tensorrt/swin/infer_swintransformer_plugin_int8.py:141
↓ 1 callersFunctionrun_torch
(model, images, mark)
fastertransformer/examples/tensorrt/swin/infer_swintransformer_plugin.py:153
↓ 1 callersFunctionrun_torch
(model, images, mark)
fastertransformer/examples/pytorch/vit/infer_visiontransformer_int8_op.py:290
↓ 1 callersFunctionrun_trt_plugin
(plugin_loader:ViTPluginLoader, images, engine)
fastertransformer/examples/tensorrt/vit/infer_visiontransformer_plugin.py:86
↓ 1 callersFunctionrun_trt_plugin
(plugin_loader:ViTINT8PluginLoader, images, engine)
fastertransformer/examples/tensorrt/vit/infer_visiontransformer_int8_plugin.py:102
↓ 1 callersFunctionrun_vitnv_op
(args, config, model, images)
fastertransformer/examples/pytorch/vit/infer_visiontransformer_int8_op.py:221
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/file_utils.py:160
↓ 1 callersFunctions3_get
Pull a file directly from S3.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/file_utils.py:169
↓ 1 callersFunctionsample
Sample and generate a token. Note: logits has the dimension [b, v] where b is the batch size and v is the vocabulary size. If vocab
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/sampling.py:58
↓ 1 callersFunctionsave
(w, save_dir, n_inference_gpus, num_layers=28)
fastertransformer/examples/pytorch/gptj/utils/gptj_ckpt_convert.py:112
↓ 1 callersFunctionsave
(w, save_dir, n_inference_gpus, n_layers, layer_id)
fastertransformer/examples/pytorch/gptj/utils/huggingface_gptj_ckpt_convert.py:42
↓ 1 callersFunctionsave_dense_concat
(model_states_list, inference_tensor_para_size, factor_dense, model_key, megatron_gpt_key, np_weight_d
fastertransformer/examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:189
↓ 1 callersFunctionsave_dense_split
(model_states_list, factor_dense, model_key, megatron_gpt_key, np_weight_data_type, saved_dir, ckpt_ve
fastertransformer/examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:39
↓ 1 callersFunctionsave_experts_split
(moe_layers, num_experts, training_tensor_para_dense_size, training_tensor_para_expert_size, factor_ex
fastertransformer/examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:342
↓ 1 callersFunctionsave_model
(args, model)
fastertransformer/examples/pytorch/vit/ViT-quantization/main.py:89
↓ 1 callersFunctionsave_model
(args, model)
fastertransformer/examples/pytorch/vit/ViT-quantization/eval_engine.py:91
↓ 1 callersFunctionsave_model
(args, model)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/train.py:51
↓ 1 callersMethodsave_shard
Save the block data that was created this in this process
fastertransformer/3rdparty/Megatron-LM/megatron/data/realm_index.py:74
↓ 1 callersFunctionsave_word_list
(filename, word_list)
fastertransformer/examples/pytorch/llama/utils/word_list.py:70
↓ 1 callersFunctionsave_word_list
(filename, word_list)
fastertransformer/examples/pytorch/gpt/utils/word_list.py:70
↓ 1 callersFunctionsave_word_list
(filename, word_list)
fastertransformer/examples/pytorch/llama2/utils/word_list.py:70
↓ 1 callersFunctionscaled_quant_np
Scaled quantize x using numpy.
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/utils/utils.py:32
↓ 1 callersFunctionscatter_to_tensor_model_parallel_region
(input_)
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/mappings.py:152
↓ 1 callersFunctionscore_and_return_on_first_stage
Function for just scoring. Arguments: model: no interleaving is supported. tokens: prompt tokens extended to be of size [b, max_pr
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/generation.py:30
↓ 1 callersMethodsearch_mips_index
Get the top-k blocks by the index distance metric. :param reconstruct: if True: return a [num_queries x k x embed_dim]
fastertransformer/3rdparty/Megatron-LM/megatron/data/realm_index.py:205
↓ 1 callersFunctionsearch_word
(beam_width, vocab_size, step, logits, cum_log
fastertransformer/examples/tensorflow/decoder/utils/beam_search.py:17
↓ 1 callersMethodsegment_articles_into_sentences
(self, segmenter)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/TextSharding.py:61
↓ 1 callersFunctionselect_prompts_based_on_similarity
Select samples based on the similarity
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/preprocessing.py:337
↓ 1 callersFunctionsend_backward_recv_forward
(input_tensor_grads, tensor_shapes, timers)
fastertransformer/3rdparty/Megatron-LM/megatron/schedules.py:560
↓ 1 callersMethodsend_do_generate
()
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation_server.py:33
↓ 1 callersFunctionsend_forward
Send tensor to next rank in pipeline (forward send).
fastertransformer/3rdparty/Megatron-LM/megatron/p2p_communication.py:197
↓ 1 callersFunctionsend_forward_recv_backward
(output_tensors, tensor_shapes, timers)
fastertransformer/3rdparty/Megatron-LM/megatron/schedules.py:546
↓ 1 callersFunctionsend_to_next_pipeline_rank
Send output to the next pipeline stage.
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/communication.py:43
↓ 1 callersMethodserialize_engine
(self, engine, file_folder='./')
fastertransformer/examples/tensorrt/vit/plugin_loader_int8.py:156
↓ 1 callersFunctionserialize_h2h
fastertransformer/src/fastertransformer/models/bert_fp8/serialize.hpp:45
↓ 1 callersFunctionsetDeviceDomain
fastertransformer/src/fastertransformer/utils/nvtx_utils.cc:44
↓ 1 callersMethodsetPluginNamespace
fastertransformer/src/fastertransformer/tensorrt_plugin/wenet/DecoderPlugin.cc:290
↓ 1 callersMethodsetPluginNamespace
fastertransformer/src/fastertransformer/tensorrt_plugin/wenet/EncoderPlugin.cc:339
↓ 1 callersMethodset_batch_index
Called to set the batch index
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/cpp/include/epilogue/epilogue_visitor_generic.h:164
↓ 1 callersMethodset_batch_index
Called to set the batch index
fastertransformer/src/fastertransformer/cutlass_extensions/include/cutlass_extensions/epilogue/threadblock/epilogue_per_row_per_col_scale.h:217
↓ 1 callersFunctionset_box_corner_dhw
fastertransformer/3rdparty/fp8_qgmma_1x1/utils.h:237
↓ 1 callersFunctionset_box_size
fastertransformer/3rdparty/fp8_qgmma_1x1/utils.h:185
↓ 1 callersMethodset_cache_hook
(self, cache_hook)
algorithm/lm_eval/base.py:116
↓ 1 callersFunctionset_checkpoint_version
(value)
fastertransformer/3rdparty/Megatron-LM/megatron/checkpointing.py:33
↓ 1 callersMethodset_default_quant_desc_kernel
Args: value: An instance of :func:`QuantDescriptor <quantization.QuantDescriptor>`
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/utils.py:42
↓ 1 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
fastertransformer/examples/pytorch/gpt/utils/gpt.py:635
↓ 1 callersFunctionset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_fprop_filter_tile_access_iterator_optimized.h:202
↓ 1 callersFunctionset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_fprop_activation_tile_access_iterator_analytic.h:183
↓ 1 callersFunctionset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_fprop_filter_tile_access_iterator_analytic.h:178
↓ 1 callersFunctionset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_dgrad_output_gradient_tile_access_iterator_analytic.h:225
↓ 1 callersFunctionset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_wgrad_output_gradient_tile_access_iterator_optimized.h:180
↓ 1 callersFunctionset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv3d_wgrad_output_gradient_tile_access_iterator_optimized.h:187
↓ 1 callersFunctionset_iteration_index
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_tensor_op_sm80.h:65
↓ 1 callersMethodset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_pitch_linear.h:364
↓ 1 callersMethodset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_scale_bias_vector_access_iterator.h:119
↓ 1 callersMethodset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_triangular_matrix.h:810
↓ 1 callersMethodset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_2dthreadtile.h:756
↓ 1 callersFunctionset_logger
(verbose=False)
fastertransformer/examples/pytorch/gpt/utils/huggingface_bloom_convert.py:48
↓ 1 callersMethodset_mask
Sets the predicate mask, overriding value stored in predicate iterator
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_triangular_matrix.h:866
↓ 1 callersMethodset_mask
Sets the predicate mask, overriding value stored in predicate iterator
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_2dthreadtile.h:812
↓ 1 callersFunctionset_output_name
(layer, prefix, name, out_idx = 0)
fastertransformer/examples/tensorrt/swin/builder.py:91
↓ 1 callersFunctionset_output_name
(layer, prefix, name, out_idx = 0)
fastertransformer/examples/tensorrt/swin/builder_int8.py:92
↓ 1 callersMethodset_quant_state
(self, use_weight_quant, use_act_quant)
algorithm/quantize/abq_norm.py:50
↓ 1 callersMethodset_quant_state
(self, weight_quant: bool = False, act_quant: bool = False)
algorithm/models/int_opt_layer.py:217
↓ 1 callersMethodset_quant_state
(self, weight_quant: bool = False, act_quant: bool = False)
algorithm/models/int_llama_layer.py:183
↓ 1 callersFunctionset_quantizers
Set quantizer attributes for mod.
fastertransformer/examples/pytorch/vit/ViT-quantization/quant_utils.py:266
↓ 1 callersFunctionset_quantizers
Set quantizer attributes for mod.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/quant_utils.py:266
↓ 1 callersFunctionset_quantizers
Set quantizer attributes for mod.
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/quant_utils.py:235
↓ 1 callersFunctionset_range_c
fastertransformer/3rdparty/fp8_qgmma_1x1/utils.h:227
↓ 1 callersFunctionset_range_ndhw
fastertransformer/3rdparty/fp8_qgmma_1x1/utils.h:286
↓ 1 callersFunctionset_seed
(args)
fastertransformer/examples/pytorch/bert/run_squad.py:46
↓ 1 callersFunctionset_seed
(args)
fastertransformer/examples/pytorch/bert/run_glue.py:42
↓ 1 callersMethodset_special_tokens
Add a list of additional tokens to the encoder. The additional tokens are indexed starting from the last index of the current
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/gpt2_tokenization.py:181
↓ 1 callersFunctionset_tensor_model_parallel_rank
Set tensor model parallel rank.
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/initialize.py:293
↓ 1 callersFunctionset_tensor_model_parallel_world_size
Set the tensor model parallel size
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/initialize.py:265
↓ 1 callersFunctionset_tensor_name
(tensor, prefix, name)
fastertransformer/examples/tensorrt/swin/builder.py:88
↓ 1 callersFunctionset_tensor_name
(tensor, prefix, name)
fastertransformer/examples/tensorrt/swin/builder_int8.py:89
↓ 1 callersFunctionset_traversal_stride_im2col
fastertransformer/3rdparty/fp8_qgmma_1x1/utils.h:208
← previousnext →3,501–3,600 of 14,558, ranked by callers