MCPcopy Create free account

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

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

↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/optimization.py:159
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
fastertransformer/examples/tensorflow/bert/bert-quantization/optimization.py:266
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
fastertransformer/examples/tensorflow/bert/bert-quantization/optimization.py:382
↓ 1 callersMethod_find_classes
Finds the class folders in a dataset. Args: dir (string): Root directory path. Returns: tuple: (class
fastertransformer/3rdparty/Megatron-LM/megatron/data/image_folder.py:191
↓ 1 callersMethod_fix_number
(self, text)
algorithm/lm_eval/tasks/drop.py:265
↓ 1 callersFunction_get_accelerate_args
Returns the kwargs needed to apply `accelerate` in `AutoModel.from_pretrained`.
algorithm/lm_eval/models/huggingface.py:18
↓ 1 callersFunction_get_checkpoint_name
(checkpoint_dir)
fastertransformer/examples/pytorch/gpt/utils/megatron_fp8_ckpt_convert.py:361
↓ 1 callersFunction_get_checkpoint_name
(checkpoint_dir)
fastertransformer/examples/pytorch/gpt/utils/megatron_ckpt_convert.py:312
↓ 1 callersFunction_get_cuda_bare_metal_version
(cuda_dir)
fastertransformer/3rdparty/Megatron-LM/megatron/fused_kernels/__init__.py:98
↓ 1 callersFunction_get_dtype
Converts `dtype` from `str` to torch.dtype when possible.
algorithm/lm_eval/models/huggingface.py:43
↓ 1 callersFunction_get_model
(args, config_reader)
fastertransformer/examples/pytorch/gpt/lambada_task_example.py:100
↓ 1 callersFunction_get_params_for_weight_decay_optimization
Divide params into with-weight-decay and without-weight-decay groups. Layernorms and baises will have no weight decay but the rest will.
fastertransformer/3rdparty/Megatron-LM/megatron/optimizer/__init__.py:26
↓ 1 callersMethod_get_pointers
(sizes)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:352
↓ 1 callersMethod_get_position_encoding
(self)
fastertransformer/examples/pytorch/decoding/utils/ft_decoding.py:121
↓ 1 callersFunction_get_recv_buffer_dtype
Receive happens between the layers.
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/forward_step.py:95
↓ 1 callersFunction_get_special_tokens_ids
(tokenizer_config: typing.Dict)
fastertransformer/examples/pytorch/gpt/utils/nemo_ckpt_convert.py:485
↓ 1 callersFunction_get_special_tokens_ids
(tokenizer_config: typing.Dict)
fastertransformer/examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:1181
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/optimization.py:169
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
fastertransformer/examples/tensorflow/bert/bert-quantization/optimization.py:276
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
fastertransformer/examples/tensorflow/bert/bert-quantization/optimization.py:392
↓ 1 callersFunction_improve_answer_span
Returns tokenized answer spans that better match the annotated answer.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_squad.py:476
↓ 1 callersFunction_improve_answer_span
Returns tokenized answer spans that better match the annotated answer.
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:269
↓ 1 callersFunction_improve_answer_span
Returns tokenized answer spans that better match the annotated answer.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:365
↓ 1 callersFunction_init_autoresume
Set autoresume start time.
fastertransformer/3rdparty/Megatron-LM/megatron/initialize.py:197
↓ 1 callersMethod_init_cache
(self, memory_bank, decoding_max_seq_len)
fastertransformer/examples/pytorch/decoding/utils/decoding.py:384
↓ 1 callersMethod_init_respostnorm
(self)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_v2.py:447
↓ 1 callersMethod_init_respostnorm
(self)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:506
↓ 1 callersMethod_init_weights
(self)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:221
↓ 1 callersMethod_init_weights
(self)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/modeling.py:109
↓ 1 callersMethod_init_weights
(self)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:96
↓ 1 callersFunction_initialize_distributed
Initialize torch.distributed and mpu.
fastertransformer/3rdparty/Megatron-LM/megatron/initialize.py:153
↓ 1 callersMethod_initialize_model
(self, force_init=False)
fastertransformer/examples/pytorch/gpt/utils/gpt_decoder.py:466
↓ 1 callersMethod_initialize_model
(self, force_init=False)
fastertransformer/examples/pytorch/gpt/utils/gpt_decoder.py:623
↓ 1 callersFunction_inject_model_parallel_rank
Injects tensor/pipeline model parallel ranks into the filepath. Does nothing if not using model parallelism.
fastertransformer/examples/pytorch/gpt/utils/megatron_fp8_ckpt_convert.py:40
↓ 1 callersFunction_inject_model_parallel_rank
Injects tensor/pipeline model parallel ranks into the filepath. Does nothing if not using model parallelism.
fastertransformer/examples/pytorch/gpt/utils/megatron_ckpt_convert.py:40
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/bert_tokenization.py:296
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/tokenization.py:264
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
fastertransformer/examples/tensorflow/bert/bert-quantization/tokenization.py:316
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:259
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/bert_tokenization.py:406
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/tokenization.py:374
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
fastertransformer/examples/tensorflow/bert/bert-quantization/tokenization.py:426
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:367
↓ 1 callersMethod_is_correct
(self, completion, answer)
algorithm/lm_eval/tasks/gsm8k.py:94
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/bert_tokenization.py:418
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/tokenization.py:386
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
fastertransformer/examples/tensorflow/bert/bert-quantization/tokenization.py:438
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:379
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/bert_tokenization.py:394
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/tokenization.py:362
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
fastertransformer/examples/tensorflow/bert/bert-quantization/tokenization.py:414
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:355
↓ 1 callersMethod_load_image
(self, path)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/data/imagenet22k_dataset.py:24
↓ 1 callersMethod_make_param_hook
Create the all-reduce hook for backprop.
fastertransformer/3rdparty/Megatron-LM/megatron/model/distributed.py:168
↓ 1 callersMethod_map
(self, func)
fastertransformer/examples/pytorch/gpt/utils/gpt_fp8.py:126
↓ 1 callersMethod_match_numbers_if_present
(self, gold_bag, predicted_bag)
algorithm/lm_eval/tasks/drop.py:232
↓ 1 callersMethod_merge_heads
Merge heads together over the last dimension Args: x (`torch.tensor`, *required*): [batch_size * num_heads, seq_leng
algorithm/models/int_falcon_layer.py:97
↓ 1 callersMethod_model_call
inps: a torch tensor of shape [batch, sequence] the size of sequence may vary from call to call returns: a torch tensor of s
algorithm/lm_eval/base.py:159
↓ 1 callersMethod_model_call
( self, inputs: TokenSequence, labels: Optional[TokenSequence] = None )
algorithm/lm_eval/models/huggingface.py:551
↓ 1 callersMethod_model_call
inps: a torch tensor of shape [batch, sequence] the size of sequence may vary from call to call returns: a torch tensor of s
algorithm/models/models_utils.py:196
↓ 1 callersMethod_model_call
inps: a torch tensor of shape [batch, sequence] the size of sequence may vary from call to call returns: a torch tensor of sh
algorithm/models/LMClass.py:81
↓ 1 callersMethod_model_generate
(self, context, max_length, eos_token_id)
algorithm/lm_eval/base.py:155
↓ 1 callersMethod_model_generate
( self, inputs: transformers.BatchEncoding, max_tokens: int, stop: Optional[Li
algorithm/lm_eval/models/huggingface.py:388
↓ 1 callersMethod_model_generate
(self, context, max_length, eos_token_id)
algorithm/models/models_utils.py:192
↓ 1 callersFunction_no_pipelining_forward_step
If recv_buffer is none, we will allocate one on the fly.
fastertransformer/3rdparty/Megatron-LM/megatron/text_generation/forward_step.py:139
↓ 1 callersMethod_normalize
(self, answer)
algorithm/lm_eval/tasks/drop.py:271
↓ 1 callersFunction_num_epochs
Based on number of samples and sequence lenght, calculate how many epochs will be needed.
fastertransformer/3rdparty/Megatron-LM/megatron/data/gpt_dataset.py:331
↓ 1 callersFunction_num_tokens
Total number of tokens in the dataset.
fastertransformer/3rdparty/Megatron-LM/megatron/data/gpt_dataset.py:326
↓ 1 callersFunction_parse_args
Parse entire arguments.
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:106
↓ 1 callersMethod_prec_recall_f1_score
Compute precision, recall and f1 given a set of gold and prediction items. :param pred_items: iterable of predicted values :p
fastertransformer/3rdparty/Megatron-LM/tasks/msdp/metrics.py:35
↓ 1 callersFunction_print_args
Print arguments.
fastertransformer/3rdparty/Megatron-LM/megatron/arguments.py:276
↓ 1 callersFunction_process_by_model_shard
(model_config, model_file, dtype: torch.dtype, tp_size: int, save_dir: Path)
fastertransformer/examples/pytorch/gpt/utils/huggingface_bloom_convert.py:420
↓ 1 callersMethod_question2id
Returns an identifier for the question in the given document.
algorithm/lm_eval/tasks/mc_taco.py:104
↓ 1 callersFunction_read_config_ini
(args, checkpoint_path)
fastertransformer/examples/pytorch/gpt/lambada_task_example.py:85
↓ 1 callersMethod_remove_articles
(self, text)
algorithm/lm_eval/tasks/drop.py:252
↓ 1 callersMethod_remove_prefixes
(self, aliases)
algorithm/lm_eval/tasks/triviaqa.py:66
↓ 1 callersMethod_remove_prefixes
(self, aliases)
algorithm/lm_eval/tasks/webqs.py:71
↓ 1 callersMethod_remove_punc
(self, text)
algorithm/lm_eval/tasks/drop.py:258
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/bert_tokenization.py:263
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/tokenization.py:231
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
fastertransformer/examples/tensorflow/bert/bert-quantization/tokenization.py:283
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:224
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/bert_tokenization.py:252
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/tokenization.py:220
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
fastertransformer/examples/tensorflow/bert/bert-quantization/tokenization.py:272
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:213
↓ 1 callersFunction_scaled_fake_quantize
(inputs, quant_min, quant_max)
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/ops/fake_quantize.py:90
↓ 1 callersMethod_score_target
(self, batch, memory_bank, src_lengths, src_vocabs, src_map)
fastertransformer/examples/pytorch/decoding/utils/translator.py:654
↓ 1 callersFunction_set_adlr_autoresume
Initialize ADLR autoresume.
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:161
↓ 1 callersFunction_set_jit_fusion_options
Set PyTorch JIT layer fusion options.
fastertransformer/3rdparty/Megatron-LM/megatron/initialize.py:233
↓ 1 callersFunction_set_random_seed
Set random seed for reproducability.
fastertransformer/3rdparty/Megatron-LM/megatron/initialize.py:206
↓ 1 callersFunction_set_signal_handler
()
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:84
↓ 1 callersFunction_set_tensorboard_writer
Set tensorboard writer.
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:141
↓ 1 callersFunction_set_timers
Initialize timers.
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:179
↓ 1 callersFunction_squad_metric
(predictions, references)
algorithm/lm_eval/tasks/squad.py:35
↓ 1 callersMethod_tokenize
(self, text)
algorithm/lm_eval/tasks/drop.py:268
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/bert_tokenization.py:283
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/tokenization.py:251
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
fastertransformer/examples/tensorflow/bert/bert-quantization/tokenization.py:303
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:246
← previousnext →2,201–2,300 of 14,558, ranked by callers