Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pints-AI/1.5-Pints
/ functions
Functions
589 in github.com/Pints-AI/1.5-Pints
⨍
Functions
589
◇
Types & classes
173
Method
maybe_do_quantize
(item: tuple[DataType, NDArray])
tokenizer/convert/convert.py:1108
Function
measure_flops
Measures real FLOPs for HFU
lit_gpt/speed_monitor.py:459
Method
merge
Merges the LoRA weights into the full-rank weights (W = W + delta_W).
lit_gpt/lora.py:360
Function
merge_lora_weights
Merge LoRA weights into the full-rank weights to speed up inference.
lit_gpt/lora.py:741
Method
mlp_class
(self)
lit_gpt/config.py:17
Function
mock_prepare_data
()
lit_gpt/datamodules/deita_e2e_test.py:21
Function
mock_prepare_data
()
lit_gpt/datamodules/meta_math_qa_e2e_test.py:21
Function
must_read
(fp: IO[bytes], length: int)
tokenizer/convert/convert.py:876
Method
on_train_batch_end
(self, *args: Any, **kwargs: Any)
lit_gpt/speed_monitor.py:353
Method
on_train_batch_end
( self, trainer: Trainer, pl_module: LightningModule, outputs: Any, ba
lit_gpt/speed_monitor.py:389
Method
on_train_start
(self, trainer: Trainer, pl_module: LightningModule)
lit_gpt/speed_monitor.py:382
Method
on_validation_end
(self, trainer: Trainer, pl_module: LightningModule)
lit_gpt/speed_monitor.py:418
Method
on_validation_start
(self, trainer: Trainer, pl_module: LightningModule)
lit_gpt/speed_monitor.py:414
Method
part
(self, n_part: int)
tokenizer/convert/convert.py:617
Method
permute
(self, n_head: int, n_head_kv: int)
tokenizer/convert/convert.py:621
Method
permute_part
(self, n_part: int, n_head: int, n_head_kv: int)
tokenizer/convert/convert.py:613
Method
persistent_id
(self, obj)
lit_gpt/utils_old.py:317
Method
persistent_id
(self, obj)
lit_gpt/utils.py:180
Method
persistent_load
(self, pid)
lit_gpt/utils_old.py:209
Method
persistent_load
(self, pid: Any)
tokenizer/convert/convert.py:786
Method
process_data
( self, tokenizer_path: Path, destination_path: Path, chunk_size: int,
prepare_dataset/preparer.py:347
Function
quantization
(mode: Optional[str] = None)
lit_gpt/utils_old.py:32
Method
quantize
(self, arr: NDArray)
tokenizer/convert/convert.py:92
Method
quantize_blocks_q8_0
(blocks: NDArray)
tokenizer/convert/convert.py:99
Method
read_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
Method
read_file_contents
(self, filepath: Path)
prepare_dataset/standard_parquet.py:27
Method
rebuild_from_type_v2
(cls, func, new_type, args, state, *, archiveinfo=None)
lit_gpt/utils_old.py:102
Method
rebuild_from_type_v2
(func, new_type, args, state)
tokenizer/convert/convert.py:817
Method
rebuild_parameter
(cls, data, requires_grad, backward_hooks, *, archiveinfo=None)
lit_gpt/utils_old.py:116
Method
rebuild_tensor_v2
( cls, storage, storage_offset, size, stride, requires_grad, backward_hooks, metadata=None, *, archive
lit_gpt/utils_old.py:129
Method
reset_cache
(self)
lit_gpt/adapter.py:50
Function
reset_parameters
Calls `reset_parameters` on the module and all its submodules.
lit_gpt/utils.py:60
Method
reset_parameters
(self)
lit_gpt/rmsnorm.py:840
Function
save
Overridden to merge CSV by the step number.
lit_gpt/utils_old.py:422
Method
save
(self, obj)
lit_gpt/utils_old.py:380
Function
save_config
(config: 'Config', checkpoint_dir: Path)
lit_gpt/utils.py:491
Method
setUp
(self)
prepare_dataset/prepare_dataset_test.py:12
Function
setup
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
Function
setup
Sets up the environment and configurations for training a model. Args: data_dir (Optional[Path]): Directory containing the training
pretrain/main.py:213
Method
setup
(self, trainer: Trainer, pl_module: LightningModule, stage: str)
lit_gpt/speed_monitor.py:370
Method
setup
(self, stage: str = '')
lit_gpt/datamodules/llama_instruct.py:75
Method
setup
(self, stage: str = '')
lit_gpt/datamodules/ultrachat_200k.py:84
Method
setup
(self, stage: str = '')
lit_gpt/datamodules/wizardlm_evol_instruct_v2.py:82
Method
setup
(self, stage: str = '')
lit_gpt/datamodules/capybara.py:84
Method
setup
(self, stage: str = '')
lit_gpt/datamodules/base.py:45
Method
setup
(self, stage: str = '')
lit_gpt/datamodules/slim_orca_dedup.py:79
Method
stop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:24
Method
stop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:40
Method
stop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:113
Method
stop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:131
Method
stop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:145
Method
stop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:167
Method
stop_tokens
(self, tokenizer: 'Tokenizer')
lit_gpt/prompts.py:273
Method
store_early
(self, tensor)
lit_gpt/utils_old.py:375
Function
test_capybara_format_dataset
()
lit_gpt/datamodules/capybara_test.py:32
Function
test_capybara_format_dataset_multiturn
()
lit_gpt/datamodules/capybara_test.py:13
Function
test_chatml
()
lit_gpt/prompts_test.py:4
Function
test_chatml_with_system_message
()
lit_gpt/prompts_test.py:23
Function
test_deita_e2e
()
lit_gpt/datamodules/deita_e2e_test.py:13
Function
test_deita_format_dataset
()
lit_gpt/datamodules/deita_test.py:35
Function
test_deita_format_dataset_multiturn
()
lit_gpt/datamodules/deita_test.py:13
Function
test_format_dataset
()
lit_gpt/datamodules/ultrachat_200k_test.py:35
Function
test_format_dataset
()
lit_gpt/datamodules/wizardlm_evol_instruct_v2_test.py:13
Function
test_format_dataset
()
lit_gpt/datamodules/slim_orca_dedup_test.py:12
Function
test_format_dataset_chatml
()
dpo/adapters/ultrafeedback_binarized_test.py:6
Function
test_format_dataset_multiturn
()
lit_gpt/datamodules/ultrachat_200k_test.py:13
Function
test_format_dataset_multiturn
()
lit_gpt/datamodules/llama_instruct_test.py:13
Function
test_getitem
(max_seq_length, ignore_index, mask_prompt, MOCK_TOKENIZER_FIXTURE)
lit_gpt/datamodules/sft_multiturn_dataset_base_test.py:59
Function
test_getitem_check_labels
(MOCK_TOKENIZER_FIXTURE)
lit_gpt/datamodules/sft_multiturn_dataset_base_test.py:125
Function
test_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
Function
test_metamath_e2e
()
lit_gpt/datamodules/meta_math_qa_e2e_test.py:13
Function
test_metamath_format_dataset
()
lit_gpt/datamodules/meta_math_qa_test.py:13
Method
test_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
Function
test_save_checkpoint
()
pretrain/main_save_checkpoint_test.py:6
Function
test_save_checkpoint
()
pretrain/main_train_test.py:6
Function
test_save_checkpoint_should_not_save_due_not_arrived_at_save_step
()
pretrain/main_save_checkpoint_test.py:30
Function
test_save_checkpoint_should_not_save_due_not_arrived_at_save_step
()
pretrain/main_train_test.py:30
Function
test_save_checkpoint_should_not_save_due_still_accumulating
()
pretrain/main_save_checkpoint_test.py:52
Function
test_save_checkpoint_should_not_save_due_still_accumulating
()
pretrain/main_train_test.py:52
Function
test_save_checkpoint_should_save_if_is_last_iteration
()
pretrain/main_save_checkpoint_test.py:74
Function
test_save_checkpoint_should_save_if_is_last_iteration
()
pretrain/main_train_test.py:74
Function
test_sft_collate_fn_padding
(pad_id, ignore_index)
lit_gpt/datamodules/base_test.py:108
Function
test_sft_collate_fn_truncation
()
lit_gpt/datamodules/base_test.py:127
Function
test_sft_dataset
(max_seq_length, ignore_index, mask_prompt, MOCK_TOKENIZER_FIXTURE)
lit_gpt/datamodules/base_test.py:14
Function
test_sft_dataset_hit_max_seq_length
( max_seq_length, ignore_index, mask_prompt, MOCK_TOKENIZER_FIXTURE )
lit_gpt/datamodules/base_test.py:52
Method
test_single_bos_eos
Test that the tokenizer correctly encodes a single string with bos and eos tokens.
prepare_dataset/prepare_dataset_test.py:16
Function
test_slim_orca_idk_e2e
()
lit_gpt/datamodules/slim_orca_idontknow_e2e_test.py:12
Function
test_slim_orca_idontknow_format_dataset
()
lit_gpt/datamodules/slim_orca_idontknow_test.py:10
Method
to_ggml
(self)
tokenizer/convert/convert.py:610
← previous
501–589 of 589, ranked by callers