MCPcopy Create free account

hub / github.com/1694439208/GOT-OCR-Inference / functions

Functions190 in github.com/1694439208/GOT-OCR-Inference

↓ 46 callersMethodfind_hparam
(self, keys: Iterable[str], optional: bool = False)
convert_hf_to_gguf.py:121
↓ 42 callersMethodmap_tensor_name
(self, name: str, try_suffixes: Sequence[str] = (".weight", ".bias"))
convert_hf_to_gguf.py:211
↓ 25 callersMethodformat_tensor_name
(self, key: gguf.MODEL_TENSOR, bid: int | None = None, suffix: str = ".weight")
convert_hf_to_gguf.py:189
↓ 14 callersMethod_set_vocab_sentencepiece
(self, add_to_gguf=True)
convert_hf_to_gguf.py:737
↓ 14 callersMethodset_gguf_parameters
(self)
convert_hf_to_gguf.py:217
↓ 12 callersMethodpermute
(weights: Tensor, n_head: int, n_head_kv: int | None)
convert_hf_to_gguf.py:1564
↓ 10 callersMethod__init__
(self, dir_model: Path, ftype: gguf.LlamaFileType, fname_out: Path, is_big_endian: bool = False,
convert_hf_to_gguf.py:72
↓ 9 callersMethod_set_vocab_gpt2
(self)
convert_hf_to_gguf.py:673
↓ 9 callersMethodprepare_tensors
(self)
convert_hf_to_gguf.py:273
↓ 3 callersMethod_set_vocab_llama_hf
(self)
convert_hf_to_gguf.py:830
↓ 3 callersMethod_set_vocab_qwen
(self)
convert_hf_to_gguf.py:683
↓ 3 callersMethodget_tensors
(self)
convert_hf_to_gguf.py:132
↓ 3 callersMethodget_vocab_base
(self)
convert_hf_to_gguf.py:506
↓ 3 callersMethodget_vocab_base_pre
(self, tokenizer)
convert_hf_to_gguf.py:542
↓ 3 callersMethodmatch_model_tensor_name
(self, name: str, key: gguf.MODEL_TENSOR, bid: int | None, suffix: str = ".weight")
convert_hf_to_gguf.py:198
↓ 3 callersMethodset_vocab
(self)
convert_hf_to_gguf.py:129
↓ 2 callersMethod_reverse_hf_permute
(self, weights: Tensor, n_head: int, n_kv_head: int | None = None)
convert_hf_to_gguf.py:1274
↓ 2 callersMethod_reverse_hf_permute
(self, weights: Tensor, n_head: int, n_kv_head: int | None = None)
convert_hf_to_gguf.py:1839
↓ 2 callersMethod_reverse_hf_permute_part
( self, weights: Tensor, n_part: int, n_head: int, n_head_kv: int | None = None, )
convert_hf_to_gguf.py:1167
↓ 2 callersMethod_set_vocab_builtin
(self, model_name: Literal["gpt-neox", "llama-spm"], vocab_size: int)
convert_hf_to_gguf.py:852
↓ 2 callersMethod_stack_qk_norm
(self, bid: int, n_head: int, norms: dict[str, Tensor], layer_name: str = "q_layernorm")
convert_hf_to_gguf.py:1482
↓ 2 callersMethodbpe
(mergeable_ranks: dict[bytes, int], token: bytes, max_rank: int | None = None)
convert_hf_to_gguf.py:1929
↓ 2 callersMethoddoes_token_look_special
(self, token: str | bytes)
convert_hf_to_gguf.py:482
↓ 2 callersFunctioneval_tokens
(ctx_llama:llama_cpp.llama_context_p, tokens:list[llama_cpp.llama_token], n_batch:int, n_past:llama_cpp.llama_
low_level_api_llama_cpp.py:20
↓ 2 callersFunctioneval_tokens
(ctx_llama:llama_cpp.llama_context_p, tokens:list[llama_cpp.llama_token], n_batch:int, n_past:llama_cpp.llama_
llama1.py:26
↓ 2 callersMethodget_model_part_names
(dir_model: Path, prefix: str, suffix: str)
convert_hf_to_gguf.py:450
↓ 2 callersMethodload_hparams
(dir_model: Path)
convert_hf_to_gguf.py:461
↓ 2 callersMethodmeta_with_dtype_and_shape
(cls, dtype: torch.dtype, shape: tuple[int, ...])
convert_hf_to_gguf.py:4168
↓ 2 callersMethodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:263
↓ 2 callersMethodnumpy
(self)
convert_hf_to_gguf.py:4159
↓ 2 callersMethodprepare_metadata
(self, vocab_only: bool)
convert_hf_to_gguf.py:383
↓ 2 callersMethodtoken_bytes_to_string
(b)
convert_hf_to_gguf.py:1923
↓ 1 callersMethod_make_divisible
(v: float | int, divisor: int)
convert_hf_to_gguf.py:3126
↓ 1 callersMethod_reverse_hf_part
(self, weights: Tensor, n_part: int)
convert_hf_to_gguf.py:1173
↓ 1 callersMethod_reverse_hf_permute
(self, weights: Tensor, n_head: int, n_kv_head: int | None = None)
convert_hf_to_gguf.py:1157
↓ 1 callersFunctionfloat_list_to_ctypes_array
(float_list)
low_level_api_llama_cpp.py:41
↓ 1 callersFunctionfloat_list_to_ctypes_array
(float_list)
llama1.py:19
↓ 1 callersFunctionfloat_list_to_ctypes_array
(float_list)
llama2.py:8
↓ 1 callersMethodfrom_model_architecture
(cls, arch: str)
convert_hf_to_gguf.py:476
↓ 1 callersMethodfrom_safetensors_slice
(cls, st_slice: Any)
convert_hf_to_gguf.py:4172
↓ 1 callersFunctionmain
()
convert_hf_to_gguf.py:4272
↓ 1 callersFunctionparse_args
()
convert_hf_to_gguf.py:4191
↓ 1 callersMethodset_type
(self)
convert_hf_to_gguf.py:380
↓ 1 callersMethodset_vocab_chatglm3
(self)
convert_hf_to_gguf.py:3801
↓ 1 callersMethodshuffle_attn_output_weight
(self, data_torch)
convert_hf_to_gguf.py:2279
↓ 1 callersMethodshuffle_attn_q_weight
(self, data_torch)
convert_hf_to_gguf.py:2272
↓ 1 callersFunctionsplit_str_to_n_bytes
(split_str: str)
convert_hf_to_gguf.py:4254
↓ 1 callersMethodtensor_force_quant
(self, name: str, new_name: str, bid: int | None, n_dims: int)
convert_hf_to_gguf.py:268
↓ 1 callersMethodweight_quant
(self, weight: Tensor)
convert_hf_to_gguf.py:1669
↓ 1 callersMethodwrite
(self)
convert_hf_to_gguf.py:432
↓ 1 callersMethodwrite_vocab
(self)
convert_hf_to_gguf.py:440
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:1705
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:2513
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:2585
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:2615
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:2980
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:3086
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:3134
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:3433
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:3573
Method__init__
(self, *args, **kwargs)
convert_hf_to_gguf.py:3712
Method__init_subclass__
(cls)
convert_hf_to_gguf.py:115
Method__torch_function__
(cls, func, types, args=(), kwargs=None)
convert_hf_to_gguf.py:4179
Method_create_vocab_sentencepiece
(self)
convert_hf_to_gguf.py:750
Method_reverse_hf_permute
(self, weights: Tensor, n_head: int, n_kv_head: int | None = None)
convert_hf_to_gguf.py:1907
Methodbpe
(mergeable_ranks: dict[bytes, int], token: bytes, max_rank: int | None = None)
convert_hf_to_gguf.py:3875
Methodfind_hparam
(self, keys: Iterable[str], optional: bool = False)
convert_hf_to_gguf.py:3178
Methodfunc
(modelcls: AnyModel)
convert_hf_to_gguf.py:469
Methodget_tensors
(self)
convert_hf_to_gguf.py:3090
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:916
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:971
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1051
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1136
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1260
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1312
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1392
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1450
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1573
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1680
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1713
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1779
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1849
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:1989
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2048
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2286
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2319
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2481
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2571
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2708
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2752
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2799
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2880
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:2953
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:3008
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:3035
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:3184
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:3292
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:3380
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:3551
Methodmodify_tensors
(self, data_torch: Tensor, name: str, bid: int | None)
convert_hf_to_gguf.py:3690
next →1–100 of 190, ranked by callers