MCPcopy Create free account

hub / github.com/microsoft/BitNet / functions

Functions397 in github.com/microsoft/BitNet

↓ 1 callersMethodbpe_tokens
(self)
utils/convert-ms-to-gguf-bitnet.py:475
↓ 1 callersMethodbpe_tokens
(self)
utils/convert.py:475
↓ 1 callersMethodbuild
Load a Llama or Code Llama checkpoint and return a new generator for this model.
gpu/generate.py:42
↓ 1 callersMethodcleanup_model
Delete model file if it was created during this session.
utils/test_perplexity.py:314
↓ 1 callersMethodcleanup_model
Cleanup model files (only delete newly created files) Args: output_suffix: Output file suffix
utils/quantize_embeddings.py:256
↓ 1 callersMethodcleanup_temp_files
Clean up temporary files.
utils/test_perplexity.py:107
↓ 1 callersFunctioncompile
()
setup_env.py:203
↓ 1 callersMethodcompile_generate
(self)
gpu/generate.py:159
↓ 1 callersMethodcompile_prefill
(self)
gpu/generate.py:102
↓ 1 callersFunctioncompress_int2_to_int8
(int2_weight)
gpu/pack_weight.py:46
↓ 1 callersFunctionconvert_back
( safetensors_path: str, output_file: str, model_name: Optional[str] = None, )
gpu/convert_safetensors.py:49
↓ 1 callersFunctionconvert_model_names
(model: LazyModel, params: Params, skip_unknown: bool)
utils/convert-ms-to-gguf-bitnet.py:1374
↓ 1 callersFunctionconvert_model_names
(model: LazyModel, params: Params, skip_unknown: bool)
utils/convert.py:1302
↓ 1 callersFunctionconvert_to_output_type
(model: LazyModel, output_type: GGMLFileType)
utils/convert-ms-to-gguf-bitnet.py:1364
↓ 1 callersFunctionconvert_to_output_type
(model: LazyModel, output_type: GGMLFileType)
utils/convert.py:1292
↓ 1 callersFunctionconvert_ts_checkpoint
( *, input_path: str = "", )
gpu/convert_checkpoint.py:15
↓ 1 callersFunctiondefault_outfile
(model_paths: list[Path], file_type: GGMLFileType)
utils/convert-ms-to-gguf-bitnet.py:1621
↓ 1 callersFunctiondefault_outfile
(model_paths: list[Path], file_type: GGMLFileType)
utils/convert.py:1476
↓ 1 callersMethodelements_to_bytes
(self, n_elements: int)
utils/convert-ms-to-gguf-bitnet.py:63
↓ 1 callersMethodelements_to_bytes
(self, n_elements: int)
utils/convert.py:63
↓ 1 callersMethodencode_dialog_prompt
(self, dialog: Dialog, completion=False, return_target=False)
gpu/tokenizer.py:242
↓ 1 callersMethodencode_message
(self, message: Message, return_target=False)
gpu/tokenizer.py:225
↓ 1 callersMethodextract_vocabulary_from_model
(self, vocab: Vocab)
utils/convert-ms-to-gguf-bitnet.py:1193
↓ 1 callersMethodextract_vocabulary_from_model
(self, vocab: Vocab)
utils/convert.py:1123
↓ 1 callersMethodfind_best_config
Find the best configuration with highest throughput
utils/tune_gemm_config.py:166
↓ 1 callersMethodfind_datasets
Find all test.txt files in dataset directories.
utils/test_perplexity.py:63
↓ 1 callersFunctionfind_multifile_paths
Given any path belonging to a multi-file model (e.g. foo.bin.1), return the whole list of paths in the model.
utils/convert-ms-to-gguf-bitnet.py:1529
↓ 1 callersFunctionfind_multifile_paths
Given any path belonging to a multi-file model (e.g. foo.bin.1), return the whole list of paths in the model.
utils/convert.py:1384
↓ 1 callersMethodforward
(self, input)
gpu/model.py:83
↓ 1 callersFunctionforward_t
(x)
utils/convert-ms-to-gguf-bitnet.py:946
↓ 1 callersMethodfrom_model_architecture
(cls, arch)
utils/convert-hf-to-gguf-bitnet.py:236
↓ 1 callersMethodfrom_model_architecture
(cls, arch)
utils/generate-dummy-bitnet-model.py:308
↓ 1 callersMethodfrom_name
(cls, name: str)
gpu/convert_safetensors.py:36
↓ 1 callersFunctiongen_body_core_code
(bm, by)
utils/codegen_tl1.py:190
↓ 1 callersFunctiongen_code
()
setup_env.py:156
↓ 1 callersFunctiongen_ctor_code
()
utils/codegen_tl2.py:5
↓ 1 callersFunctiongen_ctor_code
()
utils/codegen_tl1.py:5
↓ 1 callersFunctiongen_preprocess_code
()
utils/codegen_tl1.py:310
↓ 1 callersFunctiongen_tbl_impl
(pre, BM, BK, bm, k_list)
utils/codegen_tl2.py:279
↓ 1 callersFunctiongen_tbl_impl
(pre, BM, BK, bm, k)
utils/codegen_tl1.py:224
↓ 1 callersFunctiongen_top_api
(kernel_shapes, k_list)
utils/codegen_tl2.py:532
↓ 1 callersFunctiongen_top_api
(kernel_shapes)
utils/codegen_tl1.py:285
↓ 1 callersFunctiongen_transform_code
(kernel_shapes)
utils/codegen_tl2.py:626
↓ 1 callersFunctiongen_transform_code
(kernel_shape)
utils/codegen_tl1.py:321
↓ 1 callersMethodgenerate_all
( self, prompts: list[list[int]], use_cuda_graphs: bool, use_sampling: bool )
gpu/generate.py:217
↓ 1 callersFunctiongenerate_configurations
Generate list of configurations to test
utils/tune_gemm_config.py:262
↓ 1 callersMethodgenerate_tensors
(self)
utils/generate-dummy-bitnet-model.py:824
↓ 1 callersFunctionget_prompts
(interactive: bool)
gpu/generate.py:307
↓ 1 callersMethodget_tensors
(self)
utils/generate-dummy-bitnet-model.py:154
↓ 1 callersFunctionget_three_k_two_k
(K, bk)
utils/codegen_tl2.py:676
↓ 1 callersMethodget_vocab_base
(self)
utils/convert-hf-to-gguf-bitnet.py:256
↓ 1 callersMethodget_vocab_base_pre
(self, tokenizer)
utils/convert-hf-to-gguf-bitnet.py:291
↓ 1 callersMethodget_vocab_base_pre
(self, tokenizer)
utils/generate-dummy-bitnet-model.py:361
↓ 1 callersMethodguessed
(model: LazyModel)
utils/convert-ms-to-gguf-bitnet.py:232
↓ 1 callersMethodguessed
(model: LazyModel)
utils/convert.py:232
↓ 1 callersMethodhf_tokens
(self)
utils/convert-ms-to-gguf-bitnet.py:635
↓ 1 callersMethodhf_tokens
(self)
utils/convert.py:635
↓ 1 callersFunctioninterleave_weight_int8
(qweight, nbits=2)
gpu/pack_weight.py:56
↓ 1 callersFunctioninvert_convert_k
(w: torch.Tensor, config: ModelArgs)
gpu/convert_safetensors.py:46
↓ 1 callersFunctioninvert_convert_q
(w: torch.Tensor, config: ModelArgs)
gpu/convert_safetensors.py:43
↓ 1 callersFunctionlazy_load_safetensors_file
(fp: IO[bytes], path: Path)
utils/convert-ms-to-gguf-bitnet.py:1029
↓ 1 callersFunctionlazy_load_safetensors_file
(fp: IO[bytes], path: Path)
utils/convert.py:955
↓ 1 callersMethodloadHFTransformerJson
(model: LazyModel, config_path: Path)
utils/convert-ms-to-gguf-bitnet.py:269
↓ 1 callersMethodloadHFTransformerJson
(model: LazyModel, config_path: Path)
utils/convert.py:269
↓ 1 callersMethodloadOriginalParamsJson
(model: LazyModel, config_path: Path)
utils/convert-ms-to-gguf-bitnet.py:326
↓ 1 callersMethodloadOriginalParamsJson
(model: LazyModel, config_path: Path)
utils/convert.py:326
↓ 1 callersFunctionload_some_model
Load a model of any supported format.
utils/convert-ms-to-gguf-bitnet.py:1547
↓ 1 callersFunctionload_some_model
Load a model of any supported format.
utils/convert.py:1402
↓ 1 callersFunctionload_unquantized
(lazy_tensor: LazyTensor, expected_dtype: Any = None, convert: bool = False)
utils/convert-ms-to-gguf-bitnet.py:811
↓ 1 callersFunctionload_unquantized
(lazy_tensor: LazyTensor, expected_dtype: Any = None, convert: bool = False)
utils/convert.py:811
↓ 1 callersMethodload_vocab
(self, vocab_types: list[str] | None, model_parent_path: Path)
utils/convert-ms-to-gguf-bitnet.py:1607
↓ 1 callersMethodload_vocab
(self, vocab_types: list[str] | None, model_parent_path: Path)
utils/convert.py:1462
↓ 1 callersFunctionmain
()
setup_env.py:218
↓ 1 callersFunctionmain
()
utils/test_perplexity.py:539
↓ 1 callersFunctionmain
()
utils/quantize_embeddings.py:394
↓ 1 callersFunctionmain
()
utils/convert-hf-to-gguf-bitnet.py:1126
↓ 1 callersFunctionmain
()
utils/convert-helper-bitnet.py:19
↓ 1 callersFunctionmain
(args_in: list[str] | None = None)
utils/convert-ms-to-gguf-bitnet.py:1645
↓ 1 callersFunctionmain
()
utils/generate-dummy-bitnet-model.py:963
↓ 1 callersFunctionmain
()
utils/tune_gemm_config.py:296
↓ 1 callersFunctionmain
(args_in: list[str] | None = None)
utils/convert.py:1500
↓ 1 callersMethodmap_tensor_name
(self, name: str, try_suffixes: Sequence[str] = (".weight", ".bias"))
utils/generate-dummy-bitnet-model.py:182
↓ 1 callersMethodmatch_model_tensor_name
(self, name: str, key: gguf.MODEL_TENSOR, bid: int | None, suffix: str = ".weight")
utils/generate-dummy-bitnet-model.py:169
↓ 1 callersFunctionmerge_multifile_models
(models_plus: list[ModelPlus])
utils/convert-ms-to-gguf-bitnet.py:901
↓ 1 callersFunctionmerge_multifile_models
(models_plus: list[ModelPlus])
utils/convert.py:901
↓ 1 callersFunctionmerge_sharded
(models: list[LazyModel])
utils/convert-ms-to-gguf-bitnet.py:867
↓ 1 callersFunctionmerge_sharded
(models: list[LazyModel])
utils/convert.py:867
↓ 1 callersMethodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
utils/convert-hf-to-gguf-bitnet.py:871
↓ 1 callersMethodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
utils/convert-hf-to-gguf-bitnet.py:977
↓ 1 callersMethodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
utils/generate-dummy-bitnet-model.py:852
↓ 1 callersFunctionnth_multifile_path
Given any path belonging to a multi-file model (e.g. foo.bin.1), return the nth path in the model.
utils/convert-ms-to-gguf-bitnet.py:1508
↓ 1 callersFunctionnth_multifile_path
Given any path belonging to a multi-file model (e.g. foo.bin.1), return the nth path in the model.
utils/convert.py:1363
↓ 1 callersFunctionpack_experts_lazy
(lazy_tensors: list[LazyTensor])
utils/convert.py:946
↓ 1 callersFunctionparse_args
()
setup_env.py:224
↓ 1 callersFunctionparse_args
()
utils/e2e_benchmark.py:48
↓ 1 callersFunctionparse_args
()
utils/convert-hf-to-gguf-bitnet.py:1095
↓ 1 callersFunctionparse_args
()
utils/generate-dummy-bitnet-model.py:1019
↓ 1 callersMethodparse_benchmark_output
Parse benchmark output to extract t/s data (mean±std) Args: output: Benchmark command output output_
utils/quantize_embeddings.py:187
↓ 1 callersMethodparse_perplexity
Parse perplexity value (mean±std format) from llama-perplexity output.
utils/test_perplexity.py:207
↓ 1 callersMethodparse_throughput
Parse pp128 throughput from output
utils/tune_gemm_config.py:93
← previousnext →101–200 of 397, ranked by callers