Skip to content

Commit

Permalink
Fix albert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko authored and seanmor5 committed Feb 20, 2023
1 parent 4ec563d commit bdbc53d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/bumblebee/text/albert.ex
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ defmodule Bumblebee.Text.Albert do
name = name |> join("groups") |> join(group_idx) |> join("blocks") |> join(inner_idx)

# TODO: wrap encoder block in a layer_drop combinator
{hidden_state, attention, _cross_attention, _block_cache, _position_bias,
_cross_attention_position_bias} =
{hidden_state, attention, _cross_attention, _block_cache, _position_bias} =
Layers.Transformer.block(hidden_state,
attention_mask: attention_mask,
num_attention_heads: spec.num_attention_heads,
Expand Down

0 comments on commit bdbc53d

Please sign in to comment.