MCPcopy Create free account

hub / github.com/OpenBitSys/BitDistiller / functions

Functions1,634 in github.com/OpenBitSys/BitDistiller

↓ 1 callersMethodhas_validation_docs
(self)
test/general/lm_eval/tasks/anli.py:42
↓ 1 callersMethodhas_validation_docs
(self)
test/general/lm_eval/tasks/xnli.py:55
↓ 1 callersMethodhas_validation_docs
(self)
test/general/lm_eval/tasks/pawsx.py:61
↓ 1 callersMethodis_equiv
(self, str1, str2, verbose=False)
test/general/lm_eval/tasks/hendrycks_math.py:88
↓ 1 callersMethodjsd_loss
(self, labels, student_logits, teacher_logits, beta_prob)
train/mytrainer.py:59
↓ 1 callersFunctionllama_eval
(model, testenc, dev, seqlen = 2048)
test/general/wiki_ppl.py:45
↓ 1 callersMethodloglikelihood
Compute log-likelihood of generating a continuation from a context. Downstream tasks should attempt to use loglikelihood instead of other
test/general/lm_eval/base.py:26
↓ 1 callersMethodloglikelihood_rolling
Compute full log-likelihood of a string, with no truncation, for perplexity computation - We will use the full max context length of the model
test/general/lm_eval/base.py:50
↓ 1 callersFunctionlower
(text)
test/general/lm_eval/tasks/qasper.py:59
↓ 1 callersFunctionmain
(args, q_config)
quantization/autoclip.py:209
↓ 1 callersFunctionmain
(args)
data/generation/single_generate.py:149
↓ 1 callersFunctionmain
(rank, args)
data/generation/generate.py:149
↓ 1 callersFunctionmain
(args)
data/generation/generate_vllm.py:9
↓ 1 callersFunctionmain
()
test/humaneval/humaneval_gen.py:76
↓ 1 callersFunctionmain
()
test/general/wiki_ppl.py:129
↓ 1 callersFunctionmain
(rank, args)
test/gsm8k/test.py:194
↓ 1 callersFunctionmaj
(lst)
test/gsm8k/eval.py:156
↓ 1 callersFunctionmake_fused_mlp
(m, parent_name="")
inference/modules/fused_mlp.py:117
↓ 1 callersFunctionmake_quant_linear
(module, names, w_bit, groupsize, device, name="")
inference/utils/load_quant.py:85
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
data/generation/single_generate.py:143
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
data/generation/generate.py:143
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
test/gsm8k/test.py:187
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
train/train.py:254
↓ 1 callersFunctionmean_stderr
(arr)
test/general/lm_eval/metrics.py:24
↓ 1 callersMethodour_llama_mlp
(self, x)
inference/modules/fused_mlp.py:44
↓ 1 callersMethodparse_answer
(cls, answer)
test/general/lm_eval/tasks/drop.py:102
↓ 1 callersFunctionprecompute_freqs_cis
(dim: int, end: int, theta: float = 10000.0)
inference/models/llama.py:38
↓ 1 callersFunctionprepare_logits_processor
( temperature: float, repetition_penalty: float, top_p: float, top_k: int )
inference/stream_generators/stream_gen.py:19
↓ 1 callersFunctionpreprocess
( sources, targets, tokenizer: transformers.PreTrainedTokenizer, )
data/generation/single_generate.py:84
↓ 1 callersFunctionpreprocess
( sources, targets, tokenizer: transformers.PreTrainedTokenizer, )
data/generation/generate.py:84
↓ 1 callersFunctionpreprocess
( sources, targets, tokenizer: transformers.PreTrainedTokenizer, )
test/gsm8k/test.py:96
↓ 1 callersFunctionpreprocess
Preprocess the data by tokenizing.
train/train.py:160
↓ 1 callersMethodprocess_results
Take a single document and the LM results and evaluates, returning a dict where keys are the names of submetrics and values are the values of
test/general/lm_eval/base.py:633
↓ 1 callersMethodprune
Create a pruned version of a SCROLLS task dataset containing only inputs that are less than `max_tokens` when tokenized by each tokenizer
test/general/lm_eval/tasks/scrolls.py:174
↓ 1 callersFunctionpseudo_quantize_n2f3_tensor
(w, q_group_size=-1)
quantization/quantizer.py:113
↓ 1 callersFunctionpseudo_quantize_tensor
(w, n_bit=8, zero_point=True, q_group_size=-1, inplace=F
test/test_utils.py:19
↓ 1 callersFunctionpseudo_quantize_tensor
(w, n_bit=8, zero_point=True, q_group_size=-1, inplace=F
test/humaneval/rtn.py:19
↓ 1 callersFunctionqk_hmma_dot_
inference/kernels/csrc/attention/decoder_masked_multihead_attention_template.hpp:425
↓ 1 callersFunctionraise_if_cuda_home_none
(global_option: str)
inference/kernels/csrc/attention/setup.py:45
↓ 1 callersMethodre_loss
(self, labels, student_logits, teacher_logits)
train/mytrainer.py:89
↓ 1 callersMethodread_tqdm
(self, update_frequency=10000)
test/general/lm_eval/decontamination/archiver.py:100
↓ 1 callersMethodread_tqdm
(self)
test/general/lm_eval/decontamination/archiver.py:155
↓ 1 callersMethodregister_contaminant_cpp
(self, dirt_string)
test/general/lm_eval/decontamination/janitor.py:192
↓ 1 callersMethodregister_contaminant_python
(self, dirt_string)
test/general/lm_eval/decontamination/janitor.py:210
↓ 1 callersFunctionremove_articles
(text)
test/general/lm_eval/tasks/qasper.py:49
↓ 1 callersFunctionremove_punc
(text)
test/general/lm_eval/tasks/qasper.py:55
↓ 1 callersMethodremove_right_units
(self, string)
test/general/lm_eval/tasks/hendrycks_math.py:192
↓ 1 callersFunctionreshape_for_broadcast
(freqs_cis: torch.Tensor, x: torch.Tensor)
inference/models/llama.py:46
↓ 1 callersMethodrouge
Returns `t5` style ROUGE scores. See the related implementation: https://github.com/google-research/text-to-text-transfer-transformer
test/general/lm_eval/tasks/truthfulqa.py:393
↓ 1 callersMethodround_n2f3
(self, q_pos, q_neg, dev)
quantization/quantizer.py:224
↓ 1 callersMethodround_pass
(self, q_pos, q_neg, dev)
quantization/quantizer.py:238
↓ 1 callersFunctionrun_clip
( model, enc, w_bit, q_config, n_samples=128, seqlen=1024, datasets="pile" )
quantization/autoclip.py:110
↓ 1 callersFunctionrun_task_tests
Find the package root and run the tests for the given tasks
test/general/lm_eval/utils.py:267
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
train/train.py:104
↓ 1 callersMethodset_cache_hook
(self, cache_hook)
test/general/lm_eval/base.py:117
↓ 1 callersFunctionset_params
inference/kernels/csrc/attention/ft_attention.cpp:52
↓ 1 callersFunctionshfl_mask
inference/kernels/csrc/attention/decoder_masked_multihead_attention_template.hpp:845
↓ 1 callersMethodshould_decontaminate
Whether this task supports decontamination against model training set.
test/general/lm_eval/base.py:547
↓ 1 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
data/generation/single_generate.py:39
↓ 1 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
data/generation/generate.py:39
↓ 1 callersFunctionsplit_indices
Splits a string on whitespaces and records the indices of each in the original string. @:return generator((word, (start_idx, end_idx)), ...)
test/general/lm_eval/decontamination/janitor.py:71
↓ 1 callersFunctionstream_output
(output_stream)
inference/demo.py:50
↓ 1 callersMethodtest_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
test/general/lm_eval/base.py:580
↓ 1 callersMethodtest_docs
(self)
test/general/lm_eval/tasks/wsc273.py:66
↓ 1 callersMethodtest_docs
(self)
test/general/lm_eval/tasks/bigbench.py:57
↓ 1 callersMethodtest_docs
(self)
test/general/lm_eval/tasks/xnli.py:67
↓ 1 callersMethodtest_docs
(self)
test/general/lm_eval/tasks/pawsx.py:73
↓ 1 callersMethodtok_decode
(self, tokens: Iterable[int])
test/general/lm_eval/base.py:158
↓ 1 callersMethodtok_decode
(self, tokens: torch.LongTensor)
test/general/lm_eval/models/huggingface.py:431
↓ 1 callersFunctiontoken_f1_score
Taken from the official evaluation script for v1.1 of the SQuAD dataset.
test/general/lm_eval/tasks/qasper.py:88
↓ 1 callersFunctiontrain
()
train/train.py:262
↓ 1 callersMethodtraining_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
test/general/lm_eval/base.py:566
↓ 1 callersMethodtraining_docs
(self)
test/general/lm_eval/tasks/naturalqs.py:46
↓ 1 callersFunctiontune_wqlinear
(module: WQLinear, measure_iters: int = 1000)
inference/utils/tune.py:31
↓ 1 callersMethodvalidation_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
test/general/lm_eval/base.py:573
↓ 1 callersMethodvalidation_docs
(self)
test/general/lm_eval/tasks/xnli.py:64
↓ 1 callersMethodvalidation_docs
(self)
test/general/lm_eval/tasks/pawsx.py:70
↓ 1 callersFunctionversion_of
(dataset, language_pair)
test/general/lm_eval/tasks/translation.py:59
↓ 1 callersFunctionwhite_space_fix
(text)
test/general/lm_eval/tasks/qasper.py:52
↓ 1 callersFunctionwikitext_detokenizer
(string)
test/general/lm_eval/tasks/wikitext.py:28
↓ 1 callersFunctionword_ngrams_indices
Splits a string into pairs of (ngram words, their start/end indices)
test/general/lm_eval/decontamination/janitor.py:78
FunctionFalconStreamGenerator
( model, tokenizer, input: str, gen_params: dict, device: str = "cuda:0", context_len=
inference/stream_generators/falcon_stream_gen.py:22
FunctionPYBIND11_MODULE
inference/kernels/csrc/pybind.cpp:9
FunctionStreamGenerator
( model, tokenizer, input: str, gen_params: dict, device: str = "cuda:0", stream_inter
inference/stream_generators/stream_gen.py:36
Method__call__
(self, instances: Sequence[Dict])
data/generation/single_generate.py:131
Method__call__
(self, instances: Sequence[Dict])
data/generation/generate.py:131
Method__call__
(self, v)
test/general/lm_eval/metrics.py:197
Method__call__
(self, input_ids, scores, **kwargs)
test/general/lm_eval/models/huggingface.py:740
Method__call__
(self, instances: Sequence[Dict])
test/gsm8k/test.py:174
Method__call__
(self, instances: Sequence[Dict])
train/train.py:232
Method__contains__
(self, values)
test/general/lm_eval/utils.py:98
Method__eq__
(self, other)
test/general/lm_eval/base.py:974
Method__eq__
(self, other)
test/general/lm_eval/tasks/hendrycks_math.py:216
Method__getattr__
(self, attr)
test/general/lm_eval/base.py:899
Method__getattr__
(self, attr)
test/general/lm_eval/base.py:986
Method__getitem__
(self, i)
data/generation/single_generate.py:108
Method__getitem__
(self, i)
data/generation/generate.py:108
Method__getitem__
(self, i)
test/general/lm_eval/base.py:969
Method__getitem__
(self, i)
test/gsm8k/test.py:136
Method__getitem__
(self, i)
train/train.py:211
← previousnext →301–400 of 1,634, ranked by callers