Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IDEA-CCNL/Fengshenbang-LM
/ functions
Functions
2,547 in github.com/IDEA-CCNL/Fengshenbang-LM
⨍
Functions
2,547
◇
Types & classes
564
↳
Endpoints
10
Function
initialize_model_parallel
Initialize model data parallel groups. Arguments: model_parallel_size: number of GPUs used to parallelize model. Let's say we h
fengshen/models/megatron/mpu/initialize.py:61
Method
inputs
(self)
fengshen/models/clip/configuration_taiyi_clip.py:141
Method
inputs
(self)
fengshen/models/megatron_t5/configuration_megatron_t5.py:145
Function
is_stopwords
(word, stopwords)
fengshen/examples/pegasus/data_utils.py:92
Function
is_string
判断是否是字符串
fengshen/examples/pegasus/data_utils.py:86
Function
is_unitialized
Useful for code segments that may be accessed with or without mpu initialization
fengshen/models/megatron/mpu/initialize.py:56
Method
is_vb
(self)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:97
Method
items
(self)
fengshen/models/auto/configuration_auto.py:166
Function
jieba_tokenize
(str)
fengshen/utils/utils.py:6
Method
keys
(self)
fengshen/models/auto/configuration_auto.py:158
Function
label_smoothed_nll_loss
(lprobs, target, epsilon, ignore_index=None, reduce=True)
fengshen/examples/translate/finetune_deltalm.py:60
Function
load_tf_weights_in_RoFormer
Load tf checkpoints in a pytorch model.
fengshen/models/roformer/modeling_roformer.py:69
Function
load_tf_weights_in_T5
Load tf checkpoints in a pytorch model.
fengshen/models/megatron_t5/modeling_megatron_t5.py:74
Function
load_tf_weights_in_albert
Load tf checkpoints in a pytorch model.
fengshen/models/albert/modeling_albert.py:75
Function
load_tf_weights_in_bert
Load tf checkpoints in a pytorch model
fengshen/models/zen2/modeling.py:184
Function
log_sum_exp
Numerically stable implementation of the operation value.exp().sum(dim, keepdim).log()
fengshen/models/DAVAE/DAVAEModel.py:15
Function
log_sum_exp
Numerically stable implementation of the operation value.exp().sum(dim, keepdim).log()
fengshen/models/deepVAE/utils.py:74
Function
logkv_mean
The same as logkv(), but if called many times, values averaged.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:220
Function
logkvs
Log a dictionary of key-value pairs
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:227
Method
loss_adv
(self, z)
fengshen/models/DAVAE/DAVAEModel.py:193
Function
lr_lambda
(current_step: int)
fengshen/models/model_utils.py:116
Function
make_builder
(out_file, impl, vocab_size=None)
fengshen/data/megatron_dataloader/indexed_dataset.py:52
Function
make_dataset
(path, impl, skip_warmup=False)
fengshen/data/megatron_dataloader/indexed_dataset.py:60
Method
master_params_to_state_dict
(self, master_params)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:226
Function
merge_data
(module)
fengshen/utils/llama_convert/merge_lt_mp_to_hf.py:40
Function
merge_data
(module)
fengshen/utils/llama_convert/fs_merge_weight.py:7
Function
merge_data
(module)
fengshen/utils/llama_convert/fs_to_hf.py:31
Method
merge_file_
(self, another_file)
fengshen/data/megatron_dataloader/indexed_dataset.py:302
Method
merge_file_
(self, another_file)
fengshen/data/megatron_dataloader/indexed_dataset.py:569
Function
mish
(x)
fengshen/models/megatron/layers/activations.py:116
Method
model_input_names
(self)
fengshen/models/clip/processing_taiyi_clip.py:112
Function
model_parallel_is_initialized
Check if model and data parallel groups are initialized.
fengshen/models/megatron/mpu/initialize.py:170
Function
my_shuffle
(x, index)
fengshen/models/DAVAE/run_latent_generation.py:297
Method
num_attention_heads
(self)
fengshen/models/megatron_t5/configuration_megatron_t5.py:135
Method
num_attention_heads
(self)
fengshen/models/deltalm/configuration_deltalm.py:99
Method
num_hidden_layers
(self)
fengshen/models/megatron_t5/configuration_megatron_t5.py:139
Method
num_special_tokens_to_add
Just EOS
fengshen/examples/pegasus/tokenizers_pegasus.py:370
Method
num_tokens
(self, index)
fengshen/data/megatron_dataloader/indexed_dataset.py:199
Method
num_tokens
(self, index)
fengshen/data/hubert/hubert_dataset.py:333
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:257
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/hubert/pretrain_hubert.py:245
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:124
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/finetune_bart_qg/finetune_bart.py:377
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/finetune_taiyi_stable_diffusion/finetune.py:160
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_t5/pretrain_t5.py:114
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_t5/finetune_t5.py:94
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_erlangshen_deberta_v2/pretrain_deberta.py:182
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_randeng_bart/pretrain_bart.py:235
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_erlangshen_bert/pretrain_erlangshen.py:192
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:180
Method
on_load_checkpoint
(self, checkpoint)
fengshen/examples/stable_diffusion_dreambooth/train.py:204
Method
on_predict_start
(self)
fengshen/examples/finetune_bart_qg/finetune_bart.py:328
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:264
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/hubert/pretrain_hubert.py:236
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:107
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/finetune_bart_qg/finetune_bart.py:371
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/pegasus/pretrain_pegasus.py:131
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/finetune_taiyi_stable_diffusion/finetune.py:154
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_t5/pretrain_t5.py:105
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/pretrain_t5/finetune_t5.py:85
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/summary/seq2seq_summary.py:104
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/translate/finetune_deltalm.py:324
Method
on_save_checkpoint
(self, checkpoint)
fengshen/examples/deepVAE/vae_pl_module.py:189
Method
on_train_batch_end
(self, outputs, batch, batch_idx: int)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:173
Method
on_train_end
(self)
fengshen/examples/stable_diffusion_dreambooth/train.py:195
Method
on_validation_epoch_end
(self)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:191
Method
on_validation_start
(self)
fengshen/examples/summary/seq2seq_summary.py:58
Method
on_validation_start
(self)
fengshen/examples/translate/finetune_deltalm.py:235
Method
optimize
(self, opt: th.optim.Optimizer)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:183
Method
ordered_indices
(self)
fengshen/data/hubert/hubert_dataset.py:341
Method
output_dim
(self)
fengshen/models/deberta_v2/modeling_deberta_v2.py:74
Method
outputs
(self)
fengshen/models/clip/configuration_taiyi_clip.py:151
Method
outputs
(self)
fengshen/models/megatron_t5/configuration_megatron_t5.py:169
Function
p2c_dynamic_expand
(c2p_pos, query_layer, key_layer)
fengshen/models/deberta_v2/modeling_deberta_v2.py:580
Method
p_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:419
Method
p_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:513
Method
p_sample_with_grad
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:465
Function
pad_and_convert_to_numpy
Pad sequences and convert them to numpy.
fengshen/data/megatron_dataloader/dataset_utils.py:471
Method
pad_batch
(self, x)
fengshen/models/GAVAE/gans_model.py:191
Function
padding_to_maxlength
(ids, max_length, pad_id)
fengshen/data/data_utils/common_utils.py:1
Function
padding_to_maxlength
(ids, max_length, pad_id)
fengshen/examples/finetune_bart_qg/utils.py:57
Function
parallel_lm_logits
LM logits using word embedding weights.
fengshen/models/megatron/layers/transformer.py:800
Method
parallelize
(self, device_map=None)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1502
Method
parallelize
(self, device_map=None)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1701
Method
parallelize
(self, device_map=None)
fengshen/models/megatron_t5/modeling_megatron_t5.py:2012
Function
params_dtype
returns the datatype on the basis of configured precision
fengshen/models/megatron/mpu/utils.py:76
Function
perlin_ms
(octaves, width, height, grayscale, device=None)
fengshen/examples/disco_project/disco.py:151
Function
permute_rotary
(w)
fengshen/utils/llama_convert/hf_to_fs.py:110
Method
pipelines_args
(parent_args)
fengshen/pipelines/information_extraction.py:29
Method
pipelines_args
(parent_args)
fengshen/models/unimc/modeling_unimc.py:452
Method
pipelines_args
(parent_args)
fengshen/models/ubert/modeling_ubert.py:675
Method
plms_sample_loop
Generate samples from the model using Pseudo Linear Multistep. Same usage as p_sample_loop().
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:1004
Function
pos_dynamic_expand
(pos_index, p2c_att, key_layer)
fengshen/models/deberta_v2/modeling_deberta_v2.py:586
Method
postprocess
(self, data)
fengshen/pipelines/tcbert.py:104
Method
postprocess
(self, model_outputs)
fengshen/pipelines/sequence_tagging.py:276
Method
postprocess_crf
(self, model_outputs)
fengshen/pipelines/sequence_tagging.py:291
Method
postprocess_linear
(self, model_outputs)
fengshen/pipelines/sequence_tagging.py:279
Method
postprocess_span
(self, model_outputs)
fengshen/pipelines/sequence_tagging.py:302
Method
postprocess_text
(preds, labels, tgt_zh)
fengshen/examples/translate/finetune_deltalm.py:248
Method
predict
(self, test_data, cuda=True)
fengshen/pipelines/information_extraction.py:98
← previous
next →
2,101–2,200 of 2,547, ranked by callers