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
__init__
(self, filenames, n_chunks, block_size, seed, shuffle, wrap)
lit_gpt/packed_dataset.py:180
Method
__init__
(self, datasets, seed, weights=None)
lit_gpt/packed_dataset.py:284
Method
__init__
(self, datasets, seed, weights)
lit_gpt/packed_dataset.py:297
Method
__init__
( self, hidden_size, prenorm=False, p=0.0, eps=1e-5, residual_
lit_gpt/rmsnorm.py:766
Method
__init__
(self, size: int, dim: int = -1, eps: float = 1e-5)
lit_gpt/rmsnorm.py:807
Method
__init__
Store LoRA specific attributes in a class. Args: r: rank of the weight update matrices. To make sense of using LoRA the rank shou
lit_gpt/lora.py:63
Method
__init__
LoRA wrapper around linear class. This class has three weight matrices: 1. Pretrained weights are stored as `self.linear.weight`
lit_gpt/lora.py:89
Method
__init__
LoRA wrapper around linear class that is used for calculation of q, k and v matrices. This class has three weight matrices: 1. Pr
lit_gpt/lora.py:159
Method
__init__
(self, config: Config)
lit_gpt/lora.py:601
Method
__init__
Causal self-attention with calculating qkv matrices with a single matrix* and Low Ranking Adaptation for parameter-efficient fine-tuning.
lit_gpt/lora.py:613
Method
__init__
(self, config: Config)
lit_gpt/lora.py:664
Method
__init__
(self, config: Config)
lit_gpt/lora.py:698
Method
__init__
(self, in_features: int, out_features: int, **kwargs)
lit_gpt/adapter_v2.py:50
Method
__init__
(self, config: Config, block_idx: int)
lit_gpt/adapter_v2.py:117
Method
__init__
Causal self-attention with calculating qkv matrices with a single matrix* and Low Ranking Adaptation for parameter-efficient fine-tuning.
lit_gpt/adapter_v2.py:130
Method
__init__
(self, config: Config)
lit_gpt/adapter_v2.py:280
Method
__init__
(self, config: Config)
lit_gpt/adapter_v2.py:304
Method
__init__
(self, config: Config)
lit_gpt/model.py:246
Method
__init__
(self, config: Config)
lit_gpt/model.py:284
Method
__init__
(self, config: Config)
lit_gpt/model.py:406
Method
__init__
(self, config: Config)
lit_gpt/model.py:418
Method
__init__
(self, prompt_style='chatml', num_workers: Optional[int] = None)
lit_gpt/datamodules/llama_instruct.py:51
Method
__init__
(self, prompt_style='chatml', num_workers: Optional[int] = None)
lit_gpt/datamodules/ultrachat_200k.py:60
Method
__init__
(self, prompt_style='chatml', num_workers: Optional[int] = None)
lit_gpt/datamodules/wizardlm_evol_instruct_v2.py:58
Method
__init__
( self, data: List[List[MultiTurnDataRow]], tokenizer: Tokenizer, prompt_style
lit_gpt/datamodules/sft_multiturn_dataset_base.py:58
Method
__init__
(self, prompt_style='chatml', num_workers: Optional[int] = None)
lit_gpt/datamodules/capybara.py:60
Method
__init__
( self, prompt_style='chatml', data_files_path='data/slim_orca_idontknow/slim-orca-ido
lit_gpt/datamodules/slim_orca_idontknow.py:56
Method
__init__
(self, prompt_style='chatml', num_workers: Optional[int] = None)
lit_gpt/datamodules/slim_orca_dedup.py:56
Method
__init__
( self, data: List[Dict[str, str]], tokenizer: Tokenizer, prompt_style: Union[
lit_gpt/datamodules/sft_dataset_base.py:28
Method
__init__
(self, prompt_style='chatml', num_workers: Optional[int] = None)
lit_gpt/datamodules/deita.py:61
Method
__init__
(self, prompt_style='chatml', num_workers: Optional[int] = None)
lit_gpt/datamodules/meta_math_qa.py:52
Method
__init__
(self, level=logging.NOTSET)
prepare_dataset/preparer.py:45
Method
__init__
(self, seed: int = None)
dpo/adapters/nectar.py:28
Method
__init__
(self, score_distance: float = SCORE_DISTANCE)
dpo/adapters/ultrafeedback_binarized.py:33
Method
__init__
(self, fname_tokenizer: Path, fname_added_tokens: Path | None)
tokenizer/convert/convert.py:338
Method
__init__
(self, fname_tokenizer: Path, fname_added_tokens: Path | None)
tokenizer/convert/convert.py:396
Method
__init__
(self, ndarray: NDArray)
tokenizer/convert/convert.py:599
Method
__init__
(self, fp: IO[bytes], data_base_path: str, zip_file: zipfile.ZipFile)
tokenizer/convert/convert.py:781
Method
__init__
(self, fname_out: Path, endianess:gguf.GGUFEndian = gguf.GGUFEndian.LITTLE)
tokenizer/convert/convert.py:970
Method
__init__
(self, path: Path)
tokenizer/convert/convert.py:1290
Method
__init__
(self, ratio: float)
util/splitter.py:12
Method
__iter__
(self)
lit_gpt/utils.py:440
Method
__iter__
(self)
lit_gpt/packed_dataset.py:61
Method
__iter__
(self)
lit_gpt/packed_dataset.py:264
Method
__iter__
(self)
lit_gpt/packed_dataset.py:292
Method
__len__
(self)
lit_gpt/datamodules/sft_multiturn_dataset_base.py:80
Method
__len__
(self)
lit_gpt/datamodules/sft_dataset_base.py:50
Method
__next__
(self)
lit_gpt/utils.py:430
Method
__next__
(self)
lit_gpt/packed_dataset.py:267
Method
__next__
(self)
lit_gpt/packed_dataset.py:302
Method
__post_init__
(self)
lit_gpt/config_base.py:55
Method
__reduce_ex__
(self, protocol_version)
lit_gpt/utils_old.py:291
Method
__reduce_ex__
(self, protocol_version)
lit_gpt/utils.py:136
Method
__repr__
(self)
lit_gpt/utils_old.py:190
Method
__repr__
(self)
lit_gpt/datamodules/base.py:49
Method
__repr__
(self)
tokenizer/convert/convert.py:391
Method
__repr__
(self)
tokenizer/convert/convert.py:454
Method
__torch_function__
(cls, func, types, args=(), kwargs=None)
lit_gpt/utils_old.py:156
Function
_filter_rows
(row: UltraFeedbackRow)
dpo/adapters/ultrafeedback_binarized.py:133
Function
_format_row
(row: DistilabelCapybaraDPORow)
dpo/adapters/distilabel_capybara_dpo.py:71
Function
_format_row
(row: OpenHermesRow)
dpo/adapters/open_hermes_preferences.py:71
Function
_format_row
(row: UltraFeedbackRow)
dpo/adapters/ultrafeedback_binarized.py:95
Function
_format_rows
(row: NectarRow)
dpo/adapters/nectar.py:68
Method
_init_weights
Meant to be used with `gpt.apply(gpt._init_weights)`. Unused method left for completeness.
lit_gpt/adapter.py:118
Method
_init_weights
Meant to be used with `gpt.apply(gpt._init_weights)`. Unused method left for completeness.
lit_gpt/lora.py:585
Method
_init_weights
Meant to be used with `gpt.apply(gpt._init_weights)`. Unused method left for completeness.
lit_gpt/adapter_v2.py:96
Method
_init_weights
Meant to be used with `gpt.apply(gpt._init_weights)`.
lit_gpt/model.py:86
Method
_load_from_state_dict
For compatibility with older checkpoints.
lit_gpt/adapter.py:269
Method
_load_from_state_dict
For compatibility with base checkpoints.
lit_gpt/lora.py:649
Method
_load_from_state_dict
For compatibility with base checkpoints.
lit_gpt/lora.py:683
Method
_load_from_state_dict
For compatibility with base checkpoints.
lit_gpt/lora.py:725
Method
_load_from_state_dict
For compatibility with base checkpoints.
lit_gpt/adapter_v2.py:260
Method
_load_from_state_dict
For compatibility with base checkpoints.
lit_gpt/adapter_v2.py:289
Method
_load_from_state_dict
For compatibility with base checkpoints.
lit_gpt/adapter_v2.py:316
Function
_sft_collate_fn
( samples: List[SFTDatasetItem], max_seq_length: int, pad_id: int, ignore_index: int, eos_
lit_gpt/datamodules/base.py:90
Method
all_tokens
(self)
tokenizer/convert/convert.py:387
Method
all_tokens
(self)
tokenizer/convert/convert.py:450
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:21
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:37
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:71
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:95
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:104
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:123
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:128
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:142
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:161
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:178
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:187
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:222
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:236
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:246
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:251
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:256
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:261
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:270
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:285
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:290
Method
apply
(self, prompt: str, **kwargs: str)
lit_gpt/prompts.py:301
Method
astype
(self, data_type: DataType)
tokenizer/convert/convert.py:604
Method
astype
(self, data_type: DataType)
tokenizer/convert/convert.py:658
← previous
next →
301–400 of 589, ranked by callers