MCPcopy Create free account

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

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

↓ 2 callersMethod_create_position_encoding_table
(self, max_seq_len, input_dim, dtype)
fastertransformer/examples/tensorflow/decoder/utils/position.py:62
↓ 2 callersMethod_decode_and_generate
( self, decoder_in, memory_bank, batch, src_vocabs
fastertransformer/examples/pytorch/decoding/utils/translator.py:509
↓ 2 callersMethod_do_init
(self, path, skip_warmup)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:460
↓ 2 callersMethod_encode
Creates position encodings. Args: positions: The positions to encode of shape :math:`[B, ...]`. depth: The encoding depth
fastertransformer/examples/tensorflow/bert/utils/position.py:52
↓ 2 callersMethod_encode
Creates position encodings. Args: positions: The positions to encode of shape :math:`[B, ...]`. depth: The encoding depth
fastertransformer/examples/tensorflow/decoder/utils/position.py:52
↓ 2 callersMethod_encode
Creates position encodings. Args: positions: The positions to encode of shape :math:`[B, ...]`. depth: The encoding depth
fastertransformer/examples/tensorflow/common_utils/position.py:52
↓ 2 callersMethod_extract_answer
(self, completion)
algorithm/lm_eval/tasks/gsm8k.py:85
↓ 2 callersFunction_extract_pp_weights
(model, pp_idx: int)
fastertransformer/examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:873
↓ 2 callersMethod_filter_string_matches
Returns true if all substrings appear in the haystack in order
fastertransformer/3rdparty/cutlass/tools/library/scripts/manifest.py:260
↓ 2 callersMethod_format_answers
(self, answers)
algorithm/lm_eval/tasks/truthfulqa.py:195
↓ 2 callersFunction_forward_step_helper
Single forward step. Update the allocate memory flag so only the first time the memory is allocated.
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/forward_step.py:115
↓ 2 callersFunction_fused_gemm_dq
fastertransformer/tests/gemm_dequantize/th_gemm_dequantize.cc:78
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_squad.py:1023
↓ 2 callersFunction_get_best_indexes
Get the n-best logits from a list.
fastertransformer/examples/tensorflow/bert/bert-quantization/run_squad.py:912
↓ 2 callersMethod_get_layer
(self, layer_number)
fastertransformer/3rdparty/Megatron-LM/megatron/model/transformer.py:620
↓ 2 callersMethod_get_lr
(self, t)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/lr_scheduler.py:83
↓ 2 callersMethod_get_model_and_main_params_data_float16
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/optimizer/optimizer.py:368
↓ 2 callersMethod_gold_score
(self, batch, memory_bank, src_lengths, src_vocabs, use_src_map, enc_states, batch_size, s
fastertransformer/examples/pytorch/decoding/utils/translator.py:252
↓ 2 callersFunction_is_cuda
Check if a tensor is not none and is cuda.
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/communication.py:58
↓ 2 callersFunction_kernel_make_viewless_tensor
Make a viewless tensor. View tensors have the undesirable side-affect of retaining a reference to the originally-viewed tensor, even after ma
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/random.py:101
↓ 2 callersMethod_log
(self, msg)
fastertransformer/examples/pytorch/decoding/utils/translator.py:246
↓ 2 callersMethod_loglikelihood_tokens
(self, requests, disable_tqdm=False)
algorithm/lm_eval/base.py:221
↓ 2 callersMethod_loglikelihood_tokens
( self, requests: List[Tuple[Tuple[str, str], TokenSequence, TokenSequence]], disable_
algorithm/lm_eval/models/huggingface.py:515
↓ 2 callersMethod_loglikelihood_tokens
(self, requests, disable_tqdm=False)
algorithm/models/models_utils.py:257
↓ 2 callersMethod_map
(self, func)
fastertransformer/examples/pytorch/llama/llamav1.py:112
↓ 2 callersMethod_map_int8
(self, func)
fastertransformer/examples/pytorch/gpt/utils/gpt.py:235
↓ 2 callersFunction_multi_tensor_copy_this_to_that
Use multi-tensor-applier to copy values from one list to another. We don't have a blfoat16 implementation so for now if the overflow_buf is no
fastertransformer/3rdparty/Megatron-LM/megatron/optimizer/optimizer.py:48
↓ 2 callersFunction_normalize_answer
(s)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/unsupervised/qa_utils.py:159
↓ 2 callersFunction_pil_interp
(method)
fastertransformer/examples/pytorch/vit/ViT-quantization/data.py:32
↓ 2 callersFunction_pil_interp
(method)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/data/build.py:25
↓ 2 callersFunction_prepare_saved_dir
(args)
fastertransformer/examples/pytorch/gpt/utils/nemo_ckpt_convert.py:394
↓ 2 callersMethod_preprocess_dataset
Preprocess the dataset into a list of (text, label) tuples.
algorithm/lm_eval/tasks/toxigen.py:53
↓ 2 callersMethod_process_doc
Given a `doc`, flatten it out so that each JSON blob contains exactly one question and one answer. Logic taken from the reference impl
algorithm/lm_eval/tasks/qasper.py:146
↓ 2 callersMethod_process_doc
(cls, doc)
algorithm/lm_eval/tasks/superglue.py:305
↓ 2 callersMethod_process_doc
(self, doc)
algorithm/lm_eval/tasks/hendrycks_ethics.py:314
↓ 2 callersFunction_prologue
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/mma_from_smem.h:749
↓ 2 callersMethod_report_score
(self, name, score_total, words_total)
fastertransformer/examples/pytorch/decoding/utils/translator.py:670
↓ 2 callersMethod_run_encoder
(self, batch)
fastertransformer/examples/pytorch/decoding/utils/translator.py:494
↓ 2 callersFunction_split
(src_key, dst_filename_fn)
fastertransformer/examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:798
↓ 2 callersMethod_split_chunks
(self, dirty_string, dirty_parts)
algorithm/lm_eval/decontamination/janitor.py:169
↓ 2 callersFunction_strip_spaces
(text)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_squad.py:955
↓ 2 callersFunction_strip_spaces
(text)
fastertransformer/examples/tensorflow/bert/bert-quantization/run_squad.py:844
↓ 2 callersFunction_strip_spaces
(text)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:614
↓ 2 callersFunction_warmup_mmap_file
(path)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:329
↓ 2 callersFunctiona5
(bx,bw,by)
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
↓ 2 callersFunctionaG
(bx,bw,e)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 2 callersFunctionaW
(bv,bE,bz,bD,bB,bx)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 2 callersFunctionabs
fastertransformer/3rdparty/cutlass/include/cutlass/quaternion.h:390
↓ 2 callersFunctionabsolute_value
fastertransformer/3rdparty/cutlass/include/cutlass/fast_math.h:909
↓ 2 callersFunctionacc_and_f1
(preds, labels)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_glue.py:106
↓ 2 callersFunctionaccuracy_func_provider
Provide function that calculates accuracies.
fastertransformer/3rdparty/Megatron-LM/tasks/vision/eval_utils.py:32
↓ 2 callersMethodacquireReader
engine/common/base.h:102
↓ 2 callersMethodacquireReader
algorithm/ABQ/csrc/common/base.h:102
↓ 2 callersMethodacquireReader
fastertransformer/src/fastertransformer/kernels/abqgemm/common/base.h:102
↓ 2 callersMethodacquireWriter
engine/common/base.h:88
↓ 2 callersMethodacquireWriter
algorithm/ABQ/csrc/common/base.h:88
↓ 2 callersMethodacquireWriter
fastertransformer/src/fastertransformer/kernels/abqgemm/common/base.h:88
↓ 2 callersFunctionaddScope
fastertransformer/src/fastertransformer/utils/nvtx_utils.cc:29
↓ 2 callersMethodadd_args_group
(parser: argparse.ArgumentParser)
fastertransformer/examples/pytorch/gpt/utils/bloom.py:80
↓ 2 callersFunctionadd_byte_offset_
Adds a pointer offset in units of element
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv3d_dgrad_output_gradient_tile_access_iterator_optimized.h:286
↓ 2 callersFunctionadd_byte_offset_
Adds a pointer offset in units of element
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv3d_fprop_activation_tile_access_iterator_optimized.h:281
↓ 2 callersFunctionadd_byte_offset_
Adds a pointer offset in units of element
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_fprop_activation_tile_access_iterator_optimized.h:264
↓ 2 callersMethodadd_partial
(self, attr, req, res)
algorithm/models/models_utils.py:51
↓ 2 callersFunctionadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_tensor_op.h:167
↓ 2 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator_triangular_matrix.h:723
↓ 2 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator_2dthreadtile.h:704
↓ 2 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_iterator_pitch_linear_2dthreadtile.h:243
↓ 2 callersMethodadd_tile_offset
Adds a tile offset
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_iterator_pitch_linear_2dthreadtile.h:249
↓ 2 callersMethodaggregation
:returns: {str: [metric_score] -> float} A dictionary where keys are the names of submetrics and values are functions
algorithm/lm_eval/base.py:548
↓ 2 callersFunctionai
(bv,e)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 2 callersFunctionam
(bw,bx)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 2 callersFunctionapply_act
(inp, act_str)
fastertransformer/tests/moe/th_moe_unit_tests.py:39
↓ 2 callersMethodapply_gradients
See base class.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/optimization.py:108
↓ 2 callersMethodapply_gradients
See base class.
fastertransformer/examples/tensorflow/bert/bert-quantization/optimization.py:305
↓ 2 callersFunctionapply_threshold
(preds, t)
fastertransformer/3rdparty/Megatron-LM/tasks/ensemble_classifier.py:60
↓ 2 callersFunctionas_CPU_tensor
fastertransformer/src/fastertransformer/triton_backend/triton_utils.hpp:53
↓ 2 callersMethodasdict
(self)
fastertransformer/examples/pytorch/gpt/bloom_lambada.py:88
↓ 2 callersMethodat
Returns a reference to the element at a given Coord
fastertransformer/3rdparty/cutlass/include/cutlass/tensor_ref_planar_complex.h:286
↓ 2 callersFunctionattention_layer
(from_tensor, to_tensor, attention_mask=None, num_
fastertransformer/examples/tensorflow/bert/utils/bert.py:38
↓ 2 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/my_modeling.py:567
↓ 2 callersFunctionb0
(b3,b4)
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
↓ 2 callersFunctionbB
(bE,bF,bD)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 2 callersFunctionbE
(bF)
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
↓ 2 callersFunctionbM
(bS,e,bW)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 2 callersMethodbackward
(ctx, output_grads)
fastertransformer/3rdparty/Megatron-LM/megatron/model/fused_softmax.py:104
↓ 2 callersFunctionbackward_step_helper
Helper method to run backward step with model split into chunks (run set_virtual_pipeline_model_parallel_rank() before calling backwar
fastertransformer/3rdparty/Megatron-LM/megatron/schedules.py:320
↓ 2 callersMethodbegin
fastertransformer/3rdparty/cutlass/include/cutlass/array.h:450
↓ 2 callersFunctionbh
()
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 2 callersFunctionbi
(by,bx,bA)
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
↓ 2 callersFunctionbleu_score
(pred_file, ref_file)
fastertransformer/examples/tensorflow/decoding/utils/bleu_score.py:19
↓ 2 callersFunctionbmmaSync
a matrix [8, 128] rowmajor * b matrix [128, 8] colmajor | b matrix [8, 128] rowmajor
engine/mma_any/bmma.h:210
↓ 2 callersFunctionbmmaSync
a matrix [8, 128] rowmajor * b matrix [128, 8] colmajor | b matrix [8, 128] rowmajor
algorithm/ABQ/csrc/mma_any/bmma.h:161
↓ 2 callersFunctionbmmaSync
a matrix [8, 128] rowmajor * b matrix [128, 8] colmajor | b matrix [8, 128] rowmajor
fastertransformer/src/fastertransformer/kernels/abqgemm/mma_any/bmma.h:147
↓ 2 callersFunctionbroadcast_list
Broadcast a list of values with a given type.
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/communication.py:175
↓ 2 callersFunctionbt
(e)
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
↓ 2 callersFunctionbuild_dataset
Helper function to select and build dataset.
fastertransformer/3rdparty/Megatron-LM/tasks/zeroshot_gpt/datasets.py:30
↓ 2 callersFunctionbuild_embeddings
Args: opt: the option in current environment. text_field(TextMultiField): word and feats field. for_encoder(bool): build
fastertransformer/examples/pytorch/decoding/utils/translation_model.py:34
↓ 2 callersFunctionbuild_hf_longformer
(model_dir)
fastertransformer/examples/pytorch/longformer/longformer_qa.py:51
↓ 2 callersFunctionbuild_loader
(config)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/data/build.py:44
↓ 2 callersFunctionbuild_model
(config)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/build.py:14
← previousnext →1,401–1,500 of 14,558, ranked by callers