MCPcopy Create free account

hub / github.com/Pints-AI/1.5-Pints / functions

Functions589 in github.com/Pints-AI/1.5-Pints

Methodmaybe_do_quantize
(item: tuple[DataType, NDArray])
tokenizer/convert/convert.py:1108
Functionmeasure_flops
Measures real FLOPs for HFU
lit_gpt/speed_monitor.py:459
Methodmerge
Merges the LoRA weights into the full-rank weights (W = W + delta_W).
lit_gpt/lora.py:360
Functionmerge_lora_weights
Merge LoRA weights into the full-rank weights to speed up inference.
lit_gpt/lora.py:741
Methodmlp_class
(self)
lit_gpt/config.py:17
Functionmock_prepare_data
()
lit_gpt/datamodules/deita_e2e_test.py:21
Functionmock_prepare_data
()
lit_gpt/datamodules/meta_math_qa_e2e_test.py:21
Functionmust_read
(fp: IO[bytes], length: int)
tokenizer/convert/convert.py:876
Methodon_train_batch_end
(self, *args: Any, **kwargs: Any)
lit_gpt/speed_monitor.py:353
Methodon_train_batch_end
( self, trainer: Trainer, pl_module: LightningModule, outputs: Any, ba
lit_gpt/speed_monitor.py:389
Methodon_train_start
(self, trainer: Trainer, pl_module: LightningModule)
lit_gpt/speed_monitor.py:382
Methodon_validation_end
(self, trainer: Trainer, pl_module: LightningModule)
lit_gpt/speed_monitor.py:418
Methodon_validation_start
(self, trainer: Trainer, pl_module: LightningModule)
lit_gpt/speed_monitor.py:414
Methodpart
(self, n_part: int)
tokenizer/convert/convert.py:617
Methodpermute
(self, n_head: int, n_head_kv: int)
tokenizer/convert/convert.py:621
Methodpermute_part
(self, n_part: int, n_head: int, n_head_kv: int)
tokenizer/convert/convert.py:613
Methodpersistent_id
(self, obj)
lit_gpt/utils_old.py:317
Methodpersistent_id
(self, obj)
lit_gpt/utils.py:180
Methodpersistent_load
(self, pid)
lit_gpt/utils_old.py:209
Methodpersistent_load
(self, pid: Any)
tokenizer/convert/convert.py:786
Methodprocess_data
( self, tokenizer_path: Path, destination_path: Path, chunk_size: int,
prepare_dataset/preparer.py:347
Functionquantization
(mode: Optional[str] = None)
lit_gpt/utils_old.py:32
Methodquantize
(self, arr: NDArray)
tokenizer/convert/convert.py:92
Methodquantize_blocks_q8_0
(blocks: NDArray)
tokenizer/convert/convert.py:99
Methodread_file
This defines how the file will be accessed. NOTE: This does not mandate a return type, as different files will return different types
prepare_dataset/preparer.py:248
Methodread_file_contents
(self, filepath: Path)
prepare_dataset/standard_parquet.py:27
Methodrebuild_from_type_v2
(cls, func, new_type, args, state, *, archiveinfo=None)
lit_gpt/utils_old.py:102
Methodrebuild_from_type_v2
(func, new_type, args, state)
tokenizer/convert/convert.py:817
Methodrebuild_parameter
(cls, data, requires_grad, backward_hooks, *, archiveinfo=None)
lit_gpt/utils_old.py:116
Methodrebuild_tensor_v2
( cls, storage, storage_offset, size, stride, requires_grad, backward_hooks, metadata=None, *, archive
lit_gpt/utils_old.py:129
Methodreset_cache
(self)
lit_gpt/adapter.py:50
Functionreset_parameters
Calls `reset_parameters` on the module and all its submodules.
lit_gpt/utils.py:60
Methodreset_parameters
(self)
lit_gpt/rmsnorm.py:840
Functionsave
Overridden to merge CSV by the step number.
lit_gpt/utils_old.py:422
Methodsave
(self, obj)
lit_gpt/utils_old.py:380
Functionsave_config
(config: 'Config', checkpoint_dir: Path)
lit_gpt/utils.py:491
MethodsetUp
(self)
prepare_dataset/prepare_dataset_test.py:12
Functionsetup
Finetune a model. Arguments: checkpoint_dir: The path to the base model's checkpoint directory to load for finetuning. out_dir: D
finetune/full.py:72
Functionsetup
Sets up the environment and configurations for training a model. Args: data_dir (Optional[Path]): Directory containing the training
pretrain/main.py:213
Methodsetup
(self, trainer: Trainer, pl_module: LightningModule, stage: str)
lit_gpt/speed_monitor.py:370
Methodsetup
(self, stage: str = '')
lit_gpt/datamodules/llama_instruct.py:75
Methodsetup
(self, stage: str = '')
lit_gpt/datamodules/ultrachat_200k.py:84
Methodsetup
(self, stage: str = '')
lit_gpt/datamodules/wizardlm_evol_instruct_v2.py:82
Methodsetup
(self, stage: str = '')
lit_gpt/datamodules/capybara.py:84
Methodsetup
(self, stage: str = '')
lit_gpt/datamodules/base.py:45
Methodsetup
(self, stage: str = '')
lit_gpt/datamodules/slim_orca_dedup.py:79
Methodstop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:24
Methodstop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:40
Methodstop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:113
Methodstop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:131
Methodstop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:145
Methodstop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:167
Methodstop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:273
Methodstore_early
(self, tensor)
lit_gpt/utils_old.py:375
Functiontest_capybara_format_dataset
()
lit_gpt/datamodules/capybara_test.py:32
Functiontest_capybara_format_dataset_multiturn
()
lit_gpt/datamodules/capybara_test.py:13
Functiontest_chatml
()
lit_gpt/prompts_test.py:4
Functiontest_chatml_with_system_message
()
lit_gpt/prompts_test.py:23
Functiontest_deita_e2e
()
lit_gpt/datamodules/deita_e2e_test.py:13
Functiontest_deita_format_dataset
()
lit_gpt/datamodules/deita_test.py:35
Functiontest_deita_format_dataset_multiturn
()
lit_gpt/datamodules/deita_test.py:13
Functiontest_format_dataset
()
lit_gpt/datamodules/ultrachat_200k_test.py:35
Functiontest_format_dataset
()
lit_gpt/datamodules/wizardlm_evol_instruct_v2_test.py:13
Functiontest_format_dataset
()
lit_gpt/datamodules/slim_orca_dedup_test.py:12
Functiontest_format_dataset_chatml
()
dpo/adapters/ultrafeedback_binarized_test.py:6
Functiontest_format_dataset_multiturn
()
lit_gpt/datamodules/ultrachat_200k_test.py:13
Functiontest_format_dataset_multiturn
()
lit_gpt/datamodules/llama_instruct_test.py:13
Functiontest_getitem
(max_seq_length, ignore_index, mask_prompt, MOCK_TOKENIZER_FIXTURE)
lit_gpt/datamodules/sft_multiturn_dataset_base_test.py:59
Functiontest_getitem_check_labels
(MOCK_TOKENIZER_FIXTURE)
lit_gpt/datamodules/sft_multiturn_dataset_base_test.py:125
Functiontest_getitem_hit_max_seq_length
( max_seq_length, ignore_index, mask_prompt, MOCK_TOKENIZER_FIXTURE )
lit_gpt/datamodules/sft_multiturn_dataset_base_test.py:84
Functiontest_metamath_e2e
()
lit_gpt/datamodules/meta_math_qa_e2e_test.py:13
Functiontest_metamath_format_dataset
()
lit_gpt/datamodules/meta_math_qa_test.py:13
Methodtest_packed_with_bos_eos
Test that the packed dataset is correctly formatted with bos and eos tokens, even when multiple sequences are packed into it.
prepare_dataset/prepare_dataset_test.py:29
Functiontest_save_checkpoint
()
pretrain/main_save_checkpoint_test.py:6
Functiontest_save_checkpoint
()
pretrain/main_train_test.py:6
Functiontest_save_checkpoint_should_not_save_due_not_arrived_at_save_step
()
pretrain/main_save_checkpoint_test.py:30
Functiontest_save_checkpoint_should_not_save_due_not_arrived_at_save_step
()
pretrain/main_train_test.py:30
Functiontest_save_checkpoint_should_not_save_due_still_accumulating
()
pretrain/main_save_checkpoint_test.py:52
Functiontest_save_checkpoint_should_not_save_due_still_accumulating
()
pretrain/main_train_test.py:52
Functiontest_save_checkpoint_should_save_if_is_last_iteration
()
pretrain/main_save_checkpoint_test.py:74
Functiontest_save_checkpoint_should_save_if_is_last_iteration
()
pretrain/main_train_test.py:74
Functiontest_sft_collate_fn_padding
(pad_id, ignore_index)
lit_gpt/datamodules/base_test.py:108
Functiontest_sft_collate_fn_truncation
()
lit_gpt/datamodules/base_test.py:127
Functiontest_sft_dataset
(max_seq_length, ignore_index, mask_prompt, MOCK_TOKENIZER_FIXTURE)
lit_gpt/datamodules/base_test.py:14
Functiontest_sft_dataset_hit_max_seq_length
( max_seq_length, ignore_index, mask_prompt, MOCK_TOKENIZER_FIXTURE )
lit_gpt/datamodules/base_test.py:52
Methodtest_single_bos_eos
Test that the tokenizer correctly encodes a single string with bos and eos tokens.
prepare_dataset/prepare_dataset_test.py:16
Functiontest_slim_orca_idk_e2e
()
lit_gpt/datamodules/slim_orca_idontknow_e2e_test.py:12
Functiontest_slim_orca_idontknow_format_dataset
()
lit_gpt/datamodules/slim_orca_idontknow_test.py:10
Methodto_ggml
(self)
tokenizer/convert/convert.py:610
← previous501–589 of 589, ranked by callers