MCPcopy Create free account

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

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

↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
fastertransformer/examples/tensorflow/bert/bert-quantization/run_squad.py:816
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:586
↓ 1 callersFunctionget_from_cache
Given a URL, look for the corresponding dataset in the local cache. If it's not there, download it. Then return the path to the cached file.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/file_utils.py:188
↓ 1 callersFunctionget_frozen_tftrt_model
(bert_config, shape, use_one_hot_embeddings, init_checkpoint)
fastertransformer/examples/tensorflow/bert/bert-quantization/run_squad.py:349
↓ 1 callersFunctionget_gemm_arguments
(epilogue_functor)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/c_types.py:66
↓ 1 callersFunctionget_gemm_grouped_arguments
(epilogue_functor)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/c_types.py:106
↓ 1 callersFunctionget_grad_norm
(parameters, norm_type=2)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/utils.py:146
↓ 1 callersMethodget_grid_shape
Computes the grid shape
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/rank_2k.h:493
↓ 1 callersMethodget_grid_shape
Computes the grid shape
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/rank_k.h:456
↓ 1 callersMethodget_grid_shape
Computes the grid shape
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/device/symm.h:548
↓ 1 callersFunctionget_ict_batch
(data_iterator)
fastertransformer/3rdparty/Megatron-LM/megatron/data/biencoder_dataset_utils.py:49
↓ 1 callersFunctionget_indexed_dataset_
Build indexed dataset.
fastertransformer/3rdparty/Megatron-LM/megatron/data/gpt_dataset.py:123
↓ 1 callersMethodget_kernel_filters
(self, kernelListFile)
fastertransformer/3rdparty/cutlass/tools/library/scripts/manifest.py:239
↓ 1 callersMethodget_knowledge_distillation_loss
(self, output_student, output_teacher)
fastertransformer/examples/pytorch/vit/ViT-quantization/main.py:70
↓ 1 callersMethodget_knowledge_distillation_loss
(self, output_student, output_teacher)
fastertransformer/examples/pytorch/vit/ViT-quantization/eval_engine.py:72
↓ 1 callersMethodget_knowledge_distillation_loss
(self, output_student, output_teacher)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_glue.py:69
↓ 1 callersMethodget_knowledge_distillation_loss
(self, output_student, output_teacher)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/main.py:61
↓ 1 callersFunctionget_l16_config
Returns the ViT-L/16 configuration.
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/configs.py:68
↓ 1 callersMethodget_labels
Gets the list of labels for this data set.
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:131
↓ 1 callersMethodget_labels
Gets the list of labels for this data set.
fastertransformer/examples/tensorflow/xlnet/convertInput.py:110
↓ 1 callersMethodget_labels
See base class.
fastertransformer/examples/tensorflow/xlnet/convertInput.py:160
↓ 1 callersMethodget_labels
(self)
fastertransformer/examples/tensorflow/xlnet/convertInput.py:283
↓ 1 callersFunctionget_layer_num_from_weights
(model_keys)
fastertransformer/examples/pytorch/gpt/utils/megatron_fp8_ckpt_convert.py:93
↓ 1 callersFunctionget_layer_num_from_weights
(model_keys)
fastertransformer/examples/pytorch/gpt/utils/megatron_ckpt_convert.py:93
↓ 1 callersFunctionget_learning_rate_scheduler
Build the learning rate scheduler.
fastertransformer/3rdparty/Megatron-LM/megatron/training.py:299
↓ 1 callersFunctionget_loader
(args)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/utils/data_utils.py:12
↓ 1 callersMethodget_loss_scale
The output should be a cuda tensor of size 1.
fastertransformer/3rdparty/Megatron-LM/megatron/optimizer/optimizer.py:111
↓ 1 callersFunctionget_lowest_occupied_gpu
(wait_memory=1000)
algorithm/parallel_utils.py:73
↓ 1 callersMethodget_lr
Learning rate decay functions from: https://openreview.net/pdf?id=BJYwwY9ll pg. 4
fastertransformer/3rdparty/Megatron-LM/megatron/learning_rates.py:58
↓ 1 callersMethodget_lr
(self)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/optimization.py:98
↓ 1 callersMethodget_mask
Gets the mask
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_triangular_matrix.h:870
↓ 1 callersMethodget_mask
Gets the mask
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator_2dthreadtile.h:816
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_pretraining.py:240
↓ 1 callersFunctionget_masked_lm_output
Get loss and log probs for the masked LM.
fastertransformer/examples/tensorflow/bert/bert-quantization/run_pretraining.py:328
↓ 1 callersFunctionget_megatron_optimizer
(model)
fastertransformer/3rdparty/Megatron-LM/megatron/optimizer/__init__.py:50
↓ 1 callersMethodget_metrics
Takes a predicted answer and a gold answer (that are both either a string or a list of strings), and returns exact match and the DROP
algorithm/lm_eval/tasks/drop.py:160
↓ 1 callersFunctionget_model_and_tokenizer
(args: argparse.Namespace)
fastertransformer/examples/pytorch/gpt/bloom_lambada.py:180
↓ 1 callersFunctionget_model_provider
Based on evaluation metric set the parallel-output flag and return the model provider.
fastertransformer/3rdparty/Megatron-LM/tasks/zeroshot_gpt/evaluate.py:40
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_pretraining.py:285
↓ 1 callersFunctionget_next_sentence_output
Get loss and log probs for the next sentence prediction.
fastertransformer/examples/tensorflow/bert/bert-quantization/run_pretraining.py:373
↓ 1 callersFunctionget_ngrams_below_threshold
(args, ngrams, ngrams_below_threshold, \ dedup_file, dedup_key, ngrams_freq_sorted)
fastertransformer/3rdparty/Megatron-LM/tools/openwebtext/filter_ngrams.py:299
↓ 1 callersFunctionget_nq_dataset
(qa_data, split)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/unsupervised/nq.py:32
↓ 1 callersFunctionget_old_shape
(t, dim=2)
fastertransformer/examples/pytorch/gptj/utils/gptj_ckpt_convert.py:55
↓ 1 callersFunctionget_one_epoch_dataloader
Specifically one epoch to be used in an indexing job.
fastertransformer/3rdparty/Megatron-LM/megatron/data/biencoder_dataset_utils.py:23
↓ 1 callersFunctionget_one_epoch_nq_dataloader
Data loader. Note that batch-size is the local (per GPU) batch-size. NOTE: This dataloader is not distributed !!!
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/unsupervised/nq.py:77
↓ 1 callersFunctionget_op_cache_config
(size_per_head, is_fp32)
fastertransformer/examples/pytorch/decoding/utils/decoding.py:40
↓ 1 callersFunctionget_op_cache_config
(size_per_head, is_fp16)
fastertransformer/examples/pytorch/decoder/utils/decoder.py:22
↓ 1 callersFunctionget_op_cache_config
(size_per_head, is_fp16)
fastertransformer/examples/pytorch/decoder/utils/ft_decoder.py:22
↓ 1 callersFunctionget_open_retrieval_batch
(data_iterator)
fastertransformer/3rdparty/Megatron-LM/megatron/data/orqa_wiki_dataset.py:40
↓ 1 callersFunctionget_parallel_checkpoint_name
(path)
fastertransformer/3rdparty/Megatron-LM/tools/merge_mp_partitions.py:134
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/vit/ViTOp.cc:87
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/vit/ViTINT8Op.cc:92
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/deberta/DebertaOp.cc:186
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/encoder/EncoderOp.cc:137
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/bert/BertINT8Op.cc:126
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/bert/BertOp.cc:154
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/decoding/DecodingOp.cc:205
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/decoder/DecoderOp.cc:137
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/swin/SwinOp.cc:113
↓ 1 callersMethodget_pickle_info
fastertransformer/src/fastertransformer/th_op/swin/SwinINT8Op.cc:116
↓ 1 callersMethodget_pooled_output
(self)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/my_modeling.py:240
↓ 1 callersMethodget_pooled_output
(self)
fastertransformer/examples/tensorflow/bert/bert-quantization/modeling.py:250
↓ 1 callersFunctionget_ptb_new
(nsamples, seed, seqlen, model)
algorithm/datautils.py:115
↓ 1 callersFunctionget_rank
()
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/supervised/eval_utils.py:184
↓ 1 callersFunctionget_rank
()
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/utils/dist_util.py:3
↓ 1 callersFunctionget_rank
()
fastertransformer/examples/pytorch/gpt/utils/comm.py:23
↓ 1 callersFunctionget_reduction_params
(epilogue_functor)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/c_types.py:226
↓ 1 callersFunctionget_result
Process results from OpenAI API response. :param response: dict OpenAI API Response :param ctxlen: int Length of context (so
algorithm/lm_eval/models/gpt3.py:10
↓ 1 callersFunctionget_rng_state
collect rng state across data parallel ranks
fastertransformer/3rdparty/Megatron-LM/megatron/checkpointing.py:144
↓ 1 callersFunctionget_rolling_token_windows
- context_len allows for a rolling window context, allowing each prediction window to potentially condition on some context :param tok
algorithm/models/models_utils.py:503
↓ 1 callersMethodget_sequence_output
(self)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/profile_transformer_inference.py:93
↓ 1 callersFunctionget_signal_handler
()
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:80
↓ 1 callersMethodget_str
(self)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/compiler.py:63
↓ 1 callersFunctionget_task
(task_name)
algorithm/lm_eval/tasks/__init__.py:319
↓ 1 callersFunctionget_task_name_from_object
(task_object)
algorithm/lm_eval/tasks/__init__.py:328
↓ 1 callersMethodget_test_examples
Gets a collection of `InputExample`s for prediction.
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:127
↓ 1 callersMethodget_test_examples
Gets a collection of `InputExample`s for prediction.
fastertransformer/examples/tensorflow/xlnet/convertInput.py:106
↓ 1 callersFunctionget_threshold
(all_predictions, all_labels, one_threshold=False)
fastertransformer/3rdparty/Megatron-LM/tasks/ensemble_classifier.py:36
↓ 1 callersFunctionget_tokenizer
(vocab_file=None, bpe_file=None)
fastertransformer/examples/pytorch/llama/utils/word_list.py:27
↓ 1 callersFunctionget_tokenizer
(vocab_file=None, bpe_file=None)
fastertransformer/examples/pytorch/gpt/utils/word_list.py:27
↓ 1 callersFunctionget_tokenizer
(vocab_file=None, bpe_file=None)
fastertransformer/examples/pytorch/llama2/utils/word_list.py:27
↓ 1 callersMethodget_tokens
(self, text)
fastertransformer/3rdparty/Megatron-LM/tasks/zeroshot_gpt/datasets.py:99
↓ 1 callersMethodget_train_examples
Gets a collection of `InputExample`s for the train set.
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:119
↓ 1 callersFunctionget_train_features
(data_dir, bert_model, max_seq_length, do_lower_case, local_rank, train_batch_size,
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_glue.py:431
↓ 1 callersFunctionget_train_overlap
(docs_by_task_set, ngrams_path, limit)
algorithm/lm_eval/decontamination/decontaminate.py:36
↓ 1 callersMethodget_unreachable_ops
Finds all of the tensors in graph that are unreachable from outputs.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/modeling_test.py:194
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/llama/utils/huggingface_llama_convert.py:27
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/bert/utils/huggingface_bert_fp8_convert.py:29
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/gptneox/utils/huggingface_gptneox_convert.py:13
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/gptneox/utils/huggingface_jp_gptneox_convert.py:26
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/gpt/utils/huggingface_gpt_convert.py:37
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/gpt/utils/huggingface_jp_gpt_convert.py:35
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/gpt/utils/huggingface_opt_convert.py:38
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/llama2/utils/hugging_llamaV2_convert.py:24
↓ 1 callersFunctionget_weight_data_type
(data_type)
fastertransformer/examples/pytorch/t5/utils/huggingface_t5_ckpt_convert.py:40
↓ 1 callersFunctionget_workspace_size
fastertransformer/3rdparty/cutlass/test/unit/gemm/device/testbed_grouped_rank_2k_scheduler.h:112
↓ 1 callersFunctionget_world_size
()
fastertransformer/3rdparty/Megatron-LM/megatron/dist_signal_handler.py:6
↓ 1 callersFunctionget_world_size
()
fastertransformer/examples/pytorch/gpt/utils/comm.py:19
↓ 1 callersFunctionglue_classification
(num_classes, Dataset, name_from_datapath_func)
fastertransformer/3rdparty/Megatron-LM/tasks/glue/finetune.py:27
↓ 1 callersMethodgpt_init_kwargs
(self)
fastertransformer/examples/pytorch/gpt/utils/gpt.py:692
← previousnext →2,901–3,000 of 14,558, ranked by callers