Skip to content

Commit

Permalink
fix bias_add error
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyufeng committed Dec 17, 2023
1 parent 9f62181 commit 166babf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
needs: pylint-check
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ The table below represents the current support in the library for each of those
| BLIP2 | TODO ||
| BLOOM |||
| ChatGLM |||
| ChatGLM2 |||
| ChatGLM3 |||
| CLIP |||
| CodeGen |||
| ConvBERT | TODO ||
Expand Down
3 changes: 1 addition & 2 deletions mindnlp/transformers/models/mistral/modeling_mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def construct(self, x, seq_len=None):
# Copied from transformers.models.llama.modeling_llama.rotate_half
def rotate_half(x):
"""Rotates half the hidden dims of the input."""
x1 = x[..., : x.shape[-1] // 2]
x2 = x[..., x.shape[-1] // 2 :]
x1, x2 = x.chunk(2, -1)
return ops.cat((-x2, x1), axis=-1)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
MistralModel,
)


class MistralModelTester:
def __init__(
self,
Expand Down

0 comments on commit 166babf

Please sign in to comment.