Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HonghuiBao2000/LETTER
/ functions
Functions
205 in github.com/HonghuiBao2000/LETTER
⨍
Functions
205
◇
Types & classes
22
↓ 1 callers
Function
parse_test_args
(parser)
LETTER-TIGER/utils.py:79
↓ 1 callers
Function
parse_train_args
(parser)
LETTER-LC-Rec/utils.py:59
↓ 1 callers
Function
parse_train_args
(parser)
LETTER-TIGER/utils.py:54
↓ 1 callers
Function
prefix_allowed_tokens_fn
(candidate_trie)
LETTER-TIGER/generation_trie.py:91
↓ 1 callers
Function
prefix_allowed_tokens_fn
(candidate_trie)
LETTER-TIGER/utils.py:161
↓ 1 callers
Function
preprocess_text
(args)
data_process/amazon_text_emb.py:38
↓ 1 callers
Method
ranking_loss
(self, shift_logits, shift_labels)
LETTER-LC-Rec/modeling_letter.py:33
↓ 1 callers
Method
ranking_loss
(self, lm_logits, labels)
LETTER-TIGER/modeling_letter.py:37
↓ 1 callers
Function
set_device
(gpu_id)
data_process/utils.py:75
↓ 1 callers
Method
set_hyper
(self, temperature)
LETTER-LC-Rec/modeling_letter.py:30
↓ 1 callers
Method
set_hyper
(self,temperature)
LETTER-TIGER/modeling_letter.py:33
↓ 1 callers
Method
set_prompt
(self, prompt_id)
LETTER-LC-Rec/data.py:206
↓ 1 callers
Method
set_prompt
(self, prompt_id)
LETTER-TIGER/data.py:239
↓ 1 callers
Function
test
(args)
LETTER-TIGER/test.py:21
↓ 1 callers
Function
test_ddp
(args)
LETTER-LC-Rec/test_ddp.py:26
↓ 1 callers
Method
total_loss
(self, shift_logits, shift_labels)
LETTER-LC-Rec/modeling_letter.py:42
↓ 1 callers
Method
total_loss
(self, lm_logits, labels, decoder_input_ids)
LETTER-TIGER/modeling_letter.py:47
↓ 1 callers
Function
train
(args)
LETTER-LC-Rec/lora_finetune.py:30
↓ 1 callers
Function
train
(args)
LETTER-TIGER/finetune.py:18
↓ 1 callers
Method
vq_ini
(self, x)
RQ-VAE/models/rq.py:34
↓ 1 callers
Method
vq_init
(self)
RQ-VAE/trainer.py:101
↓ 1 callers
Method
vq_init
(self, x, use_sk=True)
RQ-VAE/models/vq.py:122
↓ 1 callers
Method
vq_initialization
(self,x, use_sk=True)
RQ-VAE/models/rqvae.py:82
Method
__call__
(self, batch)
LETTER-LC-Rec/collator.py:23
Method
__call__
(self, batch)
LETTER-LC-Rec/collator.py:63
Method
__call__
(self, batch)
LETTER-TIGER/collator.py:24
Method
__call__
(self, batch)
LETTER-TIGER/collator.py:57
Method
__getitem__
(self, index)
LETTER-LC-Rec/data.py:252
Method
__getitem__
(self, index)
LETTER-LC-Rec/data.py:457
Method
__getitem__
(self, index)
LETTER-LC-Rec/data.py:535
Method
__getitem__
(self, index)
LETTER-LC-Rec/data.py:645
Method
__getitem__
(self, index)
LETTER-LC-Rec/data.py:747
Method
__getitem__
(self, index)
LETTER-LC-Rec/data.py:839
Method
__getitem__
(self, index)
RQ-VAE/datasets.py:15
Method
__getitem__
(self, value)
LETTER-TIGER/generation_trie.py:87
Method
__getitem__
(self, index)
LETTER-TIGER/data.py:247
Method
__init__
(self, args, tokenizer)
LETTER-LC-Rec/collator.py:15
Method
__init__
(self, args, tokenizer)
LETTER-LC-Rec/collator.py:53
Method
__init__
(self, args, mode="train", prompt_sample_num=1, prompt_id=0, sample_num=-1)
LETTER-LC-Rec/data.py:99
Method
__init__
(self, args, mode="train", prompt_sample_num=1, prompt_id=0, sample_num=-1)
LETTER-LC-Rec/data.py:277
Method
__init__
(self, args, task="item2index", prompt_sample_num=1, sample_num=-1)
LETTER-LC-Rec/data.py:480
Method
__init__
(self, args, mode="train", prompt_sample_num=1, prompt_id=0, sample_num=-1)
LETTER-LC-Rec/data.py:551
Method
__init__
(self, args, prompt_sample_num=1, sample_num=-1)
LETTER-LC-Rec/data.py:669
Method
__init__
(self, args, prompt_id=0, sample_num=-1)
LETTER-LC-Rec/data.py:768
Method
__init__
(self, config)
LETTER-LC-Rec/modeling_letter.py:26
Method
__init__
(self,data_path)
RQ-VAE/datasets.py:8
Method
__init__
(self, args, model)
RQ-VAE/trainer.py:19
Method
__init__
(self, n_e, e_dim, mu = 0.25, beta = 1, kmeans_init = False, kmeans_iters = 10,
RQ-VAE/models/vq.py:11
Method
__init__
(self, n_e_list, e_dim, sk_epsilons, beta = 1, kmeans_init = False, kmeans_iters = 100, sk_it
RQ-VAE/models/rq.py:9
Method
__init__
( self, layers, dropout=0.0, activation="relu", bn=False )
RQ-VAE/models/layers.py:9
Method
__init__
(self, in_dim=768, num_emb_list=None, e_dim=64,
RQ-VAE/models/rqvae.py:14
Method
__init__
(self, args, tokenizer)
LETTER-TIGER/collator.py:16
Method
__init__
(self, args, tokenizer)
LETTER-TIGER/collator.py:51
Method
__init__
(self, sequences: List[List[int]] = [])
LETTER-TIGER/generation_trie.py:8
Method
__init__
(self, args, mode="train", prompt_sample_num=1, prompt_id=0, sample_num=-1)
LETTER-TIGER/data.py:109
Method
__init__
(self, config: T5Config)
LETTER-TIGER/modeling_letter.py:26
Method
__iter__
(self)
LETTER-TIGER/generation_trie.py:72
Method
__len__
(self)
LETTER-LC-Rec/data.py:210
Method
__len__
(self)
LETTER-LC-Rec/data.py:415
Method
__len__
(self)
LETTER-LC-Rec/data.py:522
Method
__len__
(self)
LETTER-LC-Rec/data.py:623
Method
__len__
(self)
LETTER-LC-Rec/data.py:733
Method
__len__
(self)
LETTER-LC-Rec/data.py:826
Method
__len__
(self)
RQ-VAE/datasets.py:20
Method
__len__
(self)
LETTER-TIGER/generation_trie.py:84
Method
__len__
(self)
LETTER-TIGER/data.py:243
Method
_load_data
(self)
LETTER-LC-Rec/data.py:38
Method
_load_data
(self)
LETTER-TIGER/data.py:38
Method
_process_data
(self)
LETTER-LC-Rec/data.py:91
Method
_process_data
(self)
LETTER-TIGER/data.py:101
Method
_traverse
(prefix_sequence, trie_dict)
LETTER-TIGER/generation_trie.py:73
Function
check_path
(path)
data_process/utils.py:70
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
LETTER-LC-Rec/modeling_letter.py:48
Method
forward
(self, x, label, idx, use_sk=True)
RQ-VAE/models/vq.py:157
Method
forward
(self, x, labels, use_sk=True)
RQ-VAE/models/rq.py:43
Method
forward
(self, input_feature)
RQ-VAE/models/layers.py:40
Method
forward
(self, x, labels, use_sk=True)
RQ-VAE/models/rqvae.py:68
Method
forward
r"""
LETTER-TIGER/modeling_letter.py:51
Method
get_all_items_v2
(self)
LETTER-TIGER/data.py:67
Method
get_codebook
(self)
RQ-VAE/models/vq.py:32
Method
get_codebook
(self)
RQ-VAE/models/rq.py:27
Method
get_codebook_entry
(self, indices, shape=None)
RQ-VAE/models/vq.py:35
Function
get_local_time
()
LETTER-LC-Rec/utils.py:121
Function
get_local_time
()
LETTER-TIGER/utils.py:107
Method
get_prefix_allowed_tokens_fn
(self, tokenizer)
LETTER-TIGER/data.py:76
Function
get_res_batch
(model_name, prompt_list, max_tokens, api_info)
data_process/utils.py:16
Function
get_topk_ranking_results
(predictions, targets, k, all_items=None)
LETTER-TIGER/evaluate.py:33
Method
init_weights
(self, module)
RQ-VAE/models/layers.py:33
Function
kmeans
( samples, num_clusters, num_iters = 10, )
RQ-VAE/models/layers.py:67
Method
load_from_dict
(trie_dict)
LETTER-TIGER/generation_trie.py:33
Function
load_json
(file)
LETTER-LC-Rec/utils.py:192
Function
load_json
(file)
LETTER-TIGER/utils.py:169
Function
load_pickle
(filename)
data_process/utils.py:125
Function
make_inters_in_order
(inters)
data_process/utils.py:130
Function
prefix_allowed_tokens
(batch_id, sentence)
LETTER-TIGER/generation_trie.py:92
Function
prefix_allowed_tokens
(batch_id, sentence)
LETTER-TIGER/utils.py:162
Method
prefix_allowed_tokens_fn
(batch_id, sentence)
LETTER-LC-Rec/data.py:81
Method
prefix_allowed_tokens_fn
(batch_id, sentence)
LETTER-TIGER/data.py:91
Method
set_prompt
(self, prompt_id)
LETTER-LC-Rec/data.py:411
Method
set_prompt
(self, prompt_id)
LETTER-LC-Rec/data.py:620
← previous
next →
101–200 of 205, ranked by callers