MCPcopy Create free account

hub / github.com/Jittor/JittorLLMs / functions

Functions1,370 in github.com/Jittor/JittorLLMs

↓ 1 callersMethodget_weighting
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:620
↓ 1 callersFunctionglue_classification
(num_classes, Dataset, name_from_datapath_func)
models/pangualpha/tasks/glue/finetune.py:26
↓ 1 callersMethodhas_overflow
(self, params)
models/pangualpha/megatron/fp16/loss_scaler.py:49
↓ 1 callersMethodhas_overflow_serial
(self, params)
models/pangualpha/megatron/fp16/loss_scaler.py:120
↓ 1 callersFunctionhttp_get
(url, temp_file)
models/pangualpha/megatron/deprecated_data_utils/file_utils.py:166
↓ 1 callersFunctioninfer_dataset_impl
(path)
models/pangualpha/megatron/data/indexed_dataset.py:35
↓ 1 callersMethodinit_state_dict_from_bert
Initialize the state from a pretrained BERT model on iteration zero of ICT pretraining
models/pangualpha/megatron/model/realm_model.py:117
↓ 1 callersMethodinit_weighting
(self)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:493
↓ 1 callersMethodis_in_use
Whether the current buffer hold on to any memory.
models/pangualpha/megatron/memory.py:79
↓ 1 callersFunctionis_similar
(jaccard_similarity)
models/pangualpha/tools/openwebtext/group_duplicates_url.py:21
↓ 1 callersFunctionjaccard
(set_a, set_b)
models/pangualpha/tools/openwebtext/find_duplicates.py:33
↓ 1 callersFunctionload
( ckpt_dir: str, tokenizer_path: str, max_seq_len: int, max_batch_size: int, )
models/llama/example.py:18
↓ 1 callersFunctionloadAttentionLayerFromNp
(npCkptPath, transformer, layerID)
models/pangualpha/mergeMpCkpt.py:336
↓ 1 callersFunctionloadAttentionLayerFromNp
(npCkptPath, transformer, layerID)
models/pangualpha/tools/change_MspCkpt_ToMgt.py:120
↓ 1 callersFunctionloadEmbeddingFromNp
(npCkptPath, languageModel, vocabSize=40000)
models/pangualpha/mergeMpCkpt.py:319
↓ 1 callersFunctionloadEmbeddingFromNp
(npCkptPath, languageModel, vocabSize=40000)
models/pangualpha/tools/change_MspCkpt_ToMgt.py:103
↓ 1 callersFunctionloadModelFromNp
(sd, num_layers)
models/pangualpha/mergeMpCkpt.py:300
↓ 1 callersFunctionloadModelFromNp
(sd, args)
models/pangualpha/tools/change_MspCkpt_ToMgt.py:83
↓ 1 callersFunctionloadPartionAttentionLayer
(model, modelNewList, mpPartitions,layerID)
models/pangualpha/tools/splitMergedCkpt_v0.py:99
↓ 1 callersFunctionloadPartionEmbending
(model, modelNewList, mpPartitions)
models/pangualpha/tools/splitMergedCkpt_v0.py:80
↓ 1 callersFunctionloadPartionTopQueryLayer
(model, modelNewList, mpPartitions)
models/pangualpha/tools/splitMergedCkpt_v0.py:136
↓ 1 callersFunctionloadQueryLayerFromNp
(npCkptPath, transformer)
models/pangualpha/mergeMpCkpt.py:448
↓ 1 callersFunctionloadQueryLayerFromNp
(npCkptPath, transformer)
models/pangualpha/tools/change_MspCkpt_ToMgt.py:232
↓ 1 callersMethodload_attributes
Load the necessary attributes: model, dataloader and empty BlockData
models/pangualpha/megatron/indexer.py:35
↓ 1 callersMethodload_from_file
Populate members from instance saved to file
models/pangualpha/megatron/data/realm_index.py:48
↓ 1 callersFunctionload_ict_checkpoint
selectively load ICT models for indexing/retrieving from ICT or REALM checkpoints
models/pangualpha/megatron/checkpointing.py:263
↓ 1 callersMethodload_json_stream
(self, load_path)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:451
↓ 1 callersFunctionload_one_partition_model
(partition_model, full_model, rank)
models/pangualpha/tools/split_full_model_into_mp_model.py:160
↓ 1 callersMethodload_spm_model
load sentencepiece model and parse vocab
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:639
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
models/pangualpha/megatron/deprecated_data_utils/wordpiece.py:50
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
models/pangualpha/megatron/tokenizer/bert_tokenization.py:121
↓ 1 callersFunctionmain
()
models/pangualpha/mergeMpCkpt.py:196
↓ 1 callersFunctionmain
Main program.
models/pangualpha/tools/generate_samples_Pangu.py:125
↓ 1 callersFunctionmain
Create a BlockData data structure by running an IndexBuilder over an ICT Dataset - Include all args needed for initial model specification Ot
models/pangualpha/tools/create_doc_index.py:8
↓ 1 callersFunctionmain
()
models/pangualpha/tools/merge_mp_partitions.py:190
↓ 1 callersFunctionmain
()
models/pangualpha/tools/change_MspCkpt_ToMgt.py:325
↓ 1 callersFunctionmain
()
models/pangualpha/tools/preprocess_data_pangu.py:146
↓ 1 callersFunctionmain
()
models/pangualpha/tools/splitMergedCkpt_v0.py:173
↓ 1 callersFunctionmain
()
models/pangualpha/megatron/data/test/test_indexed_dataset.py:82
↓ 1 callersFunctionmain
()
models/pangualpha/tasks/ensemble_classifier.py:126
↓ 1 callersFunctionmain
Main program.
models/pangualpha/tasks/zeroshot_gpt2/evaluate.py:170
↓ 1 callersFunctionmain
Main program.
models/pangualpha/tasks/downstream_pangu/evaluate_classfier.py:60
↓ 1 callersFunctionmain
()
models/qwen2/main.py:10
↓ 1 callersFunctionmake_lazy
Make lazy version of `data_type` field of the file. Byte offsets corresponding to data indices are stored in a `.len.pkl` data file.
models/pangualpha/megatron/deprecated_data_utils/lazy_loader.py:47
↓ 1 callersFunctionmake_loaders
makes training/val/test
models/pangualpha/megatron/deprecated_data_utils/configure_data.py:118
↓ 1 callersFunctionmake_tfrecord_loaders
Load train/val/test dataset from shuffled TFRecords
models/pangualpha/megatron/deprecated_data_utils/configure_data.py:81
↓ 1 callersFunctionmake_tokenizer
Helper function to instantiate a tokenizer given common combinations of options.
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:32
↓ 1 callersMethodmask_token
helper function to mask `idx` token from `tokens` according to section 3.3.1 of https://arxiv.org/pdf/1810.04805.pdf
models/pangualpha/megatron/deprecated_data_utils/datasets.py:822
↓ 1 callersMethodmerge_shards_and_save
Combine all the shards made using self.save_shard()
models/pangualpha/megatron/data/realm_index.py:83
↓ 1 callersFunctionmodel_grads_to_master_grads
Copy model gradients to master gradients. Args: model_params: List of model parameters created by :func:`prep_param_lists`.
models/pangualpha/megatron/fp16/fp16util.py:155
↓ 1 callersFunctionmpu_cross_entropy
(batch_size, seq_length, vocab_size, logits_scale, seed)
models/pangualpha/megatron/mpu/tests/test_cross_entropy.py:44
↓ 1 callersFunctionon_message
(message)
models/chatrwkv/chat.py:271
↓ 1 callersFunctionon_message
(message)
models/chatrwkv/v2/chat.py:180
↓ 1 callersFunctionpackage_file
package multiple files
models/pangualpha/tools/preprocess_data_pangu.py:96
↓ 1 callersMethodpad
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:113
↓ 1 callersFunctionpad_and_convert_to_numpy
Pad sequences and convert them to numpy.
models/pangualpha/megatron/data/dataset_utils.py:324
↓ 1 callersMethodpad_seq
(self, seq)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:568
↓ 1 callersFunctionparse_args
Parse all arguments.
models/pangualpha/megatron/arguments.py:24
↓ 1 callersFunctionpostprocess_predictions
(all_predictions, all_labels, args)
models/pangualpha/tasks/ensemble_classifier.py:79
↓ 1 callersFunctionprecompute_freqs_cis
(dim: int, end: int, theta: float = 10000.0)
models/llama/llama/model.py:42
↓ 1 callersMethodprefetch
(self, indices)
models/pangualpha/megatron/data/indexed_dataset.py:222
↓ 1 callersFunctionprep_command_tokens
(tokenlist, token_format=token_format)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:146
↓ 1 callersFunctionprep_type_tokens
(tokenlist, token_format=token_format)
models/pangualpha/megatron/deprecated_data_utils/tokenization.py:177
↓ 1 callersMethodprepare_inputs_for_generation
( self, input_ids: torch.LongTensor, past: Optional[torch.Tensor] = None,
models/chatglm/modeling_chatglm.py:1073
↓ 1 callersMethodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
models/atom7b/modeling_llama.py:1030
↓ 1 callersMethodpreprocess_text
(self, inputs)
models/chatglm/tokenization_chatglm.py:240
↓ 1 callersFunctionprocess_batch
Process batch and produce inputs for the model.
models/pangualpha/tasks/zeroshot_gpt2/evaluate.py:58
↓ 1 callersFunctionprocess_files
(args)
models/pangualpha/tasks/ensemble_classifier.py:9
↓ 1 callersMethodprocess_response
(self, response)
models/atom7b/modeling_llama.py:761
↓ 1 callersMethodprocess_samples_from_single_path
Abstract method that takes a single path / filename and returns a list of dataset samples, each sample being a dict of {'text_a':
models/pangualpha/tasks/glue/data.py:64
↓ 1 callersFunctionprocess_single_datapath
Read in RACE files, combine, clean-up, tokenize, and convert to samples.
models/pangualpha/tasks/race/data.py:49
↓ 1 callersFunctionquantize
Replace fp16 linear with quantized linear
models/chatglm/quantization.py:153
↓ 1 callersMethodquantize
(self, bits: int, empty_init=False, **kwargs)
models/chatglm/modeling_chatglm.py:1368
↓ 1 callersMethodread_index
(self, path)
models/pangualpha/megatron/data/indexed_dataset.py:137
↓ 1 callersFunctionrecursively_lint_files
Recursively lint all python files in chosen subdirectories of megatron-lm
models/pangualpha/tools/linter.py:7
↓ 1 callersFunctionreply_msg
(msg)
models/chatrwkv/chat.py:268
↓ 1 callersFunctionreply_msg
(msg)
models/chatrwkv/v2/chat.py:177
↓ 1 callersFunctionreport_memory
Simple GPU memory report.
models/pangualpha/megatron/utils.py:41
↓ 1 callersFunctionreq_file
(filename)
models/pangualpha/setup.py:44
↓ 1 callersMethodreset
Reset timer.
models/pangualpha/megatron/global_vars.py:178
↓ 1 callersFunctionreshape_for_broadcast
(freqs_cis: jt.Var, x: jt.Var)
models/llama/llama/model.py:50
↓ 1 callersMethodrun
(self, input_text: str)
models/llama/__init__.py:65
↓ 1 callersMethodrun
(self, text, history=[])
models/chatglm/__init__.py:44
↓ 1 callersMethodrun
(self, text, history=[])
models/atom7b/__init__.py:72
↓ 1 callersMethodrun_web_demo
(self, input_text, history=[])
models/llama/__init__.py:85
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
models/pangualpha/megatron/deprecated_data_utils/file_utils.py:150
↓ 1 callersFunctions3_get
Pull a file directly from S3.
models/pangualpha/megatron/deprecated_data_utils/file_utils.py:159
↓ 1 callersFunctionsample_logits
(out, temperature=1.0, top_p=0.8)
models/chatrwkv/RWKV_in_150_lines.py:118
↓ 1 callersMethodsample_logits
(self, logits, temperature=1.0, top_p=1.0)
models/chatrwkv/rwkv_pip_package/src/rwkv/utils.py:40
↓ 1 callersFunctionsample_sequence_batch
(model, context_tokens, context_lengths, attention_mask, position_ids,
models/pangualpha/megatron/text_generation_utils.py:323
↓ 1 callersFunctionsample_top_p
(probs, p)
models/llama/llama/generation2.py:245
↓ 1 callersFunctionsample_top_p
(probs, p)
models/llama/llama/generation.py:86
↓ 1 callersMethodsave_json_stream
(self, save_path, json_stream)
models/pangualpha/megatron/deprecated_data_utils/datasets.py:438
↓ 1 callersMethodsave_shard
Save the block data that was created this in this process
models/pangualpha/megatron/data/realm_index.py:74
↓ 1 callersFunctionscatter_to_model_parallel_region
(input_)
models/pangualpha/megatron/mpu/mappings.py:152
↓ 1 callersMethodset_epoch
(self, epoch)
models/pangualpha/megatron/data/samplers.py:74
↓ 1 callersFunctionset_global_variables
Set args, tokenizer, tensorboard-writer, adlr-autoresume, and timers.
models/pangualpha/megatron/global_vars.py:64
↓ 1 callersFunctionset_model_parallel_rank
Set model parallel rank.
models/pangualpha/megatron/mpu/initialize.py:125
↓ 1 callersFunctionset_model_parallel_world_size
Set the model parallel size
models/pangualpha/megatron/mpu/initialize.py:111
↓ 1 callersMethodset_special_tokens
Add a list of additional tokens to the encoder. The additional tokens are indexed starting from the last index of the current
models/pangualpha/megatron/deprecated_data_utils/tokenization_gpt2.py:179
← previousnext →501–600 of 1,370, ranked by callers