Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lightning-AI/lit-llama
/ types & classes
Types & classes
39 in github.com/Lightning-AI/lit-llama
⨍
Functions
276
◇
Types & classes
39
↳
Endpoints
1
↓ 23 callers
Class
Tokenizer
Tokenizer for LLaMA.
lit_llama/tokenizer.py:11
↓ 16 callers
Class
lazy_load
lit_llama/utils.py:332
↓ 15 callers
Class
PackedDataset
lit_llama/packed_dataset.py:39
↓ 10 callers
Class
EmptyInitOnDevice
lit_llama/utils.py:73
↓ 8 callers
Class
LLaMA
lit_llama/model.py:51
↓ 6 callers
Class
RMSNorm
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 callers
Class
SimpleDataset
tests/test_packed_dataset.py:137
↓ 4 callers
Class
CombinedDataset
lit_llama/packed_dataset.py:241
↓ 4 callers
Class
LengthGroupedSampler
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 callers
Class
LLaMAConfig
lit_llama/model.py:26
↓ 2 callers
Class
GPTQQuantizer
lit_llama/quantization.py:426
↓ 2 callers
Class
LLaMA
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 callers
Class
LLaMAConfig
lit_llama/adapter.py:56
↓ 2 callers
Class
MLP
lit_llama/model.py:240
↓ 1 callers
Class
Block
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 callers
Class
Block
lit_llama/model.py:148
↓ 1 callers
Class
CausalSelfAttention
A modification of `lit_llama.model.CausalSelfAttention` that adds the attention over the adaption prompt.
lit_llama/adapter.py:61
↓ 1 callers
Class
CausalSelfAttention
lit_llama/model.py:171
↓ 1 callers
Class
ColBlockQuantizedLinear
lit_llama/quantization.py:340
↓ 1 callers
Class
CombinedDatasetIterator
lit_llama/packed_dataset.py:254
↓ 1 callers
Class
IncrementalPyTorchPickler
lit_llama/utils.py:403
↓ 1 callers
Class
InstructionDataset
finetune/adapter.py:236
↓ 1 callers
Class
InstructionDataset
finetune/full.py:220
↓ 1 callers
Class
InstructionDataset
finetune/lora.py:215
↓ 1 callers
Class
InstructionDataset
finetune/adapter_v2.py:239
↓ 1 callers
Class
LazyLoadingUnpickler
lit_llama/utils.py:302
↓ 1 callers
Class
LoRAConfig
lit_llama/lora.py:399
↓ 1 callers
Class
MergedLinear
lit_llama/lora.py:92
↓ 1 callers
Class
NotYetLoadedTensor
lit_llama/utils.py:168
↓ 1 callers
Class
PackedDatasetBuilder
lit_llama/packed_dataset.py:70
↓ 1 callers
Class
PackedDatasetIterator
lit_llama/packed_dataset.py:139
↓ 1 callers
Class
SavingProxyForStorage
lit_llama/utils.py:347
↓ 1 callers
Class
SavingProxyForTensor
lit_llama/utils.py:381
↓ 1 callers
Class
incremental_save
lit_llama/utils.py:460
Class
ATensor
tests/test_utils.py:9
Class
CausalSelfAttention
lit_llama/lora.py:405
Class
FabricMock
tests/test_generate.py:66
Class
Linear8bitLt
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
Class
LoRALayer
lit_llama/lora.py:59