MCPcopy Create free account

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

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

Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:598
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:611
Method__init__
(self, config, bert_model_embedding_weights)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:623
Method__init__
(self, config, bert_model_embedding_weights)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:642
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:652
Method__init__
(self, config, bert_model_embedding_weights)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:662
Method__init__
(self, config, *inputs, **kwargs)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:677
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:898
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:981
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1037
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1099
Method__init__
(self, config, num_labels)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1162
Method__init__
(self, config, num_choices)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1220
Method__init__
(self, config, num_labels)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1290
Method__init__
(self, config)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1357
Method__init__
(self, unique_id, text_a, text_b)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:43
Method__init__
(self, unique_id, tokens, input_ids, input_mask, input_type_ids)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:52
Method__init__
(self, language, save_path)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/WikiDownloader.py:21
Method__init__
(self, books_path, output_filename, recursive = False)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/BookscorpusTextFormatting.py:18
Method__init__
(self, save_path)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/GLUEDownloader.py:26
Method__init__
(self, input_files, output_name_prefix, n_training_shards, n_test_shards, fraction_test_set)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/TextSharding.py:21
Method__init__
(self, save_path)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/BooksDownloader.py:17
Method__init__
(self, save_path)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/GooglePretrainedWeightDownloader.py:20
Method__init__
(self, save_path)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/SquadDownloader.py:20
Method__init__
(self, wiki_path, output_filename, recursive = False)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/WikicorpusTextFormatting.py:18
Method__init__
(self, save_path)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/NVIDIAPretrainedWeightDownloader.py:17
Method__init__
(self, dataset_name, save_path)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/Downloader.py:24
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first s
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:25
Method__init__
(self, input_ids, input_mask, segment_ids, label_id)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:47
Method__init__
( self, model, fields, src_reader, tgt_reader,
fastertransformer/examples/pytorch/decoding/utils/translator.py:92
Method__init__
(self, layer_num, hidden_dim, vocab_size, onmtcheckpoint=None, max_step_for_pe=2048)
fastertransformer/examples/pytorch/decoding/utils/decoding.py:50
Method__init__
(self, num_layers, d_model, heads, head_size, d_ff, copy_attn, self_attn_type, dropout, atten
fastertransformer/examples/pytorch/decoding/utils/decoding.py:231
Method__init__
(self, layer_num, head_num, head_size, vocab_size, start_id, end_id, weights, beam_search_div
fastertransformer/examples/pytorch/decoding/utils/decoding.py:424
Method__init__
(self, layer_num, hidden_dim, onmtcheckpoint, max_step_for_pe=2048)
fastertransformer/examples/pytorch/decoding/utils/ft_decoding.py:27
Method__init__
(self, head_num, head_size, inter_size, mem_hidden_dim, layer_num, vocab_size, start_id, end_i
fastertransformer/examples/pytorch/decoding/utils/ft_decoding.py:131
Method__init__
(self, vocab_file)
fastertransformer/examples/pytorch/gptneox/utils/hftokenizer.py:23
Method__init__
(self, head_num, size_per_head, layer_num, vocab_size, max_seq_len, tensor
fastertransformer/examples/pytorch/gptneox/utils/gptneox.py:32
Method__init__
(self, head_num, size_per_head, vocab_size, rotary_embedding_dim,
fastertransformer/examples/pytorch/gptneox/utils/gptneox.py:176
Method__init__
(self, path: str | pathlib.Path, tokenizer: transformers.PreTrainedTokenizer
fastertransformer/examples/pytorch/gpt/bloom_lambada.py:42
Method__init__
(self)
fastertransformer/examples/pytorch/gpt/bloom_lambada.py:94
Method__init__
(self, path, tokenizer, seq_len)
fastertransformer/examples/pytorch/gpt/lambada_task_example.py:36
Method__init__
(self, encoder, bpe_merges, errors='replace')
fastertransformer/examples/pytorch/gpt/utils/gpt_token_encoder.py:81
Method__init__
(self, head_num, size_per_head, layer_num, vocab_size, max_seq_len, tensor_para_size, pipeline_para_size,
fastertransformer/examples/pytorch/gpt/utils/gpt_fp8.py:31
Method__init__
(self, head_num, size_per_head, vocab_size, start_id, end_id, layer_num,
fastertransformer/examples/pytorch/gpt/utils/gpt_fp8.py:225
Method__init__
(self, head_num, size_per_head, layer_num, vocab_size, tensor_para_size, pipeline_para_size,
fastertransformer/examples/pytorch/gpt/utils/bloom.py:31
Method__init__
(self, tokenizer_json_file)
fastertransformer/examples/pytorch/gpt/utils/tokenizer.py:23
Method__init__
(self)
fastertransformer/examples/pytorch/gpt/utils/profiler.py:6
Method__init__
(self, tensor_para_size: int, pipeline_para_size: int)
fastertransformer/examples/pytorch/gpt/utils/comm.py:37
Method__init__
(self, num_heads: int, size_per_head: int, inter_size: int,
fastertransformer/examples/pytorch/gpt/utils/gpt_decoder.py:86
Method__init__
(self)
fastertransformer/examples/pytorch/gpt/utils/gpt_decoder.py:329
Method__init__
(self, num_heads: int, size_per_head: int, inter_size: int,
fastertransformer/examples/pytorch/gpt/utils/gpt_decoder.py:388
Method__init__
(self, num_heads: int, size_per_head: int, inter_size: int,
fastertransformer/examples/pytorch/gpt/utils/gpt_decoder.py:554
Method__init__
(self, head_num, size_per_head, layer_num, vocab_size, max_seq_len, tensor_para_size, pipeline_para_size,
fastertransformer/examples/pytorch/gpt/utils/gpt.py:30
Method__init__
(self, head_num, size_per_head, vocab_size, start_id, end_id, layer_num,
fastertransformer/examples/pytorch/gpt/utils/gpt.py:442
Method__init__
(self, layer_num, head_num, head_size, weights)
fastertransformer/examples/pytorch/decoder/utils/decoder.py:58
Method__init__
(self, layer_num, hidden_dim, onmtcheckpoint, max_step_for_pe=2048)
fastertransformer/examples/pytorch/decoder/utils/ft_decoder.py:31
Method__init__
(self, head_num, head_size, mem_hidden_dim, layer_num, weights, args)
fastertransformer/examples/pytorch/decoder/utils/ft_decoder.py:120
Method__init__
(self, model_type=None, data_type=None, ths_path=None)
fastertransformer/examples/pytorch/decoder/utils/ft_decoder.py:147
Method__init__
(self, head_num, kv_head_num, size_per_head, inter_size, layer_num, vocab_size,
fastertransformer/examples/pytorch/llama2/llamav2.py:32
Method__init__
(self, head_num, kv_head_num, size_per_head, inter_size, vocab_size, rotary_
fastertransformer/examples/pytorch/llama2/llamav2.py:342
Method__init__
(self, chkpt_path, device="cpu")
fastertransformer/examples/pytorch/gptj/utils/reference_gptj.py:24
Method__init__
weights need be a state_dict of swin transformer model
fastertransformer/examples/pytorch/swin/SwinTransformerWeightTransposeQKVWeight.py:19
Method__init__
weights need be a state_dict of swin transformer model
fastertransformer/examples/pytorch/swin/SwinTransformerINT8Weight.py:21
Method__init__
(self, scale, T = 3)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/main.py:55
Method__init__
(self)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/utils.py:198
Method__init__
(self, optimizer: torch.optim.Optimizer, t_initial: int, lr
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/lr_scheduler.py:54
Method__init__
(self, indices)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/data/samplers.py:18
Method__init__
(self)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/data/zipreader.py:27
Method__init__
(self, root, ann_file='', transform=None, target_transform=None)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/data/imagenet22k_dataset.py:13
Method__init__
(self, root, ann_file='', img_prefix='', transform=None, target_transform=None, loader=defaul
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/data/cached_image_folder.py:228
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., drop=0.,
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_mlp.py:82
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_mlp.py:194
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., drop=0., drop_path
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_mlp.py:251
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_mlp.py:311
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_mlp.py:369
Method__init__
(self, in_features, hidden_features, num_local_experts, top_value, capacity_factor=1.25, cosi
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:44
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.,
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:151
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:292
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:445
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, qk_
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:521
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:610
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:690
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer.py:91
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer.py:195
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer.py:324
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, qk_
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer.py:385
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer.py:448
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer.py:512
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, attn_drop=0., proj_drop=0., pretrained_win
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_v2.py:81
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_v2.py:218
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_v2.py:336
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, dro
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_v2.py:396
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_v2.py:466
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_v2.py:529
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:97
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:216
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:362
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, qk_
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:422
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None, do_quant=False)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:483
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:549
← previousnext →5,901–6,000 of 14,558, ranked by callers