Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ functions
Functions
1,117 in github.com/THUDM/GLM
⨍
Functions
1,117
◇
Types & classes
200
Method
forward
(self, input_)
mpu/layers.py:233
Method
forward
(self, input_)
mpu/layers.py:306
Method
forward
(ctx, vocab_parallel_logits, target)
mpu/cross_entropy.py:28
Method
forward
(ctx, run_function, *args)
mpu/random.py:281
Method
forward
(self, pos_seq, bsz=None)
mpu/transformer.py:47
Method
forward
(self, hidden_states, encoder_states, cross_mask)
mpu/transformer.py:108
Method
forward
(self, hidden_states, ltor_mask, position_embeddings=None, r_w_bias=None, r_r_bias=None, mem=None)
mpu/transformer.py:252
Method
forward
(self, hidden_states)
mpu/transformer.py:380
Method
forward
(self, hidden_states, encoder_states, ltor_mask, cross_mask=None)
mpu/transformer.py:467
Method
forward
(self, hidden_states, ltor_mask, position_embeddings=None, r_w_bias=None, r_r_bias=None, mem=None)
mpu/transformer.py:563
Method
forward
(self, hidden_states, position_ids, attention_mask, memory_states=None, encoder_states=None, r
mpu/transformer.py:742
Method
forward
(ctx, input_)
mpu/mappings.py:83
Method
forward
(ctx, input_)
mpu/mappings.py:95
Method
forward
(ctx, input_)
mpu/mappings.py:107
Method
forward
(ctx, input_)
mpu/mappings.py:119
Method
forward
(self)
mpu/tests/test_layers.py:183
Method
forward
(self)
mpu/tests/test_layers.py:324
Method
forward
(self)
mpu/tests/commons.py:29
Function
forward_step
Forward step.
pretrain_glm.py:207
Function
from_pretrained
()
data_utils/sp_tokenizer.py:149
Method
from_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file or a pytorch state dict. Download and cache the pre-trained model fil
model/modeling_bert.py:718
Method
from_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
data_utils/tokenization_gpt2.py:94
Function
gelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
model/modeling_bert.py:151
Method
gen_helper
()
data_utils/datasets.py:441
Function
generate_token_to_char_map
(tokens, raw_text, tokenizer)
tasks/seq2seq/dataset.py:233
Method
get_answers
(self, example: InputExample)
tasks/superglue/pvp.py:443
Method
get_answers
(self, example: InputExample)
tasks/superglue/pvp.py:651
Method
get_answers
(self, example: InputExample)
tasks/superglue/pvp.py:676
Method
get_answers
(self, example: InputExample)
tasks/superglue/pvp.py:1272
Method
get_answers
(self, example: InputExample)
tasks/superglue/pvp.py:1346
Method
get_classifier_input
(self, example: InputExample, tokenizer)
tasks/superglue/dataset.py:403
Method
get_classifier_input
(self, example: InputExample, tokenizer)
tasks/superglue/dataset.py:421
Method
get_classifier_input
(self, example: InputExample, tokenizer)
tasks/superglue/dataset.py:684
Function
get_data_parallel_world_size
Return world size for the data parallel group.
mpu/initialize.py:120
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:300
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:701
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:753
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:890
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:922
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:987
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1000
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1036
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1075
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1127
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1165
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1284
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1336
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1361
Method
get_dev_examples
(self, data_dir, for_train=False)
tasks/superglue/dataset.py:1402
Function
get_ext
gets path extension
data_utils/__init__.py:47
Function
get_file_extension
(path, dot=True, lower=True)
data_utils/file_utils.py:247
Method
get_labels
(self)
tasks/superglue/dataset.py:322
Method
get_labels
(self)
tasks/superglue/dataset.py:382
Method
get_labels
(self)
tasks/superglue/dataset.py:418
Method
get_labels
(self)
tasks/superglue/dataset.py:523
Method
get_labels
(self)
tasks/superglue/dataset.py:695
Method
get_labels
(self)
tasks/superglue/dataset.py:899
Method
get_labels
(self)
tasks/superglue/dataset.py:941
Method
get_labels
(self)
tasks/superglue/dataset.py:964
Method
get_labels
(self)
tasks/superglue/dataset.py:1009
Method
get_labels
(self)
tasks/superglue/dataset.py:1045
Method
get_labels
(self)
tasks/superglue/dataset.py:1084
Method
get_labels
(self)
tasks/superglue/dataset.py:1111
Method
get_labels
(self)
tasks/superglue/dataset.py:1136
Method
get_labels
(self)
tasks/superglue/dataset.py:1171
Method
get_labels
(self)
tasks/superglue/dataset.py:1191
Method
get_labels
(self)
tasks/superglue/dataset.py:1218
Method
get_labels
(self)
tasks/superglue/dataset.py:1239
Method
get_labels
(self)
tasks/superglue/dataset.py:1260
Method
get_labels
(self)
tasks/superglue/dataset.py:1287
Method
get_labels
(self)
tasks/superglue/dataset.py:1367
Method
get_labels
(self)
tasks/superglue/dataset.py:1408
Method
get_layer
()
mpu/transformer.py:706
Method
get_mask_positions
(self, input_ids: List[int])
tasks/superglue/pvp.py:390
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:448
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:656
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:681
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:720
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:761
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:796
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:835
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:882
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:919
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:961
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1001
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1037
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1061
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1085
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1127
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1157
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1177
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1198
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1223
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1247
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1277
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1301
Method
get_parts
(self, example: InputExample)
tasks/superglue/pvp.py:1351
Function
get_spare_port
(args)
utils.py:59
Method
get_test_examples
Get a collection of `InputExample`s for the test set.
tasks/superglue/dataset.py:252
Method
get_test_examples
(self, data_dir)
tasks/superglue/dataset.py:306
← previous
next →
801–900 of 1,117, ranked by callers