Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CStanKonrad/long_llama
/ types & classes
Types & classes
52 in github.com/CStanKonrad/long_llama
⨍
Functions
296
◇
Types & classes
52
↳
Endpoints
1
↓ 4 callers
Class
LongLlamaMemCache
Class with LongLlama's memory cache Args: keys (`torch.FloatTensor` of shape `(batch_size, num_heads, mem_length, embed_size_per_hea
src/longllama_utils.py:30
↓ 3 callers
Class
JaxRNG
A convenient stateful Jax RNG wrapper. Can be used to wrap RNG inside pure function.
fot_continued_pretraining/EasyLM/jax_utils.py:24
↓ 3 callers
Class
LongLlamaRMSNorm
src/modeling_longllama.py:103
↓ 3 callers
Class
RMSNorm
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:378
↓ 2 callers
Class
Carry
fot_continued_pretraining/EasyLM/bpt.py:156
↓ 2 callers
Class
FlaxLLaMAForCausalLMModule
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:1129
↓ 2 callers
Class
LongLlamaDecoderLayer
src/modeling_longllama.py:483
↓ 2 callers
Class
LongLlamaModel
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`LongLlamaDecoderLayer`] Args: config: LlamaCo
src/modeling_longllama.py:708
↓ 2 callers
Class
OptaxScheduledWeightDecayState
fot_continued_pretraining/EasyLM/optimizers.py:192
↓ 1 callers
Class
DataCollator
instruction_fine_tuning/data_processing.py:714
↓ 1 callers
Class
DatasetProcessingStats
instruction_fine_tuning/data_processing.py:593
↓ 1 callers
Class
DocAwareDataPipeline
Pipeline that assigns documents to the indexes of the batch. To be more precise, each document from token_source is assigned an index in the
fot_continued_pretraining/FoT/data_pipeline.py:89
↓ 1 callers
Class
FlaxLLaMABlockCollection
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:974
↓ 1 callers
Class
FlaxLLaMAModule
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:1053
↓ 1 callers
Class
HuggingfaceDataset
Huggingface dataset, where the dataset is loaded using the huggingface datasets.load_dataset() function.
fot_continued_pretraining/EasyLM/data.py:135
↓ 1 callers
Class
JsonDataset
JSON dataset, where each line of the data file contains a JSON dictionary with text fields.
fot_continued_pretraining/EasyLM/data.py:232
↓ 1 callers
Class
LLaMAConfig
r""" This is the configuration class to store the configuration of a [`~LLaMAModel`]. It is used to instantiate an LLaMA model according to th
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:169
↓ 1 callers
Class
LLaMATokenizer
Construct a LLaMA tokenizer. Based on byte-level Byte-Pair-Encoding. Args: vocab_file (`str`): Path to the vocabulary fil
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:1235
↓ 1 callers
Class
LongLlamaAttention
Multi-headed attention from 'Attention Is All You Need' paper with FoT modifications
src/modeling_longllama.py:203
↓ 1 callers
Class
LongLlamaMLP
src/modeling_longllama.py:185
↓ 1 callers
Class
LongLlamaMemConfig
Class for configuring memory caches for LongLlama model. Args: positionals (`boolean`) Whether to use positional embeddi
src/longllama_utils.py:8
↓ 1 callers
Class
LongLlamaModelOutputWithPast
Based on BaseModelOutputWithPast Args: last_hidden_state (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`)
src/modeling_longllama.py:53
↓ 1 callers
Class
LongLlamaRotaryEmbedding
src/modeling_longllama.py:121
↓ 1 callers
Class
MixedTuneDataset
instruction_fine_tuning/data_processing.py:644
↓ 1 callers
Class
SingleTuneDataset
For handling a single dataset. data_args should be separated using separate_data_args.
instruction_fine_tuning/data_processing.py:533
↓ 1 callers
Class
StreamingCheckpointer
Custom msgpack checkpointer that saves large train states by serializing and saving tensors one by one in a streaming fashion. Avoids running
fot_continued_pretraining/EasyLM/checkpoint.py:17
↓ 1 callers
Class
TextProcessor
Example processor that converts a dictionary of texts into tokens.
fot_continued_pretraining/EasyLM/data.py:52
Class
AdamWOptimizerFactory
AdamW optimizer with cosine schedule.
fot_continued_pretraining/EasyLM/optimizers.py:118
Class
DataArgs
instruction_fine_tuning/arguments.py:16
Class
DataPipeline
Base class for the data pipeline. token_source should generate tuples consisting of (tokens_from_doc, loss_mask, name_of_the_data_source)
fot_continued_pretraining/FoT/data_pipeline.py:19
Class
DatasetFactory
Datset builder class.
fot_continued_pretraining/EasyLM/data.py:20
Class
FlaxLLaMAAttention
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:453
Class
FlaxLLaMABlock
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:733
Class
FlaxLLaMAForCausalLM
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:1191
Class
FlaxLLaMAMLP
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:692
Class
FlaxLLaMAModel
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:1118
Class
FlaxLLaMAPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
fot_continued_pretraining/EasyLM/models/llama/llama_model.py:827
Class
FlaxTemperatureLogitsWarper
JIT traceable version of FlaxLogitsWarper that performs temperature scaling.
fot_continued_pretraining/EasyLM/jax_utils.py:83
Class
JaxDistributedConfig
Utility class for initializing JAX distributed.
fot_continued_pretraining/EasyLM/jax_utils.py:50
Class
KPackingDAPipeline
Pipeline that assigns multiple (k) indexes of the batch to a single doc. It achieves this by using DocAwareDataPipeline with k times smaller
fot_continued_pretraining/FoT/data_pipeline.py:200
Class
LinearPipeline
Pipeline that concatenates docs/examples sequentially to create the batch.
fot_continued_pretraining/FoT/data_pipeline.py:40
Class
LogAggregator
fot_continued_pretraining/EasyLM/logging_utils.py:25
Class
LongLlamaConfig
r""" This is the configuration class to store the configuration of a [`LongLlamaModel`]. It is used to instantiate an LongLLaMA model accordin
src/configuration_longllama.py:33
Class
LongLlamaForCausalLM
src/modeling_longllama.py:1156
Class
LongLlamaForSequenceClassification
src/modeling_longllama.py:1352
Class
LongLlamaPreTrainedModel
src/modeling_longllama.py:584
Class
ModelArgs
instruction_fine_tuning/arguments.py:6
Class
OptimizerFactory
Configurable optax optimizer factory.
fot_continued_pretraining/EasyLM/optimizers.py:20
Class
PalmOptimizerFactory
PaLM optimizer factory. This optimizer implements the optimizer described in the PaLM paper: https://arxiv.org/abs/2204.02311
fot_continued_pretraining/EasyLM/optimizers.py:60
Class
TextToToken
fot_continued_pretraining/FoT/data_pipeline.py:238
Class
TokenFilter
Filters out examples that have less than min_example_length tokens. Collects statistics about token_source (averaged over num_stat_samples).
fot_continued_pretraining/FoT/data_pipeline.py:249
Class
TokenizationArgs
instruction_fine_tuning/arguments.py:264