MCPcopy Create free account

hub / github.com/Jittor/JittorLLMs / functions

Functions1,370 in github.com/Jittor/JittorLLMs

Method__len__
(self)
models/pangualpha/megatron/data/ict_dataset.py:64
Method__len__
(self)
models/pangualpha/megatron/data/samplers.py:71
Method__len__
(self)
models/pangualpha/megatron/data/bert_dataset.py:69
Method__len__
(self)
models/pangualpha/megatron/data/indexed_dataset.py:191
Method__len__
(self)
models/pangualpha/megatron/data/indexed_dataset.py:442
Method__len__
(self)
models/pangualpha/megatron/data/indexed_dataset.py:477
Method__len__
(self)
models/pangualpha/megatron/data/realm_dataset_utils.py:100
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/samplers.py:71
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:90
Method__len__
total number of tokens
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:267
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:423
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:487
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:617
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/tokenization_gpt2.py:176
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:75
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:143
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:281
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:393
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:512
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:639
Method__len__
(self)
models/pangualpha/megatron/deprecated_data_utils/lazy_loader.py:179
Method__len__
(self)
models/pangualpha/megatron/tokenizer/gpt2_tokenization.py:178
Method__len__
(self)
models/pangualpha/megatron/tokenizer/tokenization_jieba.py:65
Method__len__
(self)
models/pangualpha/tasks/race/data.py:42
Method__len__
(self)
models/pangualpha/tasks/zeroshot_gpt2/datasets.py:62
Method__len__
(self)
models/pangualpha/tasks/zeroshot_gpt2/datasets.py:100
Method__len__
(self)
models/pangualpha/tasks/zeroshot_gpt2/datasets.py:147
Method__len__
(self)
models/pangualpha/tasks/glue/data.py:51
Method__len__
Support for backwards-compatible `past_key_value` length, e.g. `len(past_key_value)`. This value corresponds to the number of layers
models/qwen2/qwen2_jt/utils.py:36
Method__len__
Size of the full vocabulary with the added tokens.
models/qwen2/qwen2_jt/tokenization_utils_fast.py:156
Function__nop
(ob)
models/chatrwkv/src/model_run.py:9
Method__setstate__
(self, state)
models/pangualpha/megatron/data/indexed_dataset.py:457
Method__setstate__
(self, state)
models/pangualpha/megatron/fp16/fp16.py:265
Method__str__
(self)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:156
Method__str__
(self)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:187
Method_apply
(self, fn)
models/chatglm/modeling_chatglm.py:220
Function_bias_dropout_add
(x, bias, residual, prob)
models/pangualpha/megatron/model/transformer.py:574
Function_build_sample_idx
Sample index mapping is a 2D array with sizes [number-of-samples + 1, 2] where [..., 0] contains the index into `doc_idx` and [..., 1] is the
models/pangualpha/megatron/data/gpt2_dataset.py:261
Function_compute_default_rope_parameters
( config = None, device = None, seq_len: Optional[int] = None, **rope_kwargs, )
models/qwen2/qwen2_jt/modeling_qwen2.py:301
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
models/chatglm/tokenization_chatglm.py:279
Function_cross_entropy_forward_step
Simple forward step with cross-entropy loss.
models/pangualpha/tasks/finetune_utils.py:48
Method_get_loss_scale
(self)
models/pangualpha/megatron/fp16/fp16.py:626
Method_get_param_groups
(self)
models/pangualpha/megatron/fp16/fp16.py:645
Method_get_state
(self)
models/pangualpha/megatron/fp16/fp16.py:635
Method_has_inf_or_nan
(x)
models/pangualpha/megatron/fp16/loss_scaler.py:140
Method_init_weights
Initialize the weights.
models/chatglm/modeling_chatglm.py:663
Method_init_weights
(self, module)
models/atom7b/modeling_llama.py:488
Method_initialize_weights
Initialize the weights if they are not already initialized.
models/qwen2/qwen2_jt/modeling_qwen2.py:375
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys,
models/chatglm/modeling_chatglm.py:193
Function_multiproc_iter
(dl, output_queue)
models/pangualpha/megatron/deprecated_data_utils/tf_dl.py:125
Method_prepare_generated_length
Prepared max and min length in generation configs to avoid clashes between similar attributes
models/qwen2/qwen2_jt/utils.py:501
Method_prepare_model_inputs
( self, inputs: Optional[jt.Var] = None, bos_token_id: Optional[jt.Var] = None,
models/qwen2/qwen2_jt/utils.py:418
Method_reorder_cache
This function is used to re-order the `past_key_values` cache if [`~PreTrainedModel.beam_search`] or [`~PreTrainedModel.beam_sample`]
models/chatglm/modeling_chatglm.py:1181
Method_reorder_cache
(past_key_values, beam_idx)
models/atom7b/modeling_llama.py:1061
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
models/atom7b/modeling_llama.py:144
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
models/atom7b/modeling_llama.py:163
Method_set_gradient_checkpointing
(self, module, value=False)
models/chatglm/modeling_chatglm.py:667
Method_set_gradient_checkpointing
(self, module, value=False)
models/atom7b/modeling_llama.py:499
Method_set_loss_scale
(self, value)
models/pangualpha/megatron/fp16/fp16.py:629
Method_set_param_groups
(self, value)
models/pangualpha/megatron/fp16/fp16.py:648
Method_set_state
(self, value)
models/pangualpha/megatron/fp16/fp16.py:638
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
models/atom7b/modeling_llama.py:298
Method_tensor_or_none
(token, device=None)
models/qwen2/qwen2_jt/utils.py:551
Method_tokenize
Returns a tokenized string.
models/chatglm/tokenization_chatglm.py:251
Methodadd_item
(self, tensor)
models/pangualpha/megatron/data/indexed_dataset.py:546
Functionadd_text_generate_args
Text generation arguments.
models/pangualpha/__init__.py:27
Functionadd_text_generate_args
Text generation arguments.
models/pangualpha/tools/generate_samples_Pangu.py:51
Functionadd_text_generate_args
Text generation arguments.
models/pangualpha/tasks/downstream_pangu/evaluate_classfier.py:54
Methodadd_tokentype_embeddings
Add token-type embedding. This function is provided so we can add token-type embeddings in case the pretrained model does not have it.
models/pangualpha/megatron/model/language_model.py:150
Methodadd_tokentype_embeddings
Add token-type embedding. This function is provided so we can add token-type embeddings in case the pretrained model does not have it.
models/pangualpha/megatron/model/language_model.py:296
Methodadded_tokens_decoder
Returns the added tokens in the vocabulary as a dictionary of index to AddedToken. Returns: `Dict[str, int]`: The added
models/qwen2/qwen2_jt/tokenization_utils_fast.py:138
Methodadded_tokens_encoder
Returns the sorted mapping from string to index. The added tokens encoder is cached for performance optimisation in `self._added_toke
models/qwen2/qwen2_jt/tokenization_utils_fast.py:130
Methodall_special_tokens
`List[str]`: A list of the unique special tokens (`'<unk>'`, `'<cls>'`, ..., etc.). Convert tokens of `tokenizers.AddedToken` type t
models/qwen2/qwen2_jt/tokenization_utils_fast.py:239
Methodall_special_tokens_extended
`List[Union[str, tokenizers.AddedToken]]`: All the special tokens (`'<unk>'`, `'<cls>'`, etc.), the order has nothing to do with the
models/qwen2/qwen2_jt/tokenization_utils_fast.py:218
Methodallreduce_hook
(*unused)
models/pangualpha/megatron/model/distributed.py:67
Methodatt_one
(self, x, sx, aa, bb, pp, ln_w, ln_b, k_mix, v_mix, r_mix, t_decay, t_first, kw, vw, rw, ow)
models/chatrwkv/rwkv_pip_package/src/rwkv/model.py:300
Methodatt_seq
(self, x, sx, aa, bb, pp, ln_w, ln_b, k_mix, v_mix, r_mix, t_decay, t_first, kw, vw, rw, ow)
models/chatrwkv/rwkv_pip_package/src/rwkv/model.py:324
Methodattention_mask_func
(attention_scores, attention_mask)
models/chatglm/modeling_chatglm.py:399
Methodbackend_tokenizer
`tokenizers.implementations.BaseTokenizer`: The Rust tokenizer used as a backend.
models/qwen2/qwen2_jt/tokenization_utils_fast.py:163
Methodbackward
(ctx, grad_output)
models/pangualpha/pretrain_ict.py:63
Methodbackward
(ctx, output_grads)
models/pangualpha/megatron/model/fused_softmax.py:36
Methodbackward
(ctx, grad_output)
models/pangualpha/megatron/model/fused_bias_gelu.py:55
Methodbackward
(self, loss, retain_graph=False)
models/pangualpha/megatron/fp16/loss_scaler.py:199
Methodbackward
(ctx, grad_output)
models/pangualpha/megatron/mpu/cross_entropy.py:85
Methodbackward
(ctx, grad_output)
models/pangualpha/megatron/mpu/mappings.py:88
Methodbackward
(ctx, grad_output)
models/pangualpha/megatron/mpu/mappings.py:104
Methodbackward
(ctx, grad_output)
models/pangualpha/megatron/mpu/mappings.py:120
Methodbackward
(ctx, grad_output)
models/pangualpha/megatron/mpu/mappings.py:136
Methodbackward
(ctx, grad_output: torch.Tensor)
models/chatglm/quantization.py:58
Functionbackwards_debug_hook
(grad)
models/pangualpha/megatron/fp16/fp16util.py:105
Functionbert_attention_mask_func
(attention_scores, attention_mask)
models/pangualpha/megatron/model/bert_model.py:32
Functionbias_dropout_add_fused_inference
(x, bias, residual, prob)
models/pangualpha/megatron/model/transformer.py:586
Functionbias_dropout_add_fused_train
(x, bias, residual, prob)
models/pangualpha/megatron/model/transformer.py:580
Functionbroadcast_data
Broadcast data from rank zero of each model parallel group to the members of the same model parallel group. Arguments: keys: list of
models/pangualpha/megatron/mpu/data.py:76
Functionbuild_blocks_mapping
models/pangualpha/megatron/data/helpers.cpp:614
Functionbuild_blocks_mapping_impl
models/pangualpha/megatron/data/helpers.cpp:397
Methodbuild_inputs_with_special_tokens
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens
models/chatglm/tokenization_chatglm.py:315
Methodbuild_layer
(layer_number)
models/pangualpha/megatron/model/transformer.py:834
Functionbuild_mapping
models/pangualpha/megatron/data/helpers.cpp:370
Functionbuild_mapping_impl
models/pangualpha/megatron/data/helpers.cpp:138
← previousnext →901–1,000 of 1,370, ranked by callers