Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tele-AI/Telechat
/ functions
Functions
680 in github.com/Tele-AI/Telechat
⨍
Functions
680
◇
Types & classes
127
↳
Endpoints
2
↓ 1 callers
Method
_is_printable
Checks whether tokens can be decoded or not
models/12B-V2_8bit/generation_utils.py:148
↓ 1 callers
Method
_is_printable
Checks whether tokens can be decoded or not
models/12B_8bit/generation_utils.py:148
↓ 1 callers
Method
_is_printable
Checks whether tokens can be decoded or not
models/12B-V2/generation_utils.py:148
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for self-attention.
models/7B_8bit/modeling_telechat.py:218
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for self-attention.
models/12B_4bit/modeling_telechat.py:218
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for self-attention.
models/7B/modeling_telechat.py:218
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for self-attention.
models/12B/modeling_telechat.py:218
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for self-attention.
models/7B_4bit/modeling_telechat.py:218
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for self-attention.
models/12B-V2_8bit/modeling_telechat.py:218
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for self-attention.
models/12B_8bit/modeling_telechat.py:218
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for self-attention.
models/12B-V2/modeling_telechat.py:218
↓ 1 callers
Method
_merge_heads
(self, x: torch.Tensor)
models/7B_8bit/modeling_telechat.py:392
↓ 1 callers
Method
_merge_heads
(self, x: torch.Tensor)
models/12B_4bit/modeling_telechat.py:392
↓ 1 callers
Method
_merge_heads
(self, x: torch.Tensor)
models/7B/modeling_telechat.py:392
↓ 1 callers
Method
_merge_heads
(self, x: torch.Tensor)
models/12B/modeling_telechat.py:392
↓ 1 callers
Method
_merge_heads
(self, x: torch.Tensor)
models/7B_4bit/modeling_telechat.py:392
↓ 1 callers
Method
_merge_heads
(self, x: torch.Tensor)
models/12B-V2_8bit/modeling_telechat.py:392
↓ 1 callers
Method
_merge_heads
(self, x: torch.Tensor)
models/12B_8bit/modeling_telechat.py:392
↓ 1 callers
Method
_merge_heads
(self, x: torch.Tensor)
models/12B-V2/modeling_telechat.py:392
↓ 1 callers
Method
_prepare_attn_mask
( self, attention_mask: torch.Tensor, input_shape: Tuple[int, int], past_key_values_length: int
models/7B_8bit/modeling_telechat.py:615
↓ 1 callers
Method
_prepare_attn_mask
( self, attention_mask: torch.Tensor, input_shape: Tuple[int, int], past_key_values_length: int
models/12B_4bit/modeling_telechat.py:615
↓ 1 callers
Method
_prepare_attn_mask
( self, attention_mask: torch.Tensor, input_shape: Tuple[int, int], past_key_values_length: int
models/7B/modeling_telechat.py:615
↓ 1 callers
Method
_prepare_attn_mask
( self, attention_mask: torch.Tensor, input_shape: Tuple[int, int], past_key_values_length: int
models/12B/modeling_telechat.py:615
↓ 1 callers
Method
_prepare_attn_mask
( self, attention_mask: torch.Tensor, input_shape: Tuple[int, int], past_key_values_length: int
models/7B_4bit/modeling_telechat.py:615
↓ 1 callers
Method
_prepare_attn_mask
( self, attention_mask: torch.Tensor, input_shape: Tuple[int, int], past_key_values_length: int
models/12B-V2_8bit/modeling_telechat.py:615
↓ 1 callers
Method
_prepare_attn_mask
( self, attention_mask: torch.Tensor, input_shape: Tuple[int, int], past_key_values_length: int
models/12B_8bit/modeling_telechat.py:615
↓ 1 callers
Method
_prepare_attn_mask
( self, attention_mask: torch.Tensor, input_shape: Tuple[int, int], past_key_values_length: int
models/12B-V2/modeling_telechat.py:615
↓ 1 callers
Method
_transfer_from_list
(self, history)
models/7B_8bit/generation_utils.py:19
↓ 1 callers
Method
_transfer_from_list
(self, history)
models/12B_4bit/generation_utils.py:19
↓ 1 callers
Method
_transfer_from_list
(self, history)
models/7B/generation_utils.py:19
↓ 1 callers
Method
_transfer_from_list
(self, history)
models/12B/generation_utils.py:19
↓ 1 callers
Method
_transfer_from_list
(self, history)
models/7B_4bit/generation_utils.py:19
↓ 1 callers
Method
_transfer_from_list
(self, history)
models/12B-V2_8bit/generation_utils.py:19
↓ 1 callers
Method
_transfer_from_list
(self, history)
models/12B_8bit/generation_utils.py:19
↓ 1 callers
Method
_transfer_from_list
(self, history)
models/12B-V2/generation_utils.py:19
↓ 1 callers
Function
_z3_params_to_fetch
(param_list)
deepspeed-telechat/utils/utils.py:101
↓ 1 callers
Method
backward
(ctx, grad_output: torch.Tensor)
models/7B/modeling_telechat.py:304
↓ 1 callers
Function
build_example
(question, A, B, C, D, with_answer: bool = True)
evaluation/score_CEVAL.py:68
↓ 1 callers
Method
build_inputs_for_chat
check history and build inputs here
models/7B_8bit/modeling_telechat.py:881
↓ 1 callers
Method
build_inputs_for_chat
check history and build inputs here
models/12B_4bit/modeling_telechat.py:881
↓ 1 callers
Method
build_inputs_for_chat
check history and build inputs here
models/7B/modeling_telechat.py:881
↓ 1 callers
Method
build_inputs_for_chat
check history and build inputs here
models/12B/modeling_telechat.py:881
↓ 1 callers
Method
build_inputs_for_chat
check history and build inputs here
models/7B_4bit/modeling_telechat.py:881
↓ 1 callers
Method
build_inputs_for_chat
check history and build inputs here
models/12B-V2_8bit/modeling_telechat.py:881
↓ 1 callers
Method
build_inputs_for_chat
check history and build inputs here
models/12B_8bit/modeling_telechat.py:881
↓ 1 callers
Method
build_inputs_for_chat
check history and build inputs here
models/12B-V2/modeling_telechat.py:881
↓ 1 callers
Method
clear_cache
(self)
models/7B_8bit/generation_utils.py:130
↓ 1 callers
Method
clear_cache
(self)
models/12B_4bit/generation_utils.py:132
↓ 1 callers
Method
clear_cache
(self)
models/7B/generation_utils.py:130
↓ 1 callers
Method
clear_cache
(self)
models/12B/generation_utils.py:132
↓ 1 callers
Method
clear_cache
(self)
models/7B_4bit/generation_utils.py:130
↓ 1 callers
Method
clear_cache
(self)
models/12B-V2_8bit/generation_utils.py:132
↓ 1 callers
Method
clear_cache
(self)
models/12B_8bit/generation_utils.py:132
↓ 1 callers
Method
clear_cache
(self)
models/12B-V2/generation_utils.py:132
↓ 1 callers
Function
convert_linear_layer_to_lora
(model, part_module_name, lora_dim=0,
deepspeed-telechat/utils/module/lora.py:86
↓ 1 callers
Function
create_dataset
( dataset_name, dataset_weight, output_path, seed)
deepspeed-telechat/utils/data/data_utils.py:88
↓ 1 callers
Function
create_hf_telechat
(model_name_or_path, precision, ds_config=None,
deepspeed-telechat/sft/main.py:191
↓ 1 callers
Function
create_prompt_dataset
Creates the dataset
deepspeed-telechat/utils/data/data_utils.py:167
↓ 1 callers
Function
extract_answer_option
(text)
evaluation/score_CEVAL.py:80
↓ 1 callers
Method
from_quantized
load quantized model from local disk
quant/modeling_telechat_gptq.py:102
↓ 1 callers
Method
fuse_lora_weight
(self)
deepspeed-telechat/utils/module/lora.py:63
↓ 1 callers
Function
get_args
()
evaluation/score_CEVAL.py:124
↓ 1 callers
Function
get_capital_answer
(text)
evaluation/score_MMLU.py:33
↓ 1 callers
Function
get_dataset
(data_path, seed)
deepspeed-telechat/utils/data/data_utils.py:200
↓ 1 callers
Function
get_few_shot_prompt
(filename)
evaluation/score_MMLU.py:9
↓ 1 callers
Function
get_input_data
(test_file_path,filename)
evaluation/score_MMLU.py:22
↓ 1 callers
Method
get_input_embeddings
(self, input_ids: torch.Tensor)
service/vllm_inf/telechat_12B.py:310
↓ 1 callers
Method
get_input_embeddings
(self)
models/7B/modeling_telechat.py:612
↓ 1 callers
Method
get_mscale
(self, scale=1)
models/7B_8bit/modeling_telechat.py:94
↓ 1 callers
Method
get_mscale
(self, scale=1)
models/12B_4bit/modeling_telechat.py:94
↓ 1 callers
Method
get_mscale
(self, scale=1)
models/7B/modeling_telechat.py:94
↓ 1 callers
Method
get_mscale
(self, scale=1)
models/12B/modeling_telechat.py:94
↓ 1 callers
Method
get_mscale
(self, scale=1)
models/7B_4bit/modeling_telechat.py:94
↓ 1 callers
Method
get_mscale
(self, scale=1)
models/12B-V2_8bit/modeling_telechat.py:94
↓ 1 callers
Method
get_mscale
(self, scale=1)
models/12B_8bit/modeling_telechat.py:94
↓ 1 callers
Method
get_mscale
(self, scale=1)
models/12B-V2/modeling_telechat.py:94
↓ 1 callers
Method
get_ntk_alpha
(self, true_seq_len)
models/7B_8bit/modeling_telechat.py:99
↓ 1 callers
Method
get_ntk_alpha
(self, true_seq_len)
models/12B_4bit/modeling_telechat.py:99
↓ 1 callers
Method
get_ntk_alpha
(self, true_seq_len)
models/7B/modeling_telechat.py:99
↓ 1 callers
Method
get_ntk_alpha
(self, true_seq_len)
models/12B/modeling_telechat.py:99
↓ 1 callers
Method
get_ntk_alpha
(self, true_seq_len)
models/7B_4bit/modeling_telechat.py:99
↓ 1 callers
Method
get_ntk_alpha
(self, true_seq_len)
models/12B-V2_8bit/modeling_telechat.py:99
↓ 1 callers
Method
get_ntk_alpha
(self, true_seq_len)
models/12B_8bit/modeling_telechat.py:99
↓ 1 callers
Method
get_ntk_alpha
(self, true_seq_len)
models/12B-V2/modeling_telechat.py:99
↓ 1 callers
Function
get_optimizer_grouped_parameters
(model, weight_decay, no_decay_name_
deepspeed-telechat/utils/utils.py:73
↓ 1 callers
Function
get_raw_dataset
(dataset_name, output_path, seed)
deepspeed-telechat/utils/data/data_utils.py:24
↓ 1 callers
Function
get_shuffle_idx
(seed, size)
deepspeed-telechat/utils/data/data_utils.py:28
↓ 1 callers
Method
get_train_data
(self)
deepspeed-telechat/utils/data/raw_datasets.py:36
↓ 1 callers
Function
get_train_ds_config
(offload, stage=2, precision="fp16")
deepspeed-telechat/utils/ds_utils.py:8
↓ 1 callers
Function
get_weight_data
(current_dataset, dataset_weight)
deepspeed-telechat/utils/data/data_utils.py:55
↓ 1 callers
Function
init_chat_history
()
service/web_demo.py:15
↓ 1 callers
Function
load_telechat_tokenizer
(tokenizer_path, fast_tokenizer=True)
deepspeed-telechat/sft/process_data.py:78
↓ 1 callers
Function
load_telechat_tokenizer
(model_name_or_path, fast_tokenizer=True)
deepspeed-telechat/sft/main.py:184
↓ 1 callers
Function
loss_fn
(logits, labels, user_token_id, bot_token_id, end_token_id)
deepspeed-telechat/sft/main.py:222
↓ 1 callers
Function
main
()
quant/telechat_quantized_infer_demo.py:9
↓ 1 callers
Function
main
()
deepspeed-telechat/sft/process_data.py:85
↓ 1 callers
Function
main
()
deepspeed-telechat/sft/main.py:241
↓ 1 callers
Function
main
()
inference_telechat/telechat_infer_demo.py:9
↓ 1 callers
Function
main
()
service/web_demo.py:30
↓ 1 callers
Function
make_model_gradient_checkpointing_compatible
(model)
deepspeed-telechat/utils/module/lora.py:177
← previous
next →
101–200 of 680, ranked by callers