Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue#85 #86

Merged
merged 124 commits into from
Sep 20, 2022
Merged

Fix issue#85 #86

merged 124 commits into from
Sep 20, 2022

Conversation

BAAI-OpenPlatform
Copy link
Collaborator

No description provided.

Anhforth and others added 30 commits June 29, 2022 13:44
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
* clean codes 
Co-authored-by: Zac Liu <[email protected]>
* fix bert tokenizer issue
* updated t5, opt and roberta tokenizers
* fixed doc 404 error
Signed-off-by: ZhaodongYan1 <[email protected]>
Signed-off-by: ZhaodongYan1 <[email protected]>
Signed-off-by: Anhforth <[email protected]>
* autoloader for opt
* opt-66b inference
* Update train.py
* Load data from example dir
* add readme of multi GPU inference

Co-authored-by: Zac Liu <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
Signed-off-by: Anhforth <[email protected]>
fix bugs in bert forward with different shape of attention mask
@@ -168,12 +168,12 @@ def predict_ner(self,
model.eval()
device = next(model.parameters()).device
tokenizer = self.tokenizer
tokens = tokenizer.tokenize(text)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check

return token_mapping

@staticmethod
def _is_control(ch):
"""控制类字符判断
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments

@@ -47,23 +47,67 @@ def from_pretrain(cls,
device="cpu",
**kwargs):
model_id = None

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comments
add parameters for load_local
add assert for config_path & checkpoint_path

@marscrazy marscrazy linked an issue Sep 20, 2022 that may be closed by this pull request
@marscrazy marscrazy merged commit 52672f8 into master Sep 20, 2022
@BAAI-OpenPlatform BAAI-OpenPlatform deleted the fix_issue branch November 16, 2022 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] error running quickstart/title_en.py
9 participants