This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 801
ADD roberta_public.pt1 #1220
Comments
Can you try using
instead of RobertaEncoderJIT? |
facebook-github-bot
pushed a commit
that referenced
this issue
Apr 15, 2020
Summary: ## Motivation and Context 1) We want to read pre-train model files from a public http/https URL using PathManager 2) As fvcore is available in PyPI, we should add it as dependency, such that we can use HTTPURLHandler to read http/https URL #1220 ## How Has This Been Tested I'm able to download model file in Python Console. I'm not adding a unit test as it adds complexity to exclude the test for internal use case. >>> with PathManager.open("https://dl.fbaipublicfiles.com/pytext/models/roberta/roberta_public.pt1", "rb") as f: ... print(len(f.read())) ... roberta_public.pt1: 9%|█████▊ | 44.4M/497M [00:07<01:22, 5.47MB/s] roberta_public.pt1: 497MB [01:19, 6.25MB/s] 497003753 ## Types of changes - [ ] Docs change / refactoring / dependency upgrade - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist - [x] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [x] I have read the **CONTRIBUTING** document. - [x] I have completed my CLA (see **CONTRIBUTING**) - [ ] I have added tests to cover my changes. - [x] All new and existing tests passed. Pull Request resolved: #1317 Reviewed By: m3rlin45 Differential Revision: D21011330 Pulled By: hudeven fbshipit-source-id: 6a7696f460aaa26b2d6fc9d4ae431502efb23875
facebook-github-bot
pushed a commit
that referenced
this issue
Aug 4, 2020
Summary: Pull Request resolved: fairinternal/fairseq-py#1220 Test Plan: Please see examples/wav2vec/README.md for instructions Reviewed By: edunov Differential Revision: D22707565 Pulled By: alexeib fbshipit-source-id: 0c0d4ca7acc933ef7c0062f8dce550b94e414680
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to reproduce
I am trying to use the RoBERTaNERTask for NER task. So I ran
pytext gen-config RoBERTaNERTask
to generate default config file and twinkle it with personal settings. With thepretrained_encoder.load_path
, I tried to trace the Roberta model given in fairseq, and use it in the experiment, but it does not work.Could you please provide the traced Roberta model which default to 'manifold://pytext_training/tree/static/models/roberta_public.pt1', so we can use the RoBERTaNERTask . 3Q. ;-)
Observed Results
Expected Results
Relevant Code
The text was updated successfully, but these errors were encountered: