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
↓ 27 callers
Method
append
(self, message)
models/7B/generation_utils.py:25
↓ 21 callers
Method
from_pretrained
load un-quantized pretrained model to cpu
quant/modeling_telechat_gptq.py:31
↓ 13 callers
Method
pop
(self)
models/7B/generation_utils.py:35
↓ 11 callers
Function
print_rank_0
(msg, rank=0)
deepspeed-telechat/utils/utils.py:14
↓ 10 callers
Function
response_data
(seqid, code, message, flag, data)
service/telechat_service.py:88
↓ 9 callers
Method
__init__
(self, config: TelechatConfig)
models/7B_8bit/modeling_telechat.py:494
↓ 9 callers
Method
__init__
(self, config: TelechatConfig)
models/12B_4bit/modeling_telechat.py:494
↓ 9 callers
Method
__init__
(self, config: TelechatConfig)
models/7B/modeling_telechat.py:494
↓ 9 callers
Method
__init__
(self, config: TelechatConfig)
models/12B/modeling_telechat.py:494
↓ 9 callers
Method
__init__
(self, config: TelechatConfig)
models/7B_4bit/modeling_telechat.py:494
↓ 9 callers
Method
__init__
(self, config: TelechatConfig)
models/12B-V2_8bit/modeling_telechat.py:494
↓ 9 callers
Method
__init__
(self, config: TelechatConfig)
models/12B_8bit/modeling_telechat.py:494
↓ 9 callers
Method
__init__
(self, config: TelechatConfig)
models/12B-V2/modeling_telechat.py:494
↓ 7 callers
Method
chat
Args: tokenizer: the tokenizer of telechat question: question which the model reply in this turn hi
models/7B/modeling_telechat.py:833
↓ 7 callers
Method
eval
(self)
deepspeed-telechat/utils/module/lora.py:52
↓ 7 callers
Method
update
(self, message)
models/12B_4bit/generation_utils.py:46
↓ 7 callers
Method
update
(self, content: str)
models/7B/generation_utils.py:43
↓ 7 callers
Method
update
(self, message)
models/12B/generation_utils.py:46
↓ 7 callers
Method
update
(self, message)
models/12B-V2_8bit/generation_utils.py:46
↓ 7 callers
Method
update
(self, message)
models/12B_8bit/generation_utils.py:46
↓ 7 callers
Method
update
(self, message)
models/12B-V2/generation_utils.py:46
↓ 6 callers
Method
append
(self, message)
models/12B_4bit/generation_utils.py:26
↓ 6 callers
Method
append
(self, message)
models/12B/generation_utils.py:26
↓ 6 callers
Method
append
(self, message)
models/12B-V2_8bit/generation_utils.py:26
↓ 6 callers
Method
append
(self, message)
models/12B_8bit/generation_utils.py:26
↓ 6 callers
Method
append
(self, message)
models/12B-V2/generation_utils.py:26
↓ 6 callers
Method
update
(self, content: str)
models/7B_8bit/generation_utils.py:43
↓ 6 callers
Method
update
(self, content: str)
models/7B_4bit/generation_utils.py:43
↓ 5 callers
Method
append
(self, message)
models/7B_8bit/generation_utils.py:25
↓ 5 callers
Method
append
(self, message)
models/7B_4bit/generation_utils.py:25
↓ 4 callers
Method
__init__
( self, hidden_size: int, intermediate_size: int, hidden_act: str, qua
service/vllm_inf/telechat_12B.py:62
↓ 4 callers
Method
chat
shortcut for model.chat
quant/modeling_telechat_gptq.py:350
↓ 3 callers
Method
pop
(self)
models/7B_8bit/generation_utils.py:35
↓ 3 callers
Method
pop
(self)
models/12B_4bit/generation_utils.py:38
↓ 3 callers
Method
pop
(self)
models/12B/generation_utils.py:38
↓ 3 callers
Method
pop
(self)
models/7B_4bit/generation_utils.py:35
↓ 3 callers
Method
pop
(self)
models/12B-V2_8bit/generation_utils.py:38
↓ 3 callers
Method
pop
(self)
models/12B_8bit/generation_utils.py:38
↓ 3 callers
Method
pop
(self)
models/12B-V2/generation_utils.py:38
↓ 2 callers
Function
_z3_params_to_fetch
(param_list)
deepspeed-telechat/utils/module/lora.py:123
↓ 2 callers
Function
check_ex
(do_sample, max_length, top_k, top_p, temperature, repetition_penalty)
service/telechat_service.py:48
↓ 2 callers
Function
convert_lora_to_linear_layer
(model)
deepspeed-telechat/utils/module/lora.py:132
↓ 2 callers
Function
dropout_add
Dropout add function Args: x (`torch.tensor`, *required*): input tensor residual (`torch.tensor`, *require
models/7B_8bit/modeling_telechat.py:248
↓ 2 callers
Function
dropout_add
Dropout add function Args: x (`torch.tensor`, *required*): input tensor residual (`torch.tensor`, *required*):
models/12B_4bit/modeling_telechat.py:248
↓ 2 callers
Function
dropout_add
Dropout add function Args: x (`torch.tensor`, *required*): input tensor residual (`torch.tensor`, *require
models/7B/modeling_telechat.py:248
↓ 2 callers
Function
dropout_add
Dropout add function Args: x (`torch.tensor`, *required*): input tensor residual (`torch.tensor`, *require
models/12B/modeling_telechat.py:248
↓ 2 callers
Function
dropout_add
Dropout add function Args: x (`torch.tensor`, *required*): input tensor residual (`torch.tensor`, *require
models/7B_4bit/modeling_telechat.py:248
↓ 2 callers
Function
dropout_add
Dropout add function Args: x (`torch.tensor`, *required*): input tensor residual (`torch.tensor`, *required*):
models/12B-V2_8bit/modeling_telechat.py:248
↓ 2 callers
Function
dropout_add
Dropout add function Args: x (`torch.tensor`, *required*): input tensor residual (`torch.tensor`, *required*):
models/12B_8bit/modeling_telechat.py:248
↓ 2 callers
Function
dropout_add
Dropout add function Args: x (`torch.tensor`, *required*): input tensor residual (`torch.tensor`, *required*):
models/12B-V2/modeling_telechat.py:248
↓ 2 callers
Method
on_finalized_text
Put the text tuple in the queue.
models/7B_8bit/generation_utils.py:137
↓ 2 callers
Method
on_finalized_text
Put the text tuple in the queue.
models/12B_4bit/generation_utils.py:139
↓ 2 callers
Method
on_finalized_text
Put the text tuple in the queue.
models/7B/generation_utils.py:137
↓ 2 callers
Method
on_finalized_text
Put the text tuple in the queue.
models/12B/generation_utils.py:139
↓ 2 callers
Method
on_finalized_text
Put the text tuple in the queue.
models/7B_4bit/generation_utils.py:137
↓ 2 callers
Method
on_finalized_text
Put the text tuple in the queue.
models/12B-V2_8bit/generation_utils.py:139
↓ 2 callers
Method
on_finalized_text
Put the text tuple in the queue.
models/12B_8bit/generation_utils.py:139
↓ 2 callers
Method
on_finalized_text
Put the text tuple in the queue.
models/12B-V2/generation_utils.py:139
↓ 2 callers
Function
parse_data
(dialog)
service/telechat_service.py:101
↓ 2 callers
Method
put
put printable text into queue
models/7B_8bit/generation_utils.py:89
↓ 2 callers
Method
put
put printable text into queue
models/12B_4bit/generation_utils.py:92
↓ 2 callers
Method
put
put printable text into queue
models/7B/generation_utils.py:89
↓ 2 callers
Method
put
put printable text into queue
models/12B/generation_utils.py:92
↓ 2 callers
Method
put
put printable text into queue
models/7B_4bit/generation_utils.py:89
↓ 2 callers
Method
put
put printable text into queue
models/12B-V2_8bit/generation_utils.py:92
↓ 2 callers
Method
put
put printable text into queue
models/12B_8bit/generation_utils.py:92
↓ 2 callers
Method
put
put printable text into queue
models/12B-V2/generation_utils.py:92
↓ 2 callers
Function
rotate_half
(x)
models/7B_8bit/modeling_telechat.py:131
↓ 2 callers
Function
rotate_half
(x)
models/12B_4bit/modeling_telechat.py:131
↓ 2 callers
Function
rotate_half
(x)
models/7B/modeling_telechat.py:131
↓ 2 callers
Function
rotate_half
(x)
models/12B/modeling_telechat.py:131
↓ 2 callers
Function
rotate_half
(x)
models/7B_4bit/modeling_telechat.py:131
↓ 2 callers
Function
rotate_half
(x)
models/12B-V2_8bit/modeling_telechat.py:131
↓ 2 callers
Function
rotate_half
(x)
models/12B_8bit/modeling_telechat.py:131
↓ 2 callers
Function
rotate_half
(x)
models/12B-V2/modeling_telechat.py:131
↓ 2 callers
Function
save_hf_format
(model, tokenizer, args, sub_folder="")
deepspeed-telechat/utils/utils.py:37
↓ 2 callers
Function
save_zero_three_model
(model, tokenizer, args, sub_folder="")
deepspeed-telechat/utils/utils.py:107
↓ 2 callers
Function
set_random_seed
(seed)
deepspeed-telechat/utils/utils.py:58
↓ 2 callers
Function
telechat_gelu_forward
Custom bias GELU function. Adapted from Megatron-DeepSpeed code. Here we use a simple implementation (inference) to make the model jitable.
models/7B_8bit/modeling_telechat.py:267
↓ 2 callers
Function
telechat_gelu_forward
Custom bias GELU function. Adapted from Megatron-DeepSpeed code. Here we use a simple implementation (inference) to make the model jitable.
models/12B_4bit/modeling_telechat.py:267
↓ 2 callers
Function
telechat_gelu_forward
Custom bias GELU function. Adapted from Megatron-DeepSpeed code. Here we use a simple implementation (inference) to make the model jitable.
models/7B/modeling_telechat.py:267
↓ 2 callers
Function
telechat_gelu_forward
Custom bias GELU function. Adapted from Megatron-DeepSpeed code. Here we use a simple implementation (inference) to make the model jitable.
models/12B/modeling_telechat.py:267
↓ 2 callers
Function
telechat_gelu_forward
Custom bias GELU function. Adapted from Megatron-DeepSpeed code. Here we use a simple implementation (inference) to make the model jitable.
models/7B_4bit/modeling_telechat.py:267
↓ 2 callers
Function
telechat_gelu_forward
Custom bias GELU function. Adapted from Megatron-DeepSpeed code. Here we use a simple implementation (inference) to make the model jitable.
models/12B-V2_8bit/modeling_telechat.py:267
↓ 2 callers
Function
telechat_gelu_forward
Custom bias GELU function. Adapted from Megatron-DeepSpeed code. Here we use a simple implementation (inference) to make the model jitable.
models/12B_8bit/modeling_telechat.py:267
↓ 2 callers
Function
telechat_gelu_forward
Custom bias GELU function. Adapted from Megatron-DeepSpeed code. Here we use a simple implementation (inference) to make the model jitable.
models/12B-V2/modeling_telechat.py:267
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
models/7B_8bit/modeling_telechat.py:237
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
models/12B_4bit/modeling_telechat.py:237
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
models/7B/modeling_telechat.py:237
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
models/12B/modeling_telechat.py:237
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
models/7B_4bit/modeling_telechat.py:237
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
models/12B-V2_8bit/modeling_telechat.py:237
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
models/12B_8bit/modeling_telechat.py:237
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[batch_size, src_length]` to `[batch_size, 1, tgt_length, src_length]`.
models/12B-V2/modeling_telechat.py:237
↓ 1 callers
Function
_gc
()
service/telechat_service.py:24
↓ 1 callers
Method
_is_printable
Checks whether tokens can be decoded or not
models/7B_8bit/generation_utils.py:145
↓ 1 callers
Method
_is_printable
Checks whether tokens can be decoded or not
models/12B_4bit/generation_utils.py:148
↓ 1 callers
Method
_is_printable
Checks whether tokens can be decoded or not
models/7B/generation_utils.py:145
↓ 1 callers
Method
_is_printable
Checks whether tokens can be decoded or not
models/12B/generation_utils.py:148
↓ 1 callers
Method
_is_printable
Checks whether tokens can be decoded or not
models/7B_4bit/generation_utils.py:145
next →
1–100 of 680, ranked by callers