Skip to content

Commit

Permalink
fix api
Browse files Browse the repository at this point in the history
Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
  • Loading branch information
yaoyu-33 committed Nov 14, 2024
1 parent 071f8bc commit e85a454
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def forward(
rotary_pos_emb=None,
rotary_pos_cos=None,
rotary_pos_sin=None,
attention_bias=None,
inference_params=None,
packed_seq_params=None,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def forward(
rotary_pos_emb=None,
rotary_pos_cos=None,
rotary_pos_sin=None,
attention_bias=None,
inference_params=None,
packed_seq_params=None,
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def forward(
rotary_pos_emb=None,
rotary_pos_cos=None,
rotary_pos_sin=None,
attention_bias=None,
inference_params=None,
packed_seq_params=None, # TODO: handle this
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def forward(
rotary_pos_emb: Tensor = None,
rotary_pos_cos: Tensor = None,
rotary_pos_sin: Tensor = None,
attention_bias: Tensor = None,
inference_params: InferenceParams = None,
packed_seq_params: PackedSeqParams = None,
):
Expand All @@ -93,6 +94,7 @@ def forward(
rotary_pos_emb,
rotary_pos_cos,
rotary_pos_sin,
attention_bias,
inference_params,
packed_seq_params,
)
Expand Down Expand Up @@ -232,6 +234,7 @@ def forward(
packed_seq_params=None,
rotary_pos_cos=None,
rotary_pos_sin=None,
attention_bias=None,
):
# hidden_states: [sq, b, h]

Expand Down
1 change: 1 addition & 0 deletions nemo/collections/vlm/mllama/model/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def forward(
rotary_pos_emb=None,
rotary_pos_cos=None,
rotary_pos_sin=None,
attention_bias=None,
inference_params=None,
packed_seq_params=None,
):
Expand Down

0 comments on commit e85a454

Please sign in to comment.