MCPcopy Create free account

hub / github.com/Jittor/JittorLLMs / functions

Functions1,370 in github.com/Jittor/JittorLLMs

Methodforward
(self, input_)
models/pangualpha/megatron/mpu/layers.py:369
Methodforward
(ctx, vocab_parallel_logits, target)
models/pangualpha/megatron/mpu/cross_entropy.py:28
Methodforward
(ctx, run_function, *args)
models/pangualpha/megatron/mpu/random.py:266
Methodforward
(ctx, input_)
models/pangualpha/megatron/mpu/mappings.py:84
Methodforward
(ctx, input_)
models/pangualpha/megatron/mpu/mappings.py:100
Methodforward
(ctx, input_)
models/pangualpha/megatron/mpu/mappings.py:116
Methodforward
(ctx, input_)
models/pangualpha/megatron/mpu/mappings.py:132
Methodforward
(self)
models/pangualpha/megatron/mpu/tests/test_layers.py:182
Methodforward
(self)
models/pangualpha/megatron/mpu/tests/test_layers.py:324
Methodforward
(self)
models/pangualpha/megatron/mpu/tests/commons.py:30
Methodforward
(self, prefix: torch.Tensor)
models/chatglm/modeling_chatglm.py:157
Methodforward
(self, x, seq_dim=1, seq_len=None)
models/chatglm/modeling_chatglm.py:197
Methodforward
hidden_states: [seq_len, batch, hidden_size] attention_mask: [(1, 1), seq_len, seq_len]
models/chatglm/modeling_chatglm.py:423
Methodforward
(self, x)
models/chatglm/modeling_chatglm.py:495
Methodforward
hidden_states: [seq_len, batch, hidden_size]
models/chatglm/modeling_chatglm.py:529
Methodforward
hidden_states: [seq_len, batch, hidden_size] attention_mask: [(1, 1), seq_len, seq_len]
models/chatglm/modeling_chatglm.py:594
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, position_ids: Option
models/chatglm/modeling_chatglm.py:871
Methodforward
( self, input_ids: Optional[torch.Tensor] = None, position_ids: Optional[t
models/chatglm/modeling_chatglm.py:1122
Methodforward
(ctx, inp: torch.Tensor, quant_w: torch.Tensor, scale_w: torch.Tensor, weight_bit_width)
models/chatglm/quantization.py:46
Methodforward
(self, input)
models/chatglm/quantization.py:146
Methodforward
(self, hidden_states)
models/atom7b/modeling_llama.py:93
Methodforward
(self, x, seq_len=None)
models/atom7b/modeling_llama.py:126
Methodforward
(self, x)
models/atom7b/modeling_llama.py:211
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
models/atom7b/modeling_llama.py:301
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
models/atom7b/modeling_llama.py:405
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
models/atom7b/modeling_llama.py:624
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
models/atom7b/modeling_llama.py:938
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
models/atom7b/modeling_llama.py:1102
Functionforward_step
Forward step.
models/pangualpha/pretrain_bert.py:69
Functionforward_step
Forward step.
models/pangualpha/pretrain_ict.py:75
Functionforward_step
Forward step.
models/pangualpha/pretrain_gpt2.py:72
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
models/pangualpha/megatron/deprecated_data_utils/tokenization_gpt2.py:97
Functionfwd
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.cpp:34
Functiongelu
(x)
models/chatglm/modeling_chatglm.py:173
Methodgen_helper
()
models/pangualpha/megatron/deprecated_data_utils/datasets.py:409
Functiongenerate_and_write_samples_unconditional
(model)
models/pangualpha/megatron/text_generation_utils.py:268
Functiongenerate_samples_input_from_file
(model)
models/pangualpha/megatron/text_generation_utils.py:83
Functiongenerate_samples_interactive
(model, print_frequency=24)
models/pangualpha/megatron/text_generation_utils.py:163
Methodget_added_vocab
Returns the added tokens in the vocabulary as a dictionary of token to index. Returns: `Dict[str, int]`: The added token
models/qwen2/qwen2_jt/tokenization_utils_fast.py:147
Functionget_atom7b
()
models/util.py:47
Functionget_available_dataset_impl
()
models/pangualpha/megatron/data/indexed_dataset.py:31
Methodget_block
Get the IDs for an evidence block plus the title of the corresponding document
models/pangualpha/megatron/data/ict_dataset.py:109
Functionget_change_ckpt_args
Provide extra arguments required for merging.
models/pangualpha/tools/change_MspCkpt_ToMgt.py:69
Functionget_chatglm
()
models/util.py:50
Functionget_chatrwkv
()
models/util.py:21
Methodget_data
Return the data currently in use.
models/pangualpha/megatron/memory.py:110
Functionget_data_parallel_world_size
Return world size for the data parallel group.
models/pangualpha/megatron/mpu/initialize.py:147
Methodget_decoder
(self)
models/qwen2/qwen2_jt/modeling_qwen2.py:497
Methodget_decoder
(self)
models/atom7b/modeling_llama.py:933
Functionget_file_extension
(path, dot=True, lower=True)
models/pangualpha/megatron/deprecated_data_utils/file_utils.py:250
Methodget_input_embeddings
(self)
models/qwen2/qwen2_jt/modeling_qwen2.py:419
Methodget_input_embeddings
(self)
models/qwen2/qwen2_jt/modeling_qwen2.py:482
Methodget_input_embeddings
(self)
models/chatglm/modeling_chatglm.py:809
Methodget_input_embeddings
(self)
models/atom7b/modeling_llama.py:593
Methodget_input_embeddings
(self)
models/atom7b/modeling_llama.py:918
Methodget_input_embeddings
(self)
models/atom7b/modeling_llama.py:1095
Methodget_layer
(layer_id)
models/chatglm/modeling_chatglm.py:777
Functionget_llama
()
models/util.py:25
Functionget_llama2
()
models/util.py:36
Functionget_mem_buff
Get the memory buffer.
models/pangualpha/megatron/memory.py:32
Functionget_model
(args)
models/__init__.py:31
Functionget_model
(args)
models/pangualpha/__init__.py:172
Functionget_model
(args)
models/llama/__init__.py:139
Functionget_model
(args)
models/chatglm/__init__.py:47
Functionget_model
(args)
models/chatrwkv/__init__.py:334
Functionget_model
(args)
models/atom7b/__init__.py:75
Functionget_mp_merge_args
Provide extra arguments required for merging.
models/pangualpha/mergeMpCkpt.py:185
Functionget_mp_merge_args
Provide extra arguments required for merging.
models/pangualpha/tools/merge_mp_partitions.py:177
Functionget_mp_split_args
Provide extra arguments required for merging.
models/pangualpha/tools/split_full_model_into_mp_model.py:42
Methodget_next_buffer
(self)
models/pangualpha/megatron/memory.py:140
Methodget_null_block
Get empty block and title - used in REALM pretraining
models/pangualpha/megatron/data/ict_dataset.py:119
Methodget_output_embeddings
(self)
models/qwen2/qwen2_jt/modeling_qwen2.py:488
Methodget_output_embeddings
(self)
models/chatglm/modeling_chatglm.py:1036
Methodget_output_embeddings
(self)
models/atom7b/modeling_llama.py:924
Functionget_pangualpha
()
models/util.py:71
Functionget_parallel_checkpoint_name
(path)
models/pangualpha/tools/splitMergedCkpt_v0.py:61
Functionget_tasks_args
Provide extra arguments required for tasks.
models/pangualpha/tasks/main.py:27
Methodget_vocab
Returns vocab as a dict
models/chatglm/tokenization_chatglm.py:234
Functiongpt2_attention_mask_func
(attention_scores, ltor_mask)
models/pangualpha/megatron/model/gpt2_model.py:31
Functionhalf_conversion
(val)
models/pangualpha/megatron/fp16/fp16.py:46
Methodhas_overflow
(self, params)
models/pangualpha/megatron/fp16/loss_scaler.py:127
Functioninit_
(tensor)
models/pangualpha/megatron/model/utils.py:29
Functioninit_checkpointed_activations_memory_buffer
Initializ the memory buffer for the checkpointed activations.
models/pangualpha/megatron/mpu/random.py:44
Functioninitialize_model_parallel
Initialize model data parallel groups. Arguments: model_parallel_size: number of GPUs used to parallelize model. Let's say we h
models/pangualpha/megatron/mpu/initialize.py:39
Methodinsert
(self, idx, other)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:93
Methodinspect_master_grad_data
When running with :class:`FP16_Optimizer`, ``.grad`` attributes of a model's fp16 leaves should not be regarded as truthful,
models/pangualpha/megatron/fp16/fp16.py:591
Methodinv_vocab
Dictionary from vocab id token to text token.
models/pangualpha/megatron/tokenizer/tokenizer.py:90
Methodinv_vocab
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:152
Methodinv_vocab
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:210
Methodis_fast
(self)
models/qwen2/qwen2_jt/tokenization_utils_fast.py:104
Functionis_unitialized
Useful for code segments that may be accessed with or without mpu initialization
models/pangualpha/megatron/mpu/initialize.py:34
Functionjoin_str_list
Join a list of strings, handling spaces appropriately
models/pangualpha/megatron/data/realm_dataset_utils.py:62
Functionl2_grad_clipper
Efficient L2 norm gradient clipping.
models/pangualpha/megatron/mpu/grads.py:35
Functionlambada_detokenizer
(string)
models/pangualpha/tasks/zeroshot_gpt2/detokenizer.py:66
Methodlens
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:87
Functionload_scaled_upper_triang_masked_softmax_fusion_kernel
()
models/pangualpha/megatron/fused_kernels/__init__.py:20
Methodload_state_dict
(self, sd)
models/pangualpha/megatron/learning_rates.py:107
Methodload_state_dict
Customized load.
models/pangualpha/megatron/model/classification.py:87
Methodload_state_dict
Customized load.
models/pangualpha/megatron/model/realm_model.py:197
Methodload_state_dict
(self, state_dict, strict=True)
models/pangualpha/megatron/model/distributed.py:92
← previousnext →1,101–1,200 of 1,370, ranked by callers