MCPcopy Create free account

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

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

Method__init__
(self)
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:149
Method__init__
(self, qas_id, question_text, doc_tokens, orig_ans
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:90
Method__init__
(self, unique_id, example_index, doc_span_index, t
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:126
Method__init__
(self, filename, is_training)
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:475
Method__init__
(self, collection_name_prefix, num_bits=8, **kwargs)
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/tensor_quantizer.py:60
Method__init__
(self, quant_desc: QuantDescriptor, scope_name="tensor_quantizer", if_quant=True)
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/tensor_quantizer.py:142
Method__init__
(self, units, activation=None, use_bias=True, kern
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/dense.py:61
Method__init__
(self, axis=None, track_minmax=False)
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/max.py:35
Method__init__
(self, tensor_name_prefix, collector, quant_min_name, quant_max_name, calib_tensor_name)
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/calibrator.py:52
Method__init__
(self, num_bins=2048, grow_method='append', skip_zeros=False, affine=False)
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/histogram.py:40
Method__init__
(self, token_op, length_op, name)
fastertransformer/examples/tensorflow/decoding/translate_example.py:267
Method__init__
(self, encoder, bpe_merges, errors='replace')
fastertransformer/examples/tensorflow/gpt/utils/gpt_token_encoder.py:81
Method__init__
(self)
fastertransformer/examples/tensorflow/decoder/utils/beam_search.py:75
Method__init__
(self)
fastertransformer/examples/tensorflow/decoder/utils/beam_search.py:83
Method__init__
inputs: diversity: int scalar, >= 0 if diversity_rate == 0, then it is equivalent to beam_search
fastertransformer/examples/tensorflow/decoder/utils/beam_search.py:107
Method__init__
The arguments of Transformer layer (for both encoder and decoder). Args: beam_width: The beam_width size for beam search. This a
fastertransformer/examples/tensorflow/decoder/utils/common.py:23
Method__init__
The arguments of Decoding. Decoding is the function which contains the whole translation process. For example, the embedding lookup, posi
fastertransformer/examples/tensorflow/decoder/utils/common.py:76
Method__init__
The arguments of Decoding with beam search. Most arguments are similar to DecodingArgument except the beam_search_diversity_rate. Ar
fastertransformer/examples/tensorflow/decoder/utils/common.py:103
Method__init__
The arguments of Decoding with sampling. Most arguments are similar to DecodingArgument except the top_k and top_p. Args: vo
fastertransformer/examples/tensorflow/decoder/utils/common.py:137
Method__init__
The arguments of Decoding with sampling. Most arguments are similar to DecodingArgument except the top_k and top_p. Args: vo
fastertransformer/examples/tensorflow/decoder/utils/common.py:180
Method__init__
The arguments of Decoding. Decoding is the function which contains the whole translation process. For example, the embedding lookup, posi
fastertransformer/examples/tensorflow/decoder/utils/common.py:215
Method__init__
(self, sample_method)
fastertransformer/examples/tensorflow/decoder/utils/sampling.py:19
Method__init__
Initializes the position encoder. Args: reducer: A :class:`opennmt.layers.Reducer` to merge inputs and position encoding
fastertransformer/examples/tensorflow/decoder/utils/position.py:23
Method__init__
The arguments of Transformer layer (for both encoder and decoder). Args: beam_width: The beam_width size for beam search. This a
fastertransformer/examples/tensorflow/common_utils/common.py:21
Method__init__
(self)
fastertransformer/examples/tensorflow/common_utils/common.py:113
Method__init__
Initializes the position encoder. Args: reducer: A :class:`opennmt.layers.Reducer` to merge inputs and position encoding
fastertransformer/examples/tensorflow/common_utils/position.py:23
Method__init__
(self)
fastertransformer/examples/tensorflow/xlnet/convertInput.py:128
Method__init__
(self)
fastertransformer/examples/tensorflow/xlnet/convertInput.py:257
Method__init__
(self)
fastertransformer/examples/tensorflow/xlnet/convertInput.py:270
Method__init__
(self)
fastertransformer/examples/tensorflow/xlnet/convertInput.py:277
Method__init__
(self, input_ids, input_mask, segment_ids,
fastertransformer/examples/tensorflow/xlnet/convertInput.py:396
Method__init__
(self, name, frame_work)
fastertransformer/examples/tensorflow/t5/translate_example.py:68
Method__init__
( self, config, tensor_para_size=1, pipeline_para_size=1, *, t
fastertransformer/examples/tensorflow/t5/utils/ft_decoding.py:26
Method__init__
(self, encoder_params, decoding_params)
fastertransformer/examples/tensorflow/t5/utils/ft_decoding.py:248
Method__init__
( self, config, tensor_para_size=1, pipeline_para_size=1, *, t
fastertransformer/examples/tensorflow/t5/utils/ft_encoder.py:22
Method__init__
(self, checkpoints_dir: typing.Union[str, pathlib.Path], load_checkpoints_to_cpu: bool = False)
fastertransformer/examples/pytorch/nemo.py:77
Method__init__
(self, head_num, size_per_head, inter_size, layer_num, vocab_size, max_seq_l
fastertransformer/examples/pytorch/llama/llamav1.py:32
Method__init__
(self, head_num, size_per_head, inter_size, vocab_size, rotary_embedding_dim
fastertransformer/examples/pytorch/llama/llamav1.py:174
Method__init__
(self, name, frame_work)
fastertransformer/examples/pytorch/bart/translate_example.py:49
Method__init__
( self, config, tensor_para_size, pipeline_para_size,
fastertransformer/examples/pytorch/bart/utils/ft_decoding.py:21
Method__init__
(self, decoding_weight_list, lib_path, head_num, head_size, inter_size, mem_d_model, d_model,
fastertransformer/examples/pytorch/bart/utils/ft_decoding.py:276
Method__init__
( self, config, tensor_para_size, pipeline_para_size,
fastertransformer/examples/pytorch/bart/utils/ft_encoder.py:21
Method__init__
(self, encoder_weight_list, lib_path, head_num, head_size, inter_size, d_model, is_remove_padding,
fastertransformer/examples/pytorch/bart/utils/ft_encoder.py:220
Method__init__
weights need be a pytorch state_dict of swin transformer model
fastertransformer/examples/pytorch/vit/VisionTransformerINT8WeightLoader.py:41
Method__init__
weights need be a state_dict of swin transformer model
fastertransformer/examples/pytorch/vit/VisionTransformerWeightLoader.py:39
Method__init__
(self, in_features, out_features, act='noact', bias=True, do_quant=True)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:85
Method__init__
(self, config, vis)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:146
Method__init__
(self, config, img_size, in_channels=3)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:239
Method__init__
(self, config, vis)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:285
Method__init__
(self, config, vis)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:368
Method__init__
(self, config, img_size, vis)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:388
Method__init__
(self, config, img_size=224, num_classes=21843, zero_head=False, vis=False)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:400
Method__init__
(self, scale, T = 3)
fastertransformer/examples/pytorch/vit/ViT-quantization/main.py:64
Method__init__
(self, scale, T = 3)
fastertransformer/examples/pytorch/vit/ViT-quantization/eval_engine.py:66
Method__init__
(self)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/train.py:31
Method__init__
(self, optimizer, warmup_steps, last_epoch=-1)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/utils/scheduler.py:20
Method__init__
(self, optimizer, warmup_steps, t_total, last_epoch=-1)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/utils/scheduler.py:35
Method__init__
(self, optimizer, warmup_steps, t_total, cycles=.5, last_epoch=-1)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/utils/scheduler.py:52
Method__init__
(self, config, vis)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/modeling.py:53
Method__init__
(self, config, img_size, in_channels=3)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/modeling.py:127
Method__init__
(self, config, vis)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/modeling.py:172
Method__init__
(self, config, vis)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/modeling.py:231
Method__init__
(self, config, img_size, vis)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/modeling.py:251
Method__init__
(self, config, img_size=224, num_classes=21843, zero_head=False, vis=False)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/modeling.py:263
Method__init__
(self, cin, cout=None, cmid=None, stride=1)
fastertransformer/examples/pytorch/vit/ViT-quantization/ViT-pytorch/models/modeling_resnet.py:59
Method__init__
(self, weights_file, layer_num, head_num, size_per_head, intermediate_size, local_attn_window
fastertransformer/examples/pytorch/longformer/model.py:61
Method__init__
weights need be a state_dict of bert model
fastertransformer/examples/pytorch/encoder/utils/ft_encoder.py:24
Method__init__
(self, layer_num, head_num, head_size, weights, remove_padding=False, allow_gemm_test=False,
fastertransformer/examples/pytorch/encoder/utils/ft_encoder.py:93
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/utils/modeling_bert.py:125
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/utils/modeling_bert.py:168
Method__init__
weights need be a state_dict of bert model
fastertransformer/examples/pytorch/bert/utils/encoder.py:26
Method__init__
(self, layer_num, head_num, head_size, weights=None)
fastertransformer/examples/pytorch/bert/utils/encoder.py:328
Method__init__
(self, T = 3)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:66
Method__init__
(self, unique_id, example_index, doc_span_index,
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:121
Method__init__
(self, max_grad_norm)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:724
Method__init__
(self, T = 3)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_glue.py:64
Method__init__
(self, swag_id, context_sentence, start_ending,
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:49
Method__init__
(self, example_id, choices_features, label )
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:90
Method__init__
(self, input_file, max_pred_length)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:97
Method__init__
(self, vocab_size)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:128
Method__init__
(self, tokens, segment_ids, masked_lm_positions, masked_lm_labels, is_random_next)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/create_pretraining_data.py:40
Method__init__
(self, vocab_file, do_lower_case=True, max_len=None, never_split=("[UNK]", "[SEP]", "[PAD]",
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:98
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:181
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=100)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:298
Method__init__
(self, params, lr=required, warmup=-1, t_total=-1, schedule='warmup_linear', b1=0.9, b2=0.999
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/optimization.py:78
Method__init__
(self, optimizer, warmup, total_steps, last_epoch=-1)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/schedulers.py:56
Method__init__
(self, optimizer, warmup, total_steps, last_epoch=-1)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/schedulers.py:74
Method__init__
(self, optimizer, warmup, total_steps, last_epoch=-1)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/schedulers.py:92
Method__init__
(self, optimizer, warmup, total_steps, degree=0.5, last_epoch=-1)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/schedulers.py:110
Method__init__
(self, in_features, out_features, act='gelu', bias=True, do_quant=False)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:155
Method__init__
Constructs BertConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `BertModel`. hidden_s
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:217
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:305
Method__init__
(self, hidden_size, eps=1e-12)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:334
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:363
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:390
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:462
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:487
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:499
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:509
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:547
← previousnext →5,801–5,900 of 14,558, ranked by callers