MCPcopy Create free account

hub / github.com/OpenBitSys/BitDistiller / functions

Functions1,634 in github.com/OpenBitSys/BitDistiller

↓ 1 callersFunctionauto_2clip_layer
(w, input_feat, n_bit, q_config, n_grid=20, max_shrink=0.5,
quantization/autoclip.py:14
↓ 1 callersMethodbleu
Returns `t5` style BLEU scores. See the related implementation: https://github.com/google-research/text-to-text-transfer-transformer/
test/general/lm_eval/tasks/truthfulqa.py:371
↓ 1 callersFunctionbootstrap_stderr
(f, xs, iters)
test/general/lm_eval/metrics.py:207
↓ 1 callersFunctionbuild_alibi_bias
( n_heads, seq_len, full=False, alibi_bias_max=8, dtype=torch.float32 )
inference/models/mpt.py:32
↓ 1 callersFunctionbuild_model_and_enc
(model_path)
quantization/clip_utils.py:174
↓ 1 callersFunctionbuild_model_and_enc
(model_path)
inference/dump_quant.py:35
↓ 1 callersMethodcakld_loss
(self, labels, student_logits, teacher_logits, beta_prob)
train/mytrainer.py:38
↓ 1 callersFunctioncast_to_int8
inference/kernels/csrc/attention/decoder_masked_multihead_attention_template.hpp:753
↓ 1 callersFunctioncategorise_answer
(answer_blob)
test/general/lm_eval/tasks/qasper.py:65
↓ 1 callersMethodce_loss
(self, labels, student_logits, teacher_logits)
train/mytrainer.py:77
↓ 1 callersMethodclean_cpp
(self, dirty_string)
test/general/lm_eval/decontamination/janitor.py:197
↓ 1 callersMethodclean_python
(self, dirty_string)
test/general/lm_eval/decontamination/janitor.py:215
↓ 1 callersMethodcommit
(self)
test/general/lm_eval/decontamination/archiver.py:39
↓ 1 callersMethodcompute_scores
(gold_list, pred)
test/general/lm_eval/tasks/coqa.py:104
↓ 1 callersMethodconstruct_requests
Uses RequestFactory to construct Requests and returns an iterable of Requests which will be sent to the LM. :param doc: T
test/general/lm_eval/base.py:619
↓ 1 callersFunctionconvertModelToQuant
(model, modules_to_not_convert=["lm_head"], current_key_name
quantization/qlinear.py:5
↓ 1 callersMethodcos_sin
( self, seq_len: int, device="cuda", dtype=torch.bfloat16, )
inference/models/falcon.py:47
↓ 1 callersMethodcount_bytes
(cls, doc)
test/general/lm_eval/base.py:852
↓ 1 callersMethodcount_words
Downstream tasks with custom word boundaries should override this!
test/general/lm_eval/base.py:856
↓ 1 callersMethodcreate_from_arg_string
(cls, arg_string, additional_config=None)
test/general/lm_eval/base.py:111
↓ 1 callersFunctioncreate_json_task
()
test/general/lm_eval/tasks/__init__.py:349
↓ 1 callersFunctioncreate_task
(lang)
test/general/lm_eval/tasks/xstorycloze.py:57
↓ 1 callersFunctioncreate_task
(subject)
test/general/lm_eval/tasks/hendrycks_test.py:96
↓ 1 callersFunctioncreate_task
(lang)
test/general/lm_eval/tasks/xwinograd.py:41
↓ 1 callersFunctioncreate_task_from_path
(json_path)
test/general/lm_eval/tasks/bigbench.py:223
↓ 1 callersFunctioncreate_translation_task
(dataset, language_pair, version=0)
test/general/lm_eval/tasks/translation.py:107
↓ 1 callersMethoddetokenize
(self, text)
test/general/lm_eval/tasks/cbt.py:57
↓ 1 callersFunctiondevice_warmup
(device: str)
inference/utils/tune.py:10
↓ 1 callersMethoddoc_to_decontamination_query
(self, doc)
test/general/lm_eval/base.py:604
↓ 1 callersMethoddoc_to_fewshot_prompt
(self, doc)
test/general/lm_eval/tasks/xnli.py:93
↓ 1 callersMethoddoc_to_fewshot_prompt
(self, doc)
test/general/lm_eval/tasks/pawsx.py:89
↓ 1 callersMethoddoc_to_target
(self, doc)
test/general/lm_eval/base.py:826
↓ 1 callersMethoddoc_to_target
(self, doc)
test/general/lm_eval/tasks/lambada.py:55
↓ 1 callersMethoddoc_to_target
(self, doc)
test/general/lm_eval/tasks/asdiv.py:75
↓ 1 callersMethoddoc_to_target
(self, doc)
test/general/lm_eval/tasks/xnli.py:82
↓ 1 callersMethoddoc_to_target
(self, doc)
test/general/lm_eval/tasks/pawsx.py:86
↓ 1 callersMethoddoc_to_text
(self, doc)
test/general/lm_eval/tasks/scrolls.py:200
↓ 1 callersFunctiondot
inference/kernels/csrc/attention/decoder_masked_multihead_attention_utils.h:1236
↓ 1 callersMethoddot
inference/kernels/csrc/attention/decoder_masked_multihead_attention_template.hpp:399
↓ 1 callersMethoddownload
Downloads and returns the task dataset. Override this method to download the dataset from a custom API. :param data_dir: str
test/general/lm_eval/base.py:514
↓ 1 callersFunctionescaped_split
Split text into a list on occurrences of the given separation character `sep_char`. The separation character may be escaped by a backslash to
test/general/lm_eval/utils.py:26
↓ 1 callersFunctioneval_json
(json_path, mode='test')
test/gsm8k/eval.py:89
↓ 1 callersFunctionevaluate
( lm, task_dict, provide_description=None, num_fewshot=0, limit=None, bootstrap_iters=
test/general/lm_eval/evaluator.py:146
↓ 1 callersMethodfewshot_context
Returns a fewshot context string that is made up of a prepended description (if provided), the `num_fewshot` number of examples, and an append
test/general/lm_eval/base.py:674
↓ 1 callersMethodfewshot_context
( self, doc, num_fewshot, provide_description=None, rnd=None, description=None )
test/general/lm_eval/tasks/truthfulqa.py:229
↓ 1 callersMethodfewshot_examples
(self, k, rnd)
test/general/lm_eval/base.py:598
↓ 1 callersFunctionfind_layers
(module, layers=[nn.Linear], name="")
inference/utils/load_quant.py:116
↓ 1 callersFunctionfind_test_root
Search upward in the directory tree to a maximum of three layers to find and return the package root (containing the 'tests' folder)
test/general/lm_eval/utils.py:249
↓ 1 callersMethodfix_a_slash_b
(self, string)
test/general/lm_eval/tasks/hendrycks_math.py:178
↓ 1 callersMethodfix_fracs
(self, string)
test/general/lm_eval/tasks/hendrycks_math.py:147
↓ 1 callersMethodfix_sqrt
(self, string)
test/general/lm_eval/tasks/hendrycks_math.py:201
↓ 1 callersFunctionfloat_to_half
inference/kernels/csrc/attention/decoder_masked_multihead_attention_utils.h:259
↓ 1 callersMethodforward
(self, x)
inference/models/falcon.py:221
↓ 1 callersFunctiongen_slopes
(n_heads, alibi_bias_max=8)
inference/models/mpt.py:22
↓ 1 callersFunctiongenerate_prompt
(input)
test/humaneval/humaneval_gen.py:25
↓ 1 callersFunctionget_alpaca_dataset
(max_sample, tokenizer)
data/generation/data_utils.py:127
↓ 1 callersFunctionget_alpaca_solar_dataset
(max_sample, tokenizer)
data/generation/data_utils.py:141
↓ 1 callersMethodget_answers
(cls, qa)
test/general/lm_eval/tasks/drop.py:71
↓ 1 callersMethodget_answers
(cls, doc, turn_id)
test/general/lm_eval/tasks/coqa.py:73
↓ 1 callersMethodget_cache_hook
(self)
test/general/lm_eval/base.py:941
↓ 1 callersFunctionget_calib_dataset_code
(tokenizer=None, n_samples=512, block_size=512)
quantization/clip_utils.py:48
↓ 1 callersFunctionget_calib_dataset_gsm8k
(tokenizer=None, n_samples=512, block_size=512)
quantization/clip_utils.py:78
↓ 1 callersFunctionget_code_dataset
(max_sample, tokenizer)
data/generation/data_utils.py:191
↓ 1 callersFunctionget_math_dataset
(max_sample, tokenizer)
data/generation/data_utils.py:206
↓ 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
test/general/lm_eval/tasks/drop.py:160
↓ 1 callersFunctionget_model
( quant_type: str = None, group_size: int = 128, bits: int = 4, base_model: str = "bigcode
test/humaneval/humaneval_gen.py:36
↓ 1 callersFunctionget_named_bnb_linears
(module)
test/humaneval/rtn.py:15
↓ 1 callersFunctionget_op_by_name
(module, op_name)
quantization/clip_utils.py:159
↓ 1 callersFunctionget_openorca_solar_dataset
(max_sample, tokenizer)
data/generation/data_utils.py:155
↓ 1 callersFunctionget_pile_dataset
(tokenizer=None, n_samples=512, block_size=512)
quantization/clip_utils.py:18
↓ 1 callersFunctionget_prompter
(model_type, model_path="", short_prompt=False)
inference/utils/prompt_templates.py:218
↓ 1 callersFunctionget_redpajama_dataset
(max_sample)
data/generation/data_utils.py:111
↓ 1 callersFunctionget_result
Process results from OpenAI API response. :param response: dict OpenAI API Response :param ctxlen: int Length of context (so
test/general/lm_eval/models/gpt3.py:10
↓ 1 callersFunctionget_stop_token_ids
(model_type, model_path="")
inference/utils/prompt_templates.py:238
↓ 1 callersFunctionget_task
(task_name)
test/general/lm_eval/tasks/__init__.py:370
↓ 1 callersFunctionget_task_name_from_object
(task_object)
test/general/lm_eval/tasks/__init__.py:380
↓ 1 callersFunctionget_train_overlap
(docs_by_task_set, ngrams_path, limit)
test/general/lm_eval/decontamination/decontaminate.py:36
↓ 1 callersFunctionget_ultra_solar_dataset
(max_sample, tokenizer)
data/generation/data_utils.py:175
↓ 1 callersFunctionget_wiki_dataset
(max_sample)
data/generation/data_utils.py:97
↓ 1 callersFunctionget_wikitext2
(nsamples, seed, seqlen, model)
test/general/wiki_ppl.py:13
↓ 1 callersFunctiongroup
(arr, fn)
test/general/lm_eval/utils.py:80
↓ 1 callersMethodhas_test_docs
(self)
test/general/lm_eval/tasks/babi.py:30
↓ 1 callersMethodhas_test_docs
(self)
test/general/lm_eval/tasks/glue.py:113
↓ 1 callersMethodhas_test_docs
(self)
test/general/lm_eval/tasks/glue.py:164
↓ 1 callersMethodhas_test_docs
(self)
test/general/lm_eval/tasks/toxigen.py:35
↓ 1 callersMethodhas_test_docs
(self)
test/general/lm_eval/tasks/pubmedqa.py:45
↓ 1 callersMethodhas_test_docs
(self)
test/general/lm_eval/tasks/lambada.py:107
↓ 1 callersMethodhas_test_docs
(self)
test/general/lm_eval/tasks/anli.py:45
↓ 1 callersMethodhas_training_docs
Whether the task has a training set
test/general/lm_eval/base.py:552
↓ 1 callersMethodhas_training_docs
(self)
test/general/lm_eval/tasks/babi.py:24
↓ 1 callersMethodhas_training_docs
(self)
test/general/lm_eval/tasks/superglue.py:432
↓ 1 callersMethodhas_training_docs
(self)
test/general/lm_eval/tasks/toxigen.py:29
↓ 1 callersMethodhas_training_docs
(self)
test/general/lm_eval/tasks/lambada.py:101
↓ 1 callersMethodhas_training_docs
(self)
test/general/lm_eval/tasks/anli.py:39
↓ 1 callersMethodhas_training_docs
(self)
test/general/lm_eval/tasks/xnli.py:52
↓ 1 callersMethodhas_training_docs
(self)
test/general/lm_eval/tasks/pawsx.py:58
↓ 1 callersMethodhas_validation_docs
(self)
test/general/lm_eval/tasks/babi.py:27
↓ 1 callersMethodhas_validation_docs
(self)
test/general/lm_eval/tasks/glue.py:110
↓ 1 callersMethodhas_validation_docs
(self)
test/general/lm_eval/tasks/glue.py:161
↓ 1 callersMethodhas_validation_docs
(self)
test/general/lm_eval/tasks/lambada.py:104
← previousnext →201–300 of 1,634, ranked by callers