MCPcopy Create free account

hub / github.com/Lightning-AI/lit-llama / types & classes

Types & classes39 in github.com/Lightning-AI/lit-llama

↓ 23 callersClassTokenizer
Tokenizer for LLaMA.
lit_llama/tokenizer.py:11
↓ 16 callersClasslazy_load
lit_llama/utils.py:332
↓ 15 callersClassPackedDataset
lit_llama/packed_dataset.py:39
↓ 10 callersClassEmptyInitOnDevice
lit_llama/utils.py:73
↓ 8 callersClassLLaMA
lit_llama/model.py:51
↓ 6 callersClassRMSNorm
Root Mean Square Layer Normalization. Derived from https://github.com/bzhangGo/rmsnorm/blob/master/rmsnorm_torch.py. BSD 3-Clause License: ht
lit_llama/model.py:257
↓ 6 callersClassSimpleDataset
tests/test_packed_dataset.py:137
↓ 4 callersClassCombinedDataset
lit_llama/packed_dataset.py:241
↓ 4 callersClassLengthGroupedSampler
r""" Sampler that samples indices in a way that groups together features of the dataset of roughly the same length while keeping a bit of rand
finetune/length_grouped_sampler.py:61
↓ 3 callersClassLLaMAConfig
lit_llama/model.py:26
↓ 2 callersClassGPTQQuantizer
lit_llama/quantization.py:426
↓ 2 callersClassLLaMA
The implementation is identical to `lit_llama.model.LLaMA` with the exception that the `Block` saves the layer index and passes it down to the att
lit_llama/adapter.py:222
↓ 2 callersClassLLaMAConfig
lit_llama/adapter.py:56
↓ 2 callersClassMLP
lit_llama/model.py:240
↓ 1 callersClassBlock
The implementation is identical to `lit_llama.model.Block` with the exception that we replace the attention layer where adaption is implemented.
lit_llama/adapter.py:193
↓ 1 callersClassBlock
lit_llama/model.py:148
↓ 1 callersClassCausalSelfAttention
A modification of `lit_llama.model.CausalSelfAttention` that adds the attention over the adaption prompt.
lit_llama/adapter.py:61
↓ 1 callersClassCausalSelfAttention
lit_llama/model.py:171
↓ 1 callersClassColBlockQuantizedLinear
lit_llama/quantization.py:340
↓ 1 callersClassCombinedDatasetIterator
lit_llama/packed_dataset.py:254
↓ 1 callersClassIncrementalPyTorchPickler
lit_llama/utils.py:403
↓ 1 callersClassInstructionDataset
finetune/adapter.py:236
↓ 1 callersClassInstructionDataset
finetune/full.py:220
↓ 1 callersClassInstructionDataset
finetune/lora.py:215
↓ 1 callersClassInstructionDataset
finetune/adapter_v2.py:239
↓ 1 callersClassLazyLoadingUnpickler
lit_llama/utils.py:302
↓ 1 callersClassLoRAConfig
lit_llama/lora.py:399
↓ 1 callersClassMergedLinear
lit_llama/lora.py:92
↓ 1 callersClassNotYetLoadedTensor
lit_llama/utils.py:168
↓ 1 callersClassPackedDatasetBuilder
lit_llama/packed_dataset.py:70
↓ 1 callersClassPackedDatasetIterator
lit_llama/packed_dataset.py:139
↓ 1 callersClassSavingProxyForStorage
lit_llama/utils.py:347
↓ 1 callersClassSavingProxyForTensor
lit_llama/utils.py:381
↓ 1 callersClassincremental_save
lit_llama/utils.py:460
ClassATensor
tests/test_utils.py:9
ClassCausalSelfAttention
lit_llama/lora.py:405
ClassFabricMock
tests/test_generate.py:66
ClassLinear8bitLt
Wraps `bnb.nn.Linear8bitLt` and enables instantiation directly on the device and re-quantizaton when loading the state dict. This sh
lit_llama/quantization.py:38
ClassLoRALayer
lit_llama/lora.py:59