MCPcopy Create free account

hub / github.com/Tele-AI/Telechat / functions

Functions680 in github.com/Tele-AI/Telechat

Method_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
models/12B/tokenization_telechat.py:90
Method_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
models/12B-V2_8bit/tokenization_telechat.py:90
Method_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
models/12B_8bit/tokenization_telechat.py:90
Method_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
models/12B-V2/tokenization_telechat.py:90
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
models/12B_4bit/tokenization_telechat.py:86
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
models/12B/tokenization_telechat.py:86
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
models/12B-V2_8bit/tokenization_telechat.py:86
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
models/12B_8bit/tokenization_telechat.py:86
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
models/12B-V2/tokenization_telechat.py:86
Method_init_weights
Initialize the weights.
models/7B_8bit/modeling_telechat.py:575
Method_init_weights
Initialize the weights.
models/12B_4bit/modeling_telechat.py:575
Method_init_weights
Initialize the weights.
models/7B/modeling_telechat.py:575
Method_init_weights
Initialize the weights.
models/12B/modeling_telechat.py:575
Method_init_weights
Initialize the weights.
models/7B_4bit/modeling_telechat.py:575
Method_init_weights
Initialize the weights.
models/12B-V2_8bit/modeling_telechat.py:575
Method_init_weights
Initialize the weights.
models/12B_8bit/modeling_telechat.py:575
Method_init_weights
Initialize the weights.
models/12B-V2/modeling_telechat.py:575
Method_set_gradient_checkpointing
(self, module: nn.Module, value: bool = False)
models/7B_8bit/modeling_telechat.py:591
Method_set_gradient_checkpointing
(self, module: nn.Module, value: bool = False)
models/12B_4bit/modeling_telechat.py:591
Method_set_gradient_checkpointing
(self, module: nn.Module, value: bool = False)
models/7B/modeling_telechat.py:591
Method_set_gradient_checkpointing
(self, module: nn.Module, value: bool = False)
models/12B/modeling_telechat.py:591
Method_set_gradient_checkpointing
(self, module: nn.Module, value: bool = False)
models/7B_4bit/modeling_telechat.py:591
Method_set_gradient_checkpointing
(self, module: nn.Module, value: bool = False)
models/12B-V2_8bit/modeling_telechat.py:591
Method_set_gradient_checkpointing
(self, module: nn.Module, value: bool = False)
models/12B_8bit/modeling_telechat.py:591
Method_set_gradient_checkpointing
(self, module: nn.Module, value: bool = False)
models/12B-V2/modeling_telechat.py:591
Method_tokenize
Returns a tokenized string.
models/12B_4bit/tokenization_telechat.py:82
Method_tokenize
Returns a tokenized string.
models/12B/tokenization_telechat.py:82
Method_tokenize
Returns a tokenized string.
models/12B-V2_8bit/tokenization_telechat.py:82
Method_tokenize
Returns a tokenized string.
models/12B_8bit/tokenization_telechat.py:82
Method_tokenize
Returns a tokenized string.
models/12B-V2/tokenization_telechat.py:82
Methodappend_left
(self, message)
models/7B_8bit/generation_utils.py:30
Methodappend_left
(self, message)
models/12B_4bit/generation_utils.py:32
Methodappend_left
(self, message)
models/7B/generation_utils.py:30
Methodappend_left
(self, message)
models/12B/generation_utils.py:32
Methodappend_left
(self, message)
models/7B_4bit/generation_utils.py:30
Methodappend_left
(self, message)
models/12B-V2_8bit/generation_utils.py:32
Methodappend_left
(self, message)
models/12B_8bit/generation_utils.py:32
Methodappend_left
(self, message)
models/12B-V2/generation_utils.py:32
Functionapply_rotary_pos_emb_torch
(q, k, cos, sin, offset: int = 0)
models/7B_8bit/modeling_telechat.py:136
Functionapply_rotary_pos_emb_torch
(q, k, cos, sin, offset: int = 0)
models/12B_4bit/modeling_telechat.py:136
Functionapply_rotary_pos_emb_torch
(q, k, cos, sin, offset: int = 0)
models/7B/modeling_telechat.py:136
Functionapply_rotary_pos_emb_torch
(q, k, cos, sin, offset: int = 0)
models/12B/modeling_telechat.py:136
Functionapply_rotary_pos_emb_torch
(q, k, cos, sin, offset: int = 0)
models/7B_4bit/modeling_telechat.py:136
Functionapply_rotary_pos_emb_torch
(q, k, cos, sin, offset: int = 0)
models/12B-V2_8bit/modeling_telechat.py:136
Functionapply_rotary_pos_emb_torch
(q, k, cos, sin, offset: int = 0)
models/12B_8bit/modeling_telechat.py:136
Functionapply_rotary_pos_emb_torch
(q, k, cos, sin, offset: int = 0)
models/12B-V2/modeling_telechat.py:136
Methodbackward
(ctx, grad_output: torch.Tensor)
models/7B_8bit/modeling_telechat.py:304
Methodbackward
(ctx, grad_output: torch.Tensor)
models/12B_4bit/modeling_telechat.py:304
Methodbackward
(ctx, grad_output: torch.Tensor)
models/12B/modeling_telechat.py:304
Methodbackward
(ctx, grad_output: torch.Tensor)
models/7B_4bit/modeling_telechat.py:304
Methodbackward
(ctx, grad_output: torch.Tensor)
models/12B-V2_8bit/modeling_telechat.py:304
Methodbackward
(ctx, grad_output: torch.Tensor)
models/12B_8bit/modeling_telechat.py:304
Methodbackward
(ctx, grad_output: torch.Tensor)
models/12B-V2/modeling_telechat.py:304
Methodbuild_inputs_with_special_tokens
(self, token_ids_0, token_ids_1=None)
models/12B_4bit/tokenization_telechat.py:141
Methodbuild_inputs_with_special_tokens
(self, token_ids_0, token_ids_1=None)
models/12B/tokenization_telechat.py:141
Methodbuild_inputs_with_special_tokens
(self, token_ids_0, token_ids_1=None)
models/12B-V2_8bit/tokenization_telechat.py:141
Methodbuild_inputs_with_special_tokens
(self, token_ids_0, token_ids_1=None)
models/12B_8bit/tokenization_telechat.py:141
Methodbuild_inputs_with_special_tokens
(self, token_ids_0, token_ids_1=None)
models/12B-V2/tokenization_telechat.py:141
Methodchat
Args: tokenizer: the tokenizer of telechat question: question which the model reply in this turn hi
models/7B_8bit/modeling_telechat.py:833
Methodchat
Args: tokenizer: the tokenizer of telechat question: question which the model reply in this turn histor
models/12B_4bit/modeling_telechat.py:833
Methodchat
Args: tokenizer: the tokenizer of telechat question: question which the model reply in this turn hi
models/12B/modeling_telechat.py:833
Methodchat
Args: tokenizer: the tokenizer of telechat question: question which the model reply in this turn hi
models/7B_4bit/modeling_telechat.py:833
Methodchat
Args: tokenizer: the tokenizer of telechat question: question which the model reply in this turn histor
models/12B-V2_8bit/modeling_telechat.py:833
Methodchat
Args: tokenizer: the tokenizer of telechat question: question which the model reply in this turn histor
models/12B_8bit/modeling_telechat.py:833
Methodchat
Args: tokenizer: the tokenizer of telechat question: question which the model reply in this turn histor
models/12B-V2/modeling_telechat.py:833
Functionclear_chat_history
()
service/web_demo.py:11
Methodcompute_logits
(self, hidden_states: torch.Tensor, sampling_metadata: SamplingMetadata)
service/vllm_inf/telechat_12B.py:410
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
models/12B_4bit/tokenization_telechat.py:95
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
models/12B/tokenization_telechat.py:95
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
models/12B-V2_8bit/tokenization_telechat.py:95
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
models/12B_8bit/tokenization_telechat.py:95
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
models/12B-V2/tokenization_telechat.py:95
Methodcreate_custom_forward
(module)
models/7B_8bit/modeling_telechat.py:700
Methodcreate_custom_forward
(module)
models/12B_4bit/modeling_telechat.py:700
Methodcreate_custom_forward
(module)
models/7B/modeling_telechat.py:700
Methodcreate_custom_forward
(module)
models/12B/modeling_telechat.py:700
Methodcreate_custom_forward
(module)
models/7B_4bit/modeling_telechat.py:700
Methodcreate_custom_forward
(module)
models/12B-V2_8bit/modeling_telechat.py:700
Methodcreate_custom_forward
(module)
models/12B_8bit/modeling_telechat.py:700
Methodcreate_custom_forward
(module)
models/12B-V2/modeling_telechat.py:700
Methodcreate_token_type_ids_from_sequences
Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT sequence pair mask has the
models/12B_4bit/tokenization_telechat.py:189
Methodcreate_token_type_ids_from_sequences
Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT sequence pair mask has the
models/12B/tokenization_telechat.py:189
Methodcreate_token_type_ids_from_sequences
Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT sequence pair mask has the
models/12B-V2_8bit/tokenization_telechat.py:189
Methodcreate_token_type_ids_from_sequences
Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT sequence pair mask has the
models/12B_8bit/tokenization_telechat.py:189
Methodcreate_token_type_ids_from_sequences
Creates a mask from the two sequences passed to be used in a sequence-pair classification task. An ALBERT sequence pair mask has the
models/12B-V2/tokenization_telechat.py:189
Methodcustom_forward
(*inputs)
models/7B_8bit/modeling_telechat.py:701
Methodcustom_forward
(*inputs)
models/12B_4bit/modeling_telechat.py:701
Methodcustom_forward
(*inputs)
models/7B/modeling_telechat.py:701
Methodcustom_forward
(*inputs)
models/12B/modeling_telechat.py:701
Methodcustom_forward
(*inputs)
models/7B_4bit/modeling_telechat.py:701
Methodcustom_forward
(*inputs)
models/12B-V2_8bit/modeling_telechat.py:701
Methodcustom_forward
(*inputs)
models/12B_8bit/modeling_telechat.py:701
Methodcustom_forward
(*inputs)
models/12B-V2/modeling_telechat.py:701
Functiondoc_gptDialog_v2
(item: dict)
service/telechat_service.py:108
Functiondoc_gptDialog_v3
(item: dict, )
service/telechat_service.py:150
Methodend
Flushes any remaining cache and prints a newline to stdout.
models/7B_8bit/generation_utils.py:120
Methodend
Flushes any remaining cache and prints a newline to stdout.
models/12B_4bit/generation_utils.py:123
Methodend
Flushes any remaining cache and prints a newline to stdout.
models/7B/generation_utils.py:120
Methodend
Flushes any remaining cache and prints a newline to stdout.
models/12B/generation_utils.py:123
Methodend
Flushes any remaining cache and prints a newline to stdout.
models/7B_4bit/generation_utils.py:120
← previousnext →401–500 of 680, ranked by callers