Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
djsaunde committed Dec 27, 2024
1 parent 62f2092 commit 3c74e3e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
class LlamaDifferentialConfig(LlamaConfig):
"""Configuration class for Differential LLaMA model."""

model_type = "llama-differential"

def __init__(
self,
split_heads: bool = False,
Expand Down Expand Up @@ -213,6 +215,9 @@ def from_llama(
class LlamaDifferentialForCausalLM(LlamaForCausalLM):
"""LlamaForCausalLM with differential attention."""

config_class = LlamaDifferentialConfig
base_model_prefix = "llama_differential"

def __init__(self, config):
super().__init__(config)
self.model = LlamaDifferentialModel(config)
Expand Down

0 comments on commit 3c74e3e

Please sign in to comment.