Fix WikiText-103 download (dead metamind S3 URL -> working mirror + UA)#11
Open
kylefoxaustin wants to merge 1 commit into
Open
Fix WikiText-103 download (dead metamind S3 URL -> working mirror + UA)#11kylefoxaustin wants to merge 1 commit into
kylefoxaustin wants to merge 1 commit into
Conversation
get_wikitext_data downloaded from the metamind S3 bucket, which now returns HTTP 301 (gone), so --dataset wikitext fails with HTTPError 301. Point at the Smerity mirror (same zip layout) and send a browser User-Agent, since that host rejects the default Python urllib UA with 403.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
get_wikitext_datadownloads WikiText-103 fromhttps://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-103-raw-v1.zip, which now returns HTTP 301 (the metamind S3 bucket is gone). So--dataset wikitextfails:Fix
Point at the Smerity mirror (
https://wikitext.smerity.com/wikitext-103-raw-v1.zip), which serves the identical zip (wikitext-103-raw/wiki.{train,valid,test}.raw). That host rejects the default PythonurllibUser-Agent with 403, so the download is issued viaurllib.request.Requestwith a browser UA.Testing
--dataset wikitextdownloads, extracts, and tokenizes successfully on a fresh machine.