MCPcopy Create free account

hub / github.com/IDEA-CCNL/Fengshenbang-LM / functions

Functions2,547 in github.com/IDEA-CCNL/Fengshenbang-LM

Methodcompute_pred
(proj_x, target, label_embs)
fengshen/examples/hubert/pretrain_hubert.py:164
Methodcond_fn
(x, t, y=None)
fengshen/examples/disco_project/disco.py:600
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/respace.py:98
Methodcondition_score
(self, cond_fn, *args, **kwargs)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/respace.py:101
Methodconfigure_optimizers
(self)
fengshen/pipelines/sequence_tagging.py:185
Methodconfigure_optimizers
(self)
fengshen/pipelines/text_classification.py:89
Methodconfigure_optimizers
Prepare optimizer and schedule
fengshen/examples/clue_sim/finetune_clue_sim.py:165
Methodconfigure_optimizers
(self)
fengshen/examples/pretrain_bert/pretrain_bert.py:148
Methodconfigure_optimizers
(self)
fengshen/examples/pretrain_taiyi_clip/pretrain.py:101
Methodconfigure_optimizers
(self)
fengshen/examples/hubert/pretrain_hubert.py:137
Methodconfigure_optimizers
(self)
fengshen/examples/qa_t5/finetune_t5_cmrc.py:102
Methodconfigure_optimizers
(self)
fengshen/examples/finetune_bart_qg/finetune_bart.py:278
Methodconfigure_optimizers
(self)
fengshen/examples/sequence_tagging/finetune_sequence_tagging.py:274
Methodconfigure_optimizers
(self)
fengshen/examples/pegasus/pretrain_pegasus.py:108
Methodconfigure_optimizers
(self)
fengshen/examples/finetune_taiyi_stable_diffusion/finetune.py:109
Methodconfigure_optimizers
(self)
fengshen/examples/finetune_taiyi_stable_diffusion/evaluate_model.py:62
Methodconfigure_optimizers
(self)
fengshen/examples/pretrain_t5/pretrain_t5.py:77
Methodconfigure_optimizers
(self)
fengshen/examples/pretrain_t5/finetune_t5.py:45
Methodconfigure_optimizers
(self)
fengshen/examples/summary/seq2seq_summary.py:137
Methodconfigure_optimizers
(self)
fengshen/examples/zen2_finetune/fengshen_token_level_ft_task.py:598
Methodconfigure_optimizers
(self)
fengshen/examples/zen2_finetune/fengshen_sequence_level_ft_task.py:571
Methodconfigure_optimizers
(self)
fengshen/examples/pretrain_erlangshen_deberta_v2/pretrain_deberta.py:138
Methodconfigure_optimizers
(self)
fengshen/examples/translate/finetune_deltalm.py:165
Methodconfigure_optimizers
(self)
fengshen/examples/clip_finetune/clip_finetune_flickr.py:184
Methodconfigure_optimizers
(self)
fengshen/examples/pretrain_randeng_bart/pretrain_bart.py:191
Methodconfigure_optimizers
(self)
fengshen/examples/classification/finetune_classification.py:294
Methodconfigure_optimizers
(self)
fengshen/examples/wenzhong_qa/finetune_wenzhong.py:89
Methodconfigure_optimizers
(self)
fengshen/examples/wenzhong_qa/finetune_medicalQA.py:94
Methodconfigure_optimizers
(self)
fengshen/examples/pretrain_erlangshen_bert/pretrain_erlangshen.py:148
Methodconfigure_optimizers
(self)
fengshen/examples/zen1_finetune/fengshen_token_level_ft_task.py:567
Methodconfigure_optimizers
(self)
fengshen/examples/zen1_finetune/fengshen_sequence_level_ft_task.py:532
Methodconfigure_optimizers
(self)
fengshen/examples/ziya_llama/finetune_ziya_llama.py:114
Methodconfigure_optimizers
(self)
fengshen/examples/mt5_summary/mt5_summary.py:141
Methodconfigure_optimizers
(self)
fengshen/examples/deepVAE/vae_pl_module.py:262
Methodconfigure_optimizers
(self)
fengshen/examples/stable_diffusion_dreambooth/train.py:130
Methodconfigure_optimizers
(self)
fengshen/models/tcbert/modeling_tcbert.py:310
Methodconfigure_optimizers
(self)
fengshen/models/bart/modeling_bart.py:422
Methodconfigure_optimizers
(self)
fengshen/models/unimc/modeling_unimc.py:375
Methodconfigure_optimizers
(self)
fengshen/models/uniex/modeling_uniex.py:1090
Methodconfigure_optimizers
(self)
fengshen/models/ubert/modeling_ubert.py:365
Functionconstruct_ngram_matrix
(ngram_data, max_seq_length)
fengshen/models/zen2/ngram_utils.py:179
Methodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
fengshen/models/zen2/tokenization.py:170
Functionconvert_module_to_f16
Convert primitive modules to float16.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:15
Functionconvert_module_to_f32
Convert primitive modules to float32, undoing convert_module_to_f16().
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/fp16_util.py:25
Methodconvert_to_fp16
Convert the torso of the model to float16.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:859
Methodconvert_to_fp16
Convert the torso of the model to float16.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:969
Methodconvert_to_fp32
Convert the torso of the model to float32.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:628
Methodconvert_to_fp32
Convert the torso of the model to float32.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:866
Functionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
fengshen/models/zen2/tokenization.py:70
Methodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
fengshen/models/zen2/tokenization.py:157
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
fengshen/models/deltalm/tokenizer_deltalm.py:294
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
fengshen/models/transfo_xl_denoise/tokenization_transfo_xl_denoise.py:79
Methodcount_flops
(model, _x, y)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:359
Methodcount_flops
(model, _x, y)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/unet.py:394
Functioncreate_classifier_and_diffusion
( image_size, classifier_use_fp16, classifier_width, classifier_depth, classifier_attentio
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/script_util.py:191
Methodcreate_custom_forward
(module)
fengshen/models/longformer/modeling_longformer.py:1457
Methodcreate_custom_forward
(module)
fengshen/models/deberta_v2/modeling_deberta_v2.py:484
Methodcreate_custom_forward
(module)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1176
Methodcreate_custom_forward
(module)
fengshen/models/roformer/modeling_roformer.py:635
Methodcreate_custom_forward
(module)
fengshen/models/deltalm/modeling_deltalm.py:673
Methodcreate_custom_forward
(module)
fengshen/models/deltalm/modeling_deltalm.py:1000
Methodcreate_custom_forward
(module)
fengshen/models/deepVAE/latent_connector.py:203
Functioncreate_doc_idx
(sizes)
fengshen/data/megatron_dataloader/indexed_dataset.py:122
Functioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion o
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/resample.py:8
Functioncreate_position_ids_from_input_ids
Replace non-padding symbols with their position numbers. Position numbers begin at padding_idx+1. Padding symbols are ignored. This is modifi
fengshen/models/longformer/modeling_longformer.py:430
Methodcreate_position_ids_from_inputs_embeds
We are provided embeddings directly. We cannot infer which are padded so just generate sequential position ids. Args: in
fengshen/models/longformer/modeling_longformer.py:513
Methodcreate_token_type_ids_from_sequences
Create a mask from the two sequences passed to be used in a sequence-pair classification task. T5 does not make use of token type ids
fengshen/models/deltalm/tokenizer_deltalm.py:203
Methodcustom
(start, end)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:604
Methodcustom_forward
(*inputs)
fengshen/models/longformer/modeling_longformer.py:1458
Methodcustom_forward
(*inputs)
fengshen/models/deberta_v2/modeling_deberta_v2.py:485
Methodcustom_forward
(*inputs)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1177
Methodcustom_forward
(*inputs)
fengshen/models/roformer/modeling_roformer.py:636
Methodcustom_forward
(*inputs)
fengshen/models/deltalm/modeling_deltalm.py:674
Methodcustom_forward
(*inputs)
fengshen/models/deltalm/modeling_deltalm.py:1001
Methodcustom_forward
(*inputs)
fengshen/models/deepVAE/latent_connector.py:204
Methodcustom_forward
(*inputs)
fengshen/models/transfo_xl_denoise/modeling_transfo_xl_denoise.py:605
Functioncut_sent
中文分句,默认?、。、!、省略号分句,考虑双引号包裹的句子 采用分割替换的方式
fengshen/data/bert_dataloader/preprocessing.py:11
Functioncut_sent
(para)
fengshen/examples/clue1.1/data_preprocessing/cmrc2018_preprocessing.py:9
Functiondataset_exists
(path, impl)
fengshen/data/megatron_dataloader/indexed_dataset.py:78
Methoddatasets
(self)
fengshen/examples/hubert/pretrain_hubert.py:52
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:749
Methodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:634
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:784
Methodddim_sample_with_grad
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/gaussian_diffusion.py:695
Functiondebug
(*args)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:253
Methoddecode
This method forwards all its arguments to BertTokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
fengshen/models/clip/processing_taiyi_clip.py:104
Functiondecode_speed_test
测试推理速度
fengshen/examples/ziya_inference/hf_quantizatin_inference.py:33
Functiondecorator_with_name
(func)
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:309
Functiondeduction_generate
Generate with fixed prompt of deduction
fengshen/models/transfo_xl_reasoning/generate.py:21
Methoddefault_onnx_opset
(self)
fengshen/models/clip/configuration_taiyi_clip.py:182
Methoddeparallelize
(self)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1515
Methoddeparallelize
(self)
fengshen/models/megatron_t5/modeling_megatron_t5.py:1715
Methoddeparallelize
(self)
fengshen/models/megatron_t5/modeling_megatron_t5.py:2024
Functiondestroy_model_parallel
Set the groups to none.
fengshen/models/megatron/mpu/initialize.py:277
Methoddo_lower_case
(self)
fengshen/examples/pegasus/tokenizers_pegasus.py:201
Methoddoc_idx
(self)
fengshen/data/megatron_dataloader/indexed_dataset.py:447
Methoddoc_idx
(self)
fengshen/data/megatron_dataloader/indexed_dataset.py:533
Functiondocstring_decorator
(fn)
fengshen/models/auto/configuration_auto.py:221
Methoddummy_inputs
(self)
fengshen/models/megatron_t5/modeling_megatron_t5.py:810
Functiondumpkvs
Write all of the diagnostics from the current iteration
fengshen/examples/disco_project/guided_diffusion/guided_diffusion/logger.py:235
← previousnext →1,601–1,700 of 2,547, ranked by callers