falcon-7b-landmarks / code /llama_landmark_config.py
Andreas Köpf
add falcon landmark code (incomplete)
0d0ff25
raw
history blame contribute delete
439 Bytes
from transformers.models.llama.configuration_llama import LlamaConfig
class LlamaLandmarkConfig(LlamaConfig):
model_type = "llama_with_landmark"
def __init__(
self,
mem_id=32001,
mem_freq=50,
train_context_length=512,
**kwargs,
):
self.mem_id = mem_id
self.mem_freq = mem_freq
self.train_context_length = train_context_length
super().__init__(**kwargs)