-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Enable Model and Tokenizer to directly load paddlepaddle models from huggingface hub #3786
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9d49e5b
wip
sijunhe 369223b
wip
sijunhe e4b8cea
AutoModel and AutoTokenizer works
sijunhe 7df05f1
eady for review
sijunhe 60e749e
isort and yapf
sijunhe 833e25d
merge with develop
sijunhe 5569a32
fix style
sijunhe 1331138
Merge branch 'develop' into hf_hub_integration
wj-Mcat 4e85782
unit test pass
sijunhe 4417230
fix styles
sijunhe 34c1670
Merge remote-tracking branch 'origin/develop' into hf_hub_integration
sijunhe 3dea09e
Merge branch 'hf_hub_integration' of https://github.com/PaddlePaddle/…
sijunhe a2617a2
add todo
sijunhe d447e52
Merge branch 'develop' into hf_hub_integration
wj-Mcat 0b5606c
integration tests
sijunhe 625cdcd
Merge branch 'hf_hub_integration' of https://github.com/PaddlePaddle/…
sijunhe 19243fc
Merge branch 'develop' into hf_hub_integration
sijunhe 885acc6
Merge branch 'develop' into hf_hub_integration
sijunhe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个方法在我的
cli
PR里面有,后续此类方法可抽离成utils公共模块。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
由于此方法比较通用,我建议可放到
paddlenlp/transformers/utils.py
模块当中,这样其他模块也可以复用,你觉得呢?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外,目前为了和 hf 对齐,我们也是兼容:
architectures
这个字段的,所以在这个模块也是考虑此字段的信息的,特别是针对于未来新模型。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of the scope for this PR but added a TODO