Skip to content

Commit

Permalink
more swiglu
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcp committed Dec 5, 2024
1 parent b706689 commit 74cf6b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ferritin-esm/src/esm/layers/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct UnifiedTransformerBlock {
attn: Option<MultiHeadAttention>,
use_geom_attn: bool,
geom_attn: Option<GeometricReasoningOriginalImpl>,
ffn: nn::Sequential,
ffn: SwiGLU,
scaling_factor: f64,
}

Expand Down Expand Up @@ -170,16 +170,16 @@ impl UnifiedTransformerBlock {
};

let ffn = match ffn_type {
Ffn_Type::GLU => unimplemented!(),
Ffn_Type::SWIGLU => Swiglu::load(vb, config),
Ffn_Type::SWIGLU => SwiGLU::load(vb, config),
_ => unimplemented!(), // Ffn_Type::GLU => unimplemented!(),
};

Self {
use_plain_attn,
attn,
use_geom_attn,
geom_attn,
ffn,
ffn: ffn.unwrap(),
scaling_factor: residue_scaling_factor,
}
}
Expand Down

0 comments on commit 74cf6b3

Please sign in to comment.