Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jittor/JittorLLMs
/ functions
Functions
1,370 in github.com/Jittor/JittorLLMs
⨍
Functions
1,370
◇
Types & classes
194
↳
Endpoints
3
Method
load_state_dict
Customized load.
models/pangualpha/megatron/model/language_model.py:341
Method
load_state_dict
Customized load.
models/pangualpha/megatron/model/language_model.py:485
Method
load_state_dict
Customized load.
models/pangualpha/megatron/model/gpt2_model.py:138
Method
load_state_dict
Customized load.
models/pangualpha/megatron/model/bert_model.py:200
Method
load_state_dict
Customized load.
models/pangualpha/megatron/model/multiple_choice.py:99
Method
load_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
Function
load_tf_weights_in_chatglm_6b
Load tf checkpoints in a pytorch model.
models/chatglm/modeling_chatglm.py:62
Method
loss_scale
(self)
models/pangualpha/megatron/fp16/loss_scaler.py:60
Method
loss_scale
(self)
models/pangualpha/megatron/fp16/loss_scaler.py:188
Function
lru_cache
()
models/pangualpha/megatron/deprecated_data_utils/tokenization_gpt2.py:32
Function
lru_cache
()
models/pangualpha/megatron/tokenizer/gpt2_tokenization.py:34
Function
lru_cache
()
models/pangualpha/megatron/tokenizer/tokenization_jieba.py:33
Function
main
()
models/pangualpha/tasks/race/finetune.py:60
Function
main
()
models/pangualpha/tasks/glue/finetune.py:65
Function
main
( ckpt_dir: str, tokenizer_path: str, temperature: float = 0.8, top_p: float = 0.95, max_s
models/llama/example.py:47
Function
make_builder
(out_file, impl, vocab_size=None)
models/pangualpha/megatron/data/indexed_dataset.py:51
Function
make_dataset
(path, impl, skip_warmup=False)
models/pangualpha/megatron/data/indexed_dataset.py:58
Function
make_dataset
function to create datasets+tokenizers for common options
models/pangualpha/megatron/deprecated_data_utils/__init__.py:68
Method
mask
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:123
Method
mask
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:186
Method
max_length
(self)
models/qwen2/qwen2_jt/utils.py:324
Method
merge_file_
(self, another_file)
models/pangualpha/megatron/data/indexed_dataset.py:294
Method
merge_file_
(self, another_file)
models/pangualpha/megatron/data/indexed_dataset.py:554
Function
metrics_func
(model, epoch, output_predictions=False)
models/pangualpha/tasks/eval_utils.py:44
Function
metrics_func_provider
Privde metrics callback function.
models/pangualpha/tasks/race/finetune.py:48
Function
metrics_func_provider
Privde metrics callback function.
models/pangualpha/tasks/glue/finetune.py:50
Function
model_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
Function
model_parallel_is_initialized
Check if model and data parallel groups are initialized.
models/pangualpha/megatron/mpu/initialize.py:90
Function
model_provider
Build the model.
models/pangualpha/pretrain_bert.py:31
Function
model_provider
Build the model.
models/pangualpha/__init__.py:18
Function
model_provider
()
models/pangualpha/mergeMpCkpt.py:130
Function
model_provider
Build the model.
models/pangualpha/pretrain_gpt2.py:31
Function
model_provider
Build the model.
models/pangualpha/tools/generate_samples_Pangu.py:42
Function
model_provider
()
models/pangualpha/tools/split_full_model_into_mp_model.py:31
Function
model_provider
()
models/pangualpha/tools/merge_mp_partitions.py:122
Function
model_provider
()
models/pangualpha/tools/change_MspCkpt_ToMgt.py:58
Function
model_provider
Build the model.
models/pangualpha/tasks/zeroshot_gpt2/evaluate.py:39
Function
model_provider
Build the model.
models/pangualpha/tasks/downstream_pangu/evaluate_classfier.py:45
Function
model_provider
Build the model.
models/pangualpha/tasks/glue/finetune.py:41
Function
my_print
(s)
models/chatrwkv/API_DEMO.py:78
Function
name_from_datapath
(datapath)
models/pangualpha/tasks/glue/finetune.py:73
Method
nbytes
(self)
models/atom7b/__init__.py:24
Function
network_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
Method
num_image_tokens
(self)
models/chatglm/tokenization_chatglm.py:89
Method
num_samples
(self)
models/pangualpha/megatron/data/samplers.py:55
Method
num_samples
(self)
models/pangualpha/megatron/deprecated_data_utils/samplers.py:55
Method
num_text_tokens
(self)
models/chatglm/tokenization_chatglm.py:93
Method
num_tokens
(self, index)
models/pangualpha/megatron/data/indexed_dataset.py:194
Method
num_tokens
(self)
models/chatglm/tokenization_chatglm.py:97
Method
numel_in_use
Return number of elements in use.
models/pangualpha/megatron/memory.py:84
Function
openai_gelu
(x)
models/pangualpha/megatron/model/utils.py:58
Method
operator()
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:37
Method
operator()
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:44
Method
out_stream
()
models/pangualpha/megatron/deprecated_data_utils/datasets.py:431
Method
pad
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:182
Function
predict
(input, history=None)
web_demo.py:8
Function
prep_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
Method
prepare_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
Function
pretrain_ict_model_provider
()
models/pangualpha/pretrain_ict.py:33
Method
print_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
Function
print_params_min_max_norm
Print min, max, and norm of all parameters.
models/pangualpha/megatron/utils.py:55
Function
printable_text
Returns text encoded in a way suitable for print or `tf.logging`.
models/pangualpha/megatron/tokenizer/bert_tokenization.py:98
Method
process_samples_from_single_path
Implement abstract method.
models/pangualpha/tasks/glue/mnli.py:34
Method
process_samples_from_single_path
Implement abstract method.
models/pangualpha/tasks/glue/qqp.py:34
Function
ptb_detokenizer
(string)
models/pangualpha/tasks/zeroshot_gpt2/detokenizer.py:21
Function
read_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
Function
record_time
(name)
models/chatrwkv/src/utils.py:14
Method
refine_context
(self, context)
models/chatrwkv/rwkv_pip_package/src/rwkv/utils.py:24
Method
refine_context
(self, context)
models/chatrwkv/src/utils.py:25
Method
reset
Reset the buffer start index to the beginning of the buffer.
models/pangualpha/megatron/memory.py:74
Function
reset_checkpointed_activations_memory_buffer
Reset the memory used for checkpointing.
models/pangualpha/megatron/mpu/random.py:65
Method
reset_index
Delete existing index and create anew
models/pangualpha/megatron/data/realm_index.py:157
Method
run_web_demo
(self, input_text, history=[])
models/pangualpha/__init__.py:164
Method
run_web_demo
(self, input_text, history=[])
models/llama/__init__.py:116
Method
run_web_demo
(self, input_text, history=[])
models/chatglm/__init__.py:40
Method
run_web_demo
(self, input_text, history=[])
models/chatrwkv/__init__.py:328
Method
run_web_demo
(self, input_text, history=[])
models/atom7b/__init__.py:68
Function
s3_request
Wrapper function for s3 requests in order to create more helpful error messages.
models/pangualpha/megatron/deprecated_data_utils/file_utils.py:130
Method
save_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
models/pangualpha/megatron/deprecated_data_utils/tokenization_gpt2.py:286
Method
save_vocabulary
Save the tokenizer vocabulary and merge files to a directory.
models/pangualpha/megatron/tokenizer/gpt2_tokenization.py:288
Method
save_vocabulary
Save the vocabulary and special tokens file to a directory. Args: save_directory (`str`): The directory
models/chatglm/tokenization_chatglm.py:287
Method
scale_gradient
(self, module, grad_in, grad_out)
models/pangualpha/megatron/fp16/loss_scaler.py:63
Method
scale_gradient
(self, module, grad_in, grad_out)
models/pangualpha/megatron/fp16/loss_scaler.py:191
Function
scaled_upper_triang_masked_softmax_warp_backward
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:171
Function
scaled_upper_triang_masked_softmax_warp_forward
models/pangualpha/megatron/fused_kernels/scaled_upper_triang_masked_softmax.h:78
Function
sdpa_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
Method
search_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
Method
sep
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:108
Method
sep
(self)
models/pangualpha/megatron/tokenizer/tokenizer.py:178
Method
set_decoder
(self, decoder)
models/qwen2/qwen2_jt/modeling_qwen2.py:494
Method
set_decoder
(self, decoder)
models/atom7b/modeling_llama.py:930
Method
set_defaults
(self, **kwargs)
models/pangualpha/megatron/deprecated_data_utils/configure_data.py:37
Method
set_epoch
(self, epoch)
models/pangualpha/megatron/deprecated_data_utils/samplers.py:74
Method
set_input_embeddings
(self, value)
models/qwen2/qwen2_jt/modeling_qwen2.py:422
Method
set_input_embeddings
(self, value)
models/qwen2/qwen2_jt/modeling_qwen2.py:485
Method
set_input_embeddings
(self, new_embeddings: torch.Tensor)
models/chatglm/modeling_chatglm.py:812
Method
set_input_embeddings
(self, value)
models/atom7b/modeling_llama.py:596
Method
set_input_embeddings
(self, value)
models/atom7b/modeling_llama.py:921
Method
set_input_embeddings
(self, value)
models/atom7b/modeling_llama.py:1098
Method
set_output_embeddings
(self, new_embeddings)
models/qwen2/qwen2_jt/modeling_qwen2.py:491
← previous
next →
1,201–1,300 of 1,370, ranked by callers