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

Hgf bert #9

Merged
merged 22 commits into from
Jul 3, 2020
Merged

Hgf bert #9

merged 22 commits into from
Jul 3, 2020

Conversation

chengchingwen
Copy link
Owner

No description provided.

Copy link

@findmyway findmyway left a comment

Choose a reason for hiding this comment

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

Such a great job!

src/huggingface/download.jl Show resolved Hide resolved
src/huggingface/configs/config.jl Show resolved Hide resolved
@@ -0,0 +1,30 @@
using JSON

Choose a reason for hiding this comment

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

JSON3 has great support for de/serializing AbstractDict, see: https://quinnj.github.io/JSON3.jl/stable/#StructTypes.DictType-1 . (No need to change here, just a gentle reminder.😃 )

Copy link
Owner Author

Choose a reason for hiding this comment

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

What's the different between using JSON and JSON3 ?

Choose a reason for hiding this comment

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

Since that AbstractHGFConfig is already a subtype of AbstractDict, I guess with JSON3, https://github.com/chengchingwen/Transformers.jl/pull/9/files/dac873007f6289b7e0f74f6a70ac22f3905c43ff#diff-56f47ab93bc96fbe6afa99bce9821a9aR11-R28 this part can be slightly simplified.

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.

None yet

2 participants