MCPcopy Create free account

hub / github.com/Jittor/JittorLLMs / functions

Functions1,370 in github.com/Jittor/JittorLLMs

Methodload_state_dict
Customized load.
models/pangualpha/megatron/model/language_model.py:341
Methodload_state_dict
Customized load.
models/pangualpha/megatron/model/language_model.py:485
Methodload_state_dict
Customized load.
models/pangualpha/megatron/model/gpt2_model.py:138
Methodload_state_dict
Customized load.
models/pangualpha/megatron/model/bert_model.py:200
Methodload_state_dict
Customized load.
models/pangualpha/megatron/model/multiple_choice.py:99
Methodload_state_dict
Loads a state_dict created by an earlier call to state_dict(). If ``fp16_optimizer_instance`` was constructed from some ``init_optimi
models/pangualpha/megatron/fp16/fp16.py:377
Functionload_tf_weights_in_chatglm_6b
Load tf checkpoints in a pytorch model.
models/chatglm/modeling_chatglm.py:62
Methodloss_scale
(self)
models/pangualpha/megatron/fp16/loss_scaler.py:60
Methodloss_scale
(self)
models/pangualpha/megatron/fp16/loss_scaler.py:188
Functionlru_cache
()
models/pangualpha/megatron/deprecated_data_utils/tokenization_gpt2.py:32
Functionlru_cache
()
models/pangualpha/megatron/tokenizer/gpt2_tokenization.py:34
Functionlru_cache
()
models/pangualpha/megatron/tokenizer/tokenization_jieba.py:33
Functionmain
()
models/pangualpha/tasks/race/finetune.py:60
Functionmain
()
models/pangualpha/tasks/glue/finetune.py:65
Functionmain
( ckpt_dir: str, tokenizer_path: str, temperature: float = 0.8, top_p: float = 0.95, max_s
models/llama/example.py:47
Functionmake_builder
(out_file, impl, vocab_size=None)
models/pangualpha/megatron/data/indexed_dataset.py:51
Functionmake_dataset
(path, impl, skip_warmup=False)
models/pangualpha/megatron/data/indexed_dataset.py:58
Functionmake_dataset
function to create datasets+tokenizers for common options
models/pangualpha/megatron/deprecated_data_utils/__init__.py:68
Methodmask
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:123
Methodmask
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:186
Methodmax_length
(self)
models/qwen2/qwen2_jt/utils.py:324
Methodmerge_file_
(self, another_file)
models/pangualpha/megatron/data/indexed_dataset.py:294
Methodmerge_file_
(self, another_file)
models/pangualpha/megatron/data/indexed_dataset.py:554
Functionmetrics_func
(model, epoch, output_predictions=False)
models/pangualpha/tasks/eval_utils.py:44
Functionmetrics_func_provider
Privde metrics callback function.
models/pangualpha/tasks/race/finetune.py:48
Functionmetrics_func_provider
Privde metrics callback function.
models/pangualpha/tasks/glue/finetune.py:50
Functionmodel_parallel_cuda_manual_seed
Initialize model parallel cuda seed. This function should be called after the model parallel is initialized. Also, no torch.cuda.manual_seed
models/pangualpha/megatron/mpu/random.py:220
Functionmodel_parallel_is_initialized
Check if model and data parallel groups are initialized.
models/pangualpha/megatron/mpu/initialize.py:90
Functionmodel_provider
Build the model.
models/pangualpha/pretrain_bert.py:31
Functionmodel_provider
Build the model.
models/pangualpha/__init__.py:18
Functionmodel_provider
()
models/pangualpha/mergeMpCkpt.py:130
Functionmodel_provider
Build the model.
models/pangualpha/pretrain_gpt2.py:31
Functionmodel_provider
Build the model.
models/pangualpha/tools/generate_samples_Pangu.py:42
Functionmodel_provider
()
models/pangualpha/tools/split_full_model_into_mp_model.py:31
Functionmodel_provider
()
models/pangualpha/tools/merge_mp_partitions.py:122
Functionmodel_provider
()
models/pangualpha/tools/change_MspCkpt_ToMgt.py:58
Functionmodel_provider
Build the model.
models/pangualpha/tasks/zeroshot_gpt2/evaluate.py:39
Functionmodel_provider
Build the model.
models/pangualpha/tasks/downstream_pangu/evaluate_classfier.py:45
Functionmodel_provider
Build the model.
models/pangualpha/tasks/glue/finetune.py:41
Functionmy_print
(s)
models/chatrwkv/API_DEMO.py:78
Functionname_from_datapath
(datapath)
models/pangualpha/tasks/glue/finetune.py:73
Methodnbytes
(self)
models/atom7b/__init__.py:24
Functionnetwork_to_half
Convert model to half precision in a batchnorm-safe way. Retained for legacy purposes. It is recommended to use FP16Model.
models/pangualpha/megatron/fp16/fp16util.py:55
Methodnum_image_tokens
(self)
models/chatglm/tokenization_chatglm.py:89
Methodnum_samples
(self)
models/pangualpha/megatron/data/samplers.py:55
Methodnum_samples
(self)
models/pangualpha/megatron/deprecated_data_utils/samplers.py:55
Methodnum_text_tokens
(self)
models/chatglm/tokenization_chatglm.py:93
Methodnum_tokens
(self, index)
models/pangualpha/megatron/data/indexed_dataset.py:194
Methodnum_tokens
(self)
models/chatglm/tokenization_chatglm.py:97
Methodnumel_in_use
Return number of elements in use.
models/pangualpha/megatron/memory.py:84
Functionopenai_gelu
(x)
models/pangualpha/megatron/model/utils.py:58
Methodoperator()
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:37
Methodoperator()
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:44
Methodout_stream
()
models/pangualpha/megatron/deprecated_data_utils/datasets.py:431
Methodpad
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:182
Functionpredict
(input, history=None)
web_demo.py:8
Functionprep_param_lists
Creates a list of FP32 master parameters for a given model, as in `Training Neural Networks with Mixed Precision: Real Examples`_. Args
models/pangualpha/megatron/fp16/fp16util.py:109
Methodprepare_inputs_for_generation
Prepare the model inputs for generation. In includes operations like computing the 4D attention mask or slicing inputs given the exis
models/qwen2/qwen2_jt/utils.py:349
Functionpretrain_ict_model_provider
()
models/pangualpha/pretrain_ict.py:33
Methodprint_average_usage
Print memory usage average over time. We would like this value to be as high as possible.
models/pangualpha/megatron/memory.py:118
Functionprint_params_min_max_norm
Print min, max, and norm of all parameters.
models/pangualpha/megatron/utils.py:55
Functionprintable_text
Returns text encoded in a way suitable for print or `tf.logging`.
models/pangualpha/megatron/tokenizer/bert_tokenization.py:98
Methodprocess_samples_from_single_path
Implement abstract method.
models/pangualpha/tasks/glue/mnli.py:34
Methodprocess_samples_from_single_path
Implement abstract method.
models/pangualpha/tasks/glue/qqp.py:34
Functionptb_detokenizer
(string)
models/pangualpha/tasks/zeroshot_gpt2/detokenizer.py:21
Functionread_set_from_file
Extract a de-duped collection (set) of text from a file. Expected file format is one item per line.
models/pangualpha/megatron/deprecated_data_utils/file_utils.py:238
Functionrecord_time
(name)
models/chatrwkv/src/utils.py:14
Methodrefine_context
(self, context)
models/chatrwkv/rwkv_pip_package/src/rwkv/utils.py:24
Methodrefine_context
(self, context)
models/chatrwkv/src/utils.py:25
Methodreset
Reset the buffer start index to the beginning of the buffer.
models/pangualpha/megatron/memory.py:74
Functionreset_checkpointed_activations_memory_buffer
Reset the memory used for checkpointing.
models/pangualpha/megatron/mpu/random.py:65
Methodreset_index
Delete existing index and create anew
models/pangualpha/megatron/data/realm_index.py:157
Methodrun_web_demo
(self, input_text, history=[])
models/pangualpha/__init__.py:164
Methodrun_web_demo
(self, input_text, history=[])
models/llama/__init__.py:116
Methodrun_web_demo
(self, input_text, history=[])
models/chatglm/__init__.py:40
Methodrun_web_demo
(self, input_text, history=[])
models/chatrwkv/__init__.py:328
Methodrun_web_demo
(self, input_text, history=[])
models/atom7b/__init__.py:68
Functions3_request
Wrapper function for s3 requests in order to create more helpful error messages.
models/pangualpha/megatron/deprecated_data_utils/file_utils.py:130
Methodsave_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
models/pangualpha/megatron/deprecated_data_utils/tokenization_gpt2.py:286
Methodsave_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
models/pangualpha/megatron/tokenizer/gpt2_tokenization.py:288
Methodsave_vocabulary
Save the vocabulary and special tokens file to a directory. Args: save_directory (`str`): The directory
models/chatglm/tokenization_chatglm.py:287
Methodscale_gradient
(self, module, grad_in, grad_out)
models/pangualpha/megatron/fp16/loss_scaler.py:63
Methodscale_gradient
(self, module, grad_in, grad_out)
models/pangualpha/megatron/fp16/loss_scaler.py:191
Functionscaled_upper_triang_masked_softmax_warp_backward
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:171
Functionscaled_upper_triang_masked_softmax_warp_forward
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:78
Functionsdpa_attention_forward
( module: jt.nn.Module, query: jt.Var, key: jt.Var, value: jt.Var, attention_mask: Optiona
models/qwen2/qwen2_jt/modeling_qwen2.py:16
Methodsearch_mips_index
Get the top-k blocks by the index distance metric. :param reconstruct: if True: return a [num_queries x k x embed_dim] array of blocks
models/pangualpha/megatron/data/realm_index.py:195
Methodsep
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:108
Methodsep
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:178
Methodset_decoder
(self, decoder)
models/qwen2/qwen2_jt/modeling_qwen2.py:494
Methodset_decoder
(self, decoder)
models/atom7b/modeling_llama.py:930
Methodset_defaults
(self, **kwargs)
models/pangualpha/megatron/deprecated_data_utils/configure_data.py:37
Methodset_epoch
(self, epoch)
models/pangualpha/megatron/deprecated_data_utils/samplers.py:74
Methodset_input_embeddings
(self, value)
models/qwen2/qwen2_jt/modeling_qwen2.py:422
Methodset_input_embeddings
(self, value)
models/qwen2/qwen2_jt/modeling_qwen2.py:485
Methodset_input_embeddings
(self, new_embeddings: torch.Tensor)
models/chatglm/modeling_chatglm.py:812
Methodset_input_embeddings
(self, value)
models/atom7b/modeling_llama.py:596
Methodset_input_embeddings
(self, value)
models/atom7b/modeling_llama.py:921
Methodset_input_embeddings
(self, value)
models/atom7b/modeling_llama.py:1098
Methodset_output_embeddings
(self, new_embeddings)
models/qwen2/qwen2_jt/modeling_qwen2.py:491
← previousnext →1,201–1,300 of 1,370, ranked by callers