Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M metaseq
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 95
    • Issues 95
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • metaseq
  • Issues
  • #19
Closed
Open
Issue created May 03, 2022 by Administrator@rootOwner

Missing dict.txt?

Created by: hunterlang

Edit by Admin: If you see issues with the gpt2 tokenizer, please refer to #132


Hi, I've gotten to the point of running metaseq-api-local but I'm having issues figuring out where to find the missing stuff in constants.py.

I gathered I need gpt2-merges.txt and gpt2-vocab.json, so I downloaded those from here. But based on the example ls output in constants.py, I also need a dict.txt, and when I run metaseq-api-local I get

File "/home/hlang/metaseq/metaseq/data/dictionary.py", line 235, in add_from_file
    with open(PathManager.get_local_path(f), "r", encoding="utf-8") as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/home/hlang/opt_models/dict.txt'

Here I have MODEL_SHARED_FOLDER='/home/hlang/opt_models/'.

Is there a place to download the dict.txt for each model?

Assignee
Assign to
Time tracking