MCPcopy Create free account

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

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

↓ 1 callersFunctionmain
Main function to shuffle and save Parquet files.
prepare_dataset/shuffle.py:56
↓ 1 callersFunctionmain
( fabric: lightning.Fabric, devices: int, resume: Union[bool, Path], seed: int, config: Co
finetune/full.py:209
↓ 1 callersFunctionmain
(args_in: list[str] | None = None)
tokenizer/convert/convert.py:1377
↓ 1 callersFunctionmain
( fabric: lightning.Fabric, data_dir: Path, resume: Union[Path, Literal[False]], training_para
pretrain/main.py:335
↓ 1 callersFunctionmake_dataset
Make dataset and collator for Direct-Preference Optimization. Datasets are expected to have the following columns: {`prompt`, `chosen`, `reje
dpo/make_dataset.py:12
↓ 1 callersFunctionmaybe_unwrap_state_dict
( lit_weights: Dict[str, torch.Tensor], )
convert/convert_lit_to_hf.py:323
↓ 1 callersMethodmerge
Merges the LoRA weights into the full-rank weights (W = W + delta_W).
lit_gpt/lora.py:136
↓ 1 callersFunctionmerge_by
(dicts, key)
lit_gpt/utils_old.py:413
↓ 1 callersFunctionmerge_multifile_models
(models_plus: list[ModelPlus])
tokenizer/convert/convert.py:715
↓ 1 callersFunctionmerge_sharded
(models: list[LazyModel])
tokenizer/convert/convert.py:681
↓ 1 callersMethodmlp_class
(self)
lit_gpt/adapter_v2.py:29
↓ 1 callersFunctionmodel_name_to_prompt_style
(model_name: str)
lit_gpt/prompts.py:333
↓ 1 callersFunctionmultinomial_num_samples_1
(probs: torch.Tensor)
lit_gpt/generate/base.py:13
↓ 1 callersFunctionnth_multifile_path
Given any path belonging to a multi-file model (e.g. foo.bin.1), return the nth path in the model.
tokenizer/convert/convert.py:1221
↓ 1 callersFunctionparse_devices
(devices: Union[str, int])
lit_gpt/utils.py:497
↓ 1 callersMethodpart
(self, n_part: int)
tokenizer/convert/convert.py:587
↓ 1 callersFunctionpart_lazy
(lazy_tensor: LazyTensor, n_part: int)
tokenizer/convert/convert.py:752
↓ 1 callersMethodpermute_part
(self, n_part: int, n_head: int, n_head_kv: int)
tokenizer/convert/convert.py:585
↓ 1 callersFunctionpick_output_type
(model: LazyModel, output_type_str: str | None)
tokenizer/convert/convert.py:1159
↓ 1 callersMethodprepare
Prepare dataset Args: source_path: The path where your dataset is. train_eval_split: Split dataset into trai
prepare_dataset/preparer.py:112
↓ 1 callersMethodprepare_data
(self)
lit_gpt/datamodules/llama_instruct.py:67
↓ 1 callersMethodprepare_data
(self)
lit_gpt/datamodules/ultrachat_200k.py:76
↓ 1 callersMethodprepare_data
(self)
lit_gpt/datamodules/wizardlm_evol_instruct_v2.py:74
↓ 1 callersMethodprepare_data
(self)
lit_gpt/datamodules/capybara.py:76
↓ 1 callersMethodprepare_data
(self)
lit_gpt/datamodules/slim_orca_idontknow.py:75
↓ 1 callersMethodprepare_data
(self)
lit_gpt/datamodules/slim_orca_dedup.py:72
↓ 1 callersMethodprepare_data
(self)
lit_gpt/datamodules/meta_math_qa.py:68
↓ 1 callersFunctionprint_test_rows
(row: DistilabelCapybaraDPORow)
dpo/adapters/distilabel_capybara_dpo.py:91
↓ 1 callersFunctionprint_test_rows
(row: OpenHermesRow)
dpo/adapters/open_hermes_preferences.py:91
↓ 1 callersFunctionprint_test_rows
(row: UltraFeedbackRow)
dpo/adapters/ultrafeedback_binarized.py:124
↓ 1 callersFunctionqkv_split
( param: Union[torch.Tensor, NotYetLoadedTensor], config: Config )
convert/convert_lit_to_hf.py:256
↓ 1 callersMethodquantize
(self, arr: NDArray)
tokenizer/convert/convert.py:81
↓ 1 callersFunctionread_and_shuffle_all_files
Read all Parquet files in the directory, concatenate and shuffle them.
prepare_dataset/shuffle.py:16
↓ 1 callersFunctionread_file
Read a single Parquet file.
prepare_dataset/shuffle.py:11
↓ 1 callersMethodread_file
( self, filepath: Path, parquet_columns: Optional[List[str]] = None )
prepare_dataset/standard_parquet.py:21
↓ 1 callersFunctionremove_model_prefix
Handles the case where the LightningModule wrapper (FullPintsTransformer) prepends 'model.' to all keys in the state dict. Removes the prefix
lit_gpt/utils.py:540
↓ 1 callersMethodreset_parameters
(self)
lit_gpt/rmsnorm.py:786
↓ 1 callersMethodreset_parameters
(self)
lit_gpt/rmsnorm.py:814
↓ 1 callersMethodreset_parameters
(self)
lit_gpt/adapter_v2.py:257
↓ 1 callersMethodreset_parameters
(self)
lit_gpt/model.py:113
↓ 1 callersFunctionrms_norm
(x, weight, epsilon)
lit_gpt/rmsnorm.py:802
↓ 1 callersFunctionsample
( logits: torch.Tensor, temperature: float = 1.0, top_k: Optional[int] = None, top_p: float = 1.0 )
lit_gpt/generate/base.py:36
↓ 1 callersFunctionsample_top_p
(logits: torch.Tensor, top_p: float)
lit_gpt/generate/base.py:21
↓ 1 callersFunctionsave_config
(config: Config, checkpoint_dir: Path)
convert/convert_hf_to_lit.py:200
↓ 1 callersFunctionsave_to_parquet
Save the shuffled table to Parquet files in batches.
prepare_dataset/shuffle.py:41
↓ 1 callersMethodsentencepiece_tokens
(self)
tokenizer/convert/convert.py:421
↓ 1 callersMethodsetup
(self, stage: str = '')
lit_gpt/datamodules/slim_orca_idontknow.py:83
↓ 1 callersMethodsetup
(self, stage: str = '')
lit_gpt/datamodules/meta_math_qa.py:76
↓ 1 callersFunctionsetup_gpu_related_hyperparams
( global_batch_size: int, gpus: int, micro_batch_size: int, warmup_steps: int, max_step: i
pretrain/main.py:49
↓ 1 callersFunctionsetup_ignore_index
Ignore index should ideally be the index of the padding token. Most foundational models does not come with one. This function tries to get it
pretrain/main.py:158
↓ 1 callersFunctionsetup_paths
Set up and resolve paths for model data directory, output directory.
pretrain/main.py:83
↓ 1 callersFunctionsetup_resume_checkpoint
Set up and resolve paths checkpoint.
pretrain/main.py:109
↓ 1 callersFunctionsetup_strategy
Set up the strategy. In future, we can use this to set other types of strategies, such as deepspeed.
pretrain/main.py:134
↓ 1 callersFunctionshared_pointers
(tensors)
convert/bin_to_safetensors.py:46
↓ 1 callersMethodshould_split
(self)
util/splitter.py:15
↓ 1 callersFunctionstep_csv_logger
(*args: Any, cls: Type[T] = CSVLogger, **kwargs: Any)
lit_gpt/utils_old.py:410
↓ 1 callersMethodsubsample
Simple subsampling using pandas. This is deterministic, i.e. For same input, the selected files will always be the same.
prepare_dataset/preparer.py:276
↓ 1 callersFunctiontensor_split
( param: Union[torch.Tensor, NotYetLoadedTensor], config: Config )
convert/convert_lit_to_hf.py:276
↓ 1 callersMethodto_ggml
(self)
tokenizer/convert/convert.py:589
↓ 1 callersFunctiontrain
Trains the model
pretrain/main.py:439
↓ 1 callersMethodtype_for_tensor
(self, name: str, tensor: LazyTensor)
tokenizer/convert/convert.py:137
↓ 1 callersFunctionvalidate_args
(train: TrainArgs, eval: EvalArgs)
finetune/full.py:653
↓ 1 callersMethodvalidate_conversion_to
(self, data_type: DataType)
tokenizer/convert/convert.py:665
↓ 1 callersFunctionvend
returns last index of values in batch
convert/convert_lit_to_hf.py:287
↓ 1 callersFunctionvstart
returns start index of values in batch
convert/convert_lit_to_hf.py:283
↓ 1 callersMethodwrite_all
( fname_out: Path, ftype: GGMLFileType, params: Params, model: LazyModel, vocab: Vocab, svocab: gguf.S
tokenizer/convert/convert.py:1115
↓ 1 callersMethodwrite_tensor_info
(self)
tokenizer/convert/convert.py:1077
↓ 1 callersMethodwrite_vocab_only
( fname_out: Path, params: Params, vocab: Vocab, svocab: gguf.SpecialVocab, endianess: gguf.GG
tokenizer/convert/convert.py:1084
FunctionMOCK_TOKENIZER_FIXTURE
()
conftest.py:91
Method__call__
(self, instances: Sequence[Dict])
finetune/datacollators.py:34
Method__call__
(self, instances: Sequence[Dict])
finetune/datacollators.py:253
Method__del__
(self)
lit_gpt/packed_dataset.py:259
Method__enter__
(self)
lit_gpt/utils_old.py:225
Method__enter__
(self)
lit_gpt/utils_old.py:372
Method__enter__
(self)
lit_gpt/utils.py:235
Method__exit__
(self, exc_type, exc_val, exc_tb)
lit_gpt/utils_old.py:228
Method__exit__
(self, type, value, traceback)
lit_gpt/utils_old.py:403
Method__exit__
(self, type, value, traceback)
lit_gpt/utils.py:266
Method__getattr__
(self, name)
lit_gpt/utils_old.py:163
Method__getitem__
(self, idx: int)
lit_gpt/datamodules/sft_multiturn_dataset_base.py:83
Method__getitem__
(self, idx: int)
lit_gpt/datamodules/sft_dataset_base.py:53
Method__init__
(self, *args, **kwargs)
lit_gpt/utils_old.py:46
Method__init__
(self, metatensor, archiveinfo, storageinfo, rebuild_args)
lit_gpt/utils_old.py:95
Method__init__
(self, file, zipfile_context)
lit_gpt/utils_old.py:195
Method__init__
(self, obj, saver, protocol_version=5)
lit_gpt/utils_old.py:268
Method__init__
(self, tensor, saver, protocol_version=5)
lit_gpt/utils_old.py:296
Method__init__
(self, saver, *args, **kwargs)
lit_gpt/utils_old.py:310
Method__init__
(self, name)
lit_gpt/utils_old.py:366
Method__init__
(self, fabric: Fabric, *args: Any, **kwargs: Any)
lit_gpt/speed_monitor.py:345
Method__init__
( self, length_fn: Callable[[Any], int], batch_size: int, **kwargs: Any )
lit_gpt/speed_monitor.py:358
Method__init__
(self, config: Config, block_idx: int)
lit_gpt/adapter.py:129
Method__init__
(self, config: Config, block_idx: int)
lit_gpt/adapter.py:171
Method__init__
(self, obj, saver, protocol_version=5)
lit_gpt/utils.py:107
Method__init__
(self, tensor, saver, protocol_version=5)
lit_gpt/utils.py:141
Method__init__
(self, saver, *args, **kwargs)
lit_gpt/utils.py:173
Method__init__
(self, name)
lit_gpt/utils.py:229
Method__init__
( self, ignore_index=-100, reduction='mean', label_smoothing=0.0, inpl
lit_gpt/fused_cross_entropy.py:141
Method__init__
(self, checkpoint_dir: Path)
lit_gpt/tokenizer.py:13
Method__init__
( self, filenames, n_chunks, block_size, seed=12345, shuffle=T
lit_gpt/packed_dataset.py:41
Method__init__
( self, outdir: StrPath, prefix: str, chunk_size: int, pad_token: int,
lit_gpt/packed_dataset.py:104
← previousnext →201–300 of 589, ranked by callers