MCPcopy Create free account

hub / github.com/OpenBitSys/BitDistiller / functions

Functions1,634 in github.com/OpenBitSys/BitDistiller

Method__init__
(self, module)
quantization/pre_quant.py:107
Method__init__
(self, module, scales)
quantization/qmodule.py:32
Method__init__
(self, module)
quantization/autoclip.py:133
Method__init__
(self, q_group_size=128)
quantization/quantizer.py:120
Method__init__
(self, q_group_size=64)
quantization/quantizer.py:154
Method__init__
(self, input_features, output_features, bias=True, compute_dtype=torch.bfloat16, quant_type="ste-n2f3", q_grou
quantization/qlinear.py:51
Method__init__
(self, dataset_name: str, tokenizer: transformers.PreTrainedTokenizer, max_sample=None)
data/generation/single_generate.py:95
Method__init__
(self, dataset_name: str, tokenizer: transformers.PreTrainedTokenizer, max_sample=None)
data/generation/generate.py:95
Method__init__
(self, model_name, model, tokenizer, batch_size=1, max_length=-1)
test/general/utils_eval.py:9
Method__init__
(self, module)
test/general/wiki_ppl.py:65
Method__init__
(self, choices)
test/general/lm_eval/utils.py:94
Method__init__
(self, arr, fn)
test/general/lm_eval/utils.py:203
Method__init__
(self)
test/general/lm_eval/base.py:122
Method__init__
:param data_dir: str Stores the path to a local folder containing the `Task`'s data files. Use this to specify the pa
test/general/lm_eval/base.py:487
Method__init__
(self, cachinglm)
test/general/lm_eval/base.py:867
Method__init__
LM wrapper that returns cached results if they exist, and uses the underlying LM if not. :param lm: LM Underlying LM :par
test/general/lm_eval/base.py:882
Method__init__
(self, request_type, args, index=None)
test/general/lm_eval/base.py:953
Method__init__
(self, f, n)
test/general/lm_eval/metrics.py:193
Method__init__
( self, ngram_n=13, window_to_remove=200, too_dirty_cutoff=10, minimum
test/general/lm_eval/decontamination/janitor.py:109
Method__init__
(self, file_path, compression_level=3)
test/general/lm_eval/decontamination/archiver.py:22
Method__init__
(self)
test/general/lm_eval/decontamination/archiver.py:47
Method__init__
(self, file_path, mode="rb+")
test/general/lm_eval/decontamination/archiver.py:75
Method__init__
(self, file_path)
test/general/lm_eval/decontamination/archiver.py:95
Method__init__
(self, file)
test/general/lm_eval/decontamination/archiver.py:152
Method__init__
(self)
test/general/lm_eval/tasks/truthfulqa.py:174
Method__init__
(self)
test/general/lm_eval/tasks/xstorycloze.py:62
Method__init__
(self, subject)
test/general/lm_eval/tasks/hendrycks_test.py:111
Method__init__
(self, sacrebleu_dataset, sacrebleu_language_pair=None)
test/general/lm_eval/tasks/translation.py:121
Method__init__
SAT Analog Questions is not publicly available. You must request the data by emailing Peter Turney and then download it to a local di
test/general/lm_eval/tasks/sat.py:34
Method__init__
StoryCloze is not publicly available. You must download the data by following https://cs.rochester.edu/nlp/rocstories/ and pass the f
test/general/lm_eval/tasks/storycloze.py:41
Method__init__
(self)
test/general/lm_eval/tasks/headqa.py:83
Method__init__
:param data_dir: str Use this to specify the path to manually downloaded JSON test data. This also needs to include t
test/general/lm_eval/tasks/json.py:12
Method__init__
(self, json_path)
test/general/lm_eval/tasks/bigbench.py:35
Method__init__
(self)
test/general/lm_eval/tasks/bigbench.py:225
Method__init__
(self)
test/general/lm_eval/tasks/scrolls.py:225
Method__init__
(self)
test/general/lm_eval/tasks/xwinograd.py:46
Method__init__
(self, f)
test/general/lm_eval/tasks/race.py:30
Method__init__
BuilderConfig for Hendrycks ETHICS. Args: prefix: *string*, prefix to add to the dataset name for path location. features: *l
test/general/lm_eval/datasets/hendrycks_ethics/hendrycks_ethics.py:53
Method__init__
:param model: str Anthropic model e.g. claude-instant-v1
test/general/lm_eval/models/anthropic_llms.py:41
Method__init__
( self, device="cuda", pretrained="gpt2", revision="main", low_cpu_mem
test/general/lm_eval/models/gpt2.py:23
Method__init__
:param engine: str TextSynth API engine (e.g. `gptj_6B`) :param truncate: bool Truncate input if too long (if
test/general/lm_eval/models/textsynth.py:42
Method__init__
(self)
test/general/lm_eval/models/dummy.py:6
Method__init__
:param engine: str OpenAI API engine (e.g. davinci) :param truncate: bool Truncate input if too long (if Fal
test/general/lm_eval/models/gpt3.py:60
Method__init__
Initializes a HuggingFace `AutoModel` and `AutoTokenizer` for evaluation. Args: pretrained (str): The HuggingFace
test/general/lm_eval/models/huggingface.py:71
Method__init__
( self, sequence: str, tokenizer: transformers.PreTrainedTokenizer, initial_de
test/general/lm_eval/models/huggingface.py:726
Method__init__
(self, data_path: str, tokenizer: transformers.PreTrainedTokenizer)
test/gsm8k/test.py:109
Method__init__
( self, gate_proj, down_proj, up_proj, )
inference/modules/fused_mlp.py:19
Method__init__
LlamaRMSNorm is equivalent to T5LayerNorm
inference/modules/fused_norm.py:8
Method__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None)
inference/modules/fused_attn.py:23
Method__init__
(self, hidden_size, num_heads, qkv_layer, o_proj, dev, args)
inference/modules/fused_attn.py:167
Method__init__
( self, system_inst, role1, role2, sen_spliter="\n", qa_splite
inference/utils/prompt_templates.py:12
Method__init__
( self, )
inference/utils/prompt_templates.py:83
Method__init__
( self, oneshot_example: List[str], # User prompt + Assistant responce system_inst,
inference/utils/prompt_templates.py:97
Method__init__
(self)
inference/utils/prompt_templates.py:116
Method__init__
(self, short_prompt=False)
inference/utils/prompt_templates.py:126
Method__init__
(self)
inference/utils/prompt_templates.py:159
Method__init__
(self)
inference/utils/prompt_templates.py:165
Method__init__
(self)
inference/utils/prompt_templates.py:175
Method__init__
(self)
inference/utils/prompt_templates.py:202
Method__init__
( self, head_dim: int, base=10000, )
inference/models/falcon.py:33
Method__init__
(self, args)
inference/models/falcon.py:79
Method__init__
(self, layer_id: int, args)
inference/models/falcon.py:228
Method__init__
(self, params)
inference/models/falcon.py:255
Method__init__
(self, params)
inference/models/falcon.py:287
Method__init__
(self, args)
inference/models/llama.py:74
Method__init__
(self, args)
inference/models/llama.py:225
Method__init__
(self, layer_id: int, args)
inference/models/llama.py:239
Method__init__
(self, params)
inference/models/llama.py:265
Method__init__
(self, params)
inference/models/llama.py:304
Method__init__
(self, normalized_shape, eps=1e-05, elementwise_affine=True)
inference/models/mpt.py:60
Method__init__
(self, args)
inference/models/mpt.py:96
Method__init__
(self, layer_id: int, args)
inference/models/mpt.py:235
Method__init__
(self, params)
inference/models/mpt.py:258
Method__init__
(self, params)
inference/models/mpt.py:290
Method__init__
(self, data_path: str, tokenizer: transformers.PreTrainedTokenizer, max_sample: int, split: str)
train/train.py:178
Method__init__
(self, teacher_model, loss_type, mean_prob=0, *args, **kwargs)
train/mytrainer.py:27
Method__iter__
(self)
test/general/lm_eval/utils.py:107
Method__iter__
(self)
test/general/lm_eval/base.py:963
Method__len__
(self)
data/generation/single_generate.py:105
Method__len__
(self)
data/generation/generate.py:105
Method__len__
(self)
test/gsm8k/test.py:133
Method__len__
(self)
train/train.py:208
Function__nv_bfloat16 add
inference/kernels/csrc/attention/decoder_masked_multihead_attention_utils.h:182
Function__nv_bfloat16 mul
inference/kernels/csrc/attention/decoder_masked_multihead_attention_utils.h:975
Function__nv_bfloat162 add
inference/kernels/csrc/attention/decoder_masked_multihead_attention_utils.h:189
Function__nv_bfloat162 fma
inference/kernels/csrc/attention/decoder_masked_multihead_attention_utils.h:604
Function__nv_bfloat162 mul
inference/kernels/csrc/attention/decoder_masked_multihead_attention_utils.h:987
Function__nv_bfloat162 rotary_embedding_transform
inference/kernels/csrc/attention/decoder_masked_multihead_attention_utils.h:1297
Method__repr__
(self)
test/general/lm_eval/base.py:981
Method__rrshift__
(self, other)
test/general/lm_eval/tasks/race.py:33
Method__str__
(self)
test/general/lm_eval/tasks/translation.py:229
Method_batch_scheduler
(pos)
test/general/lm_eval/base.py:293
Method_collate
(x)
test/general/lm_eval/base.py:275
Method_collate
(x)
test/general/lm_eval/models/gpt3.py:120
Method_collate
(x)
test/general/lm_eval/models/huggingface.py:437
Method_create_auto_tokenizer
( self, *, pretrained: str, revision: str, subfolder: str, tok
test/general/lm_eval/models/huggingface.py:506
Method_filter
(sample)
test/general/lm_eval/tasks/scrolls.py:182
Method_flatten_validated_answers
Flattens a dict of lists of validated answers. {"number": ['1', '8'], ...} -> [{"number": ['1'], ...}, {"number": ['8'], ...}]
test/general/lm_eval/tasks/drop.py:72
Method_generate_examples
(self, filepath, split)
test/general/lm_eval/datasets/quac/quac.py:100
Method_generate_examples
(self, filepath, split)
test/general/lm_eval/datasets/drop/drop.py:147
← previousnext →401–500 of 1,634, ranked by callers