Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

script xlm tensorizer #1118

Closed

Conversation

chenyangyu1988
Copy link
Contributor

Summary: script xlm tensorizer

Differential Revision: D18363742

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Nov 8, 2019
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18363742

chenyangyu1988 added a commit to chenyangyu1988/pytext that referenced this pull request Nov 9, 2019
Summary:
Pull Request resolved: facebookresearch#1118

script xlm tensorizer

Differential Revision: D18363742

fbshipit-source-id: e691eca9e24ae12aa5d42b67339371cd3755dabb
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18363742

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18363742

chenyangyu1988 added a commit to chenyangyu1988/pytext that referenced this pull request Nov 9, 2019
Summary:
Pull Request resolved: facebookresearch#1118

script xlm tensorizer

Differential Revision: D18363742

fbshipit-source-id: f61bbd749f5e86a2bf4ed49cb7d7ef104002872a
chenyangyu1988 added a commit to chenyangyu1988/pytext that referenced this pull request Nov 12, 2019
Summary:
Pull Request resolved: facebookresearch#1118

script xlm tensorizer

Differential Revision: D18363742

fbshipit-source-id: 3039ca6dd10460b8b573f0492b76e36afc06d741
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18363742

chenyangyu1988 added a commit to chenyangyu1988/pytext that referenced this pull request Nov 12, 2019
Summary:
Pull Request resolved: facebookresearch#1118

script xlm tensorizer

Differential Revision: D18363742

fbshipit-source-id: b4ec5977bd9ef4158c4808b3a73b20836d48b31c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18363742

Summary:
The core part of this diff is to determine use ScriptTextModule or ScriptTokenModule in RoBERTa.torchscriptify().
Given concrete example: GPT2BPE need use ScriptTextModule and SentencePiece need to use ScriptTokenModule

This diff have few changes
1) Introduce ScriptInputType to determine to use ScriptTextModule or ScriptTokenModule
2) ScriptTokenizer have API: input_type() to determine which ScriptInputType to support
3) Add torchscriptify() API for SentencePieceTokenizer

Differential Revision: D18487692

fbshipit-source-id: a0a454e748e77ecbf057f6d4d636baf7eaadb37a
Summary:
Pull Request resolved: facebookresearch#1118

script xlm tensorizer

Differential Revision: D18363742

fbshipit-source-id: cda0e402c9d191cc26fcc72e5c6ea651bef8d5fc
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18363742

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7546f36.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants