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
  • Merge requests
  • !573

Add backslash to the script in projects/OPT/download_opt175b.md

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/awkrail/fix_script_opt175b into main Dec 28, 2022
  • Overview 2
  • Commits 2
  • Pipelines 0
  • Changes 2

Created by: awkrail

Patch Description I got an email from Meta to download OPT175B weights, and tried to run it by following projects/OPT/download_opt175b.md. When resharding the shards, I got an error as follows:

ERROR: The function received no value for the required argument: input_glob_pattern
Usage: reshard_fsdp.py INPUT_GLOB_PATTERN OUTPUT_SHARD_NAME <flags>
  optional flags:        --num_output_shards | --unflatten_weights |
  --skip_optimizer_state

The main reason of this error is lacking the backslash in the scripts. I added it to the scripts as follows:

for j in {0..7}; do
    python -m metaseq.scripts.reshard_fsdp \ # <- I added this backslash
        --input-glob-pattern "/groups/gcb50205/actx/opt_175b/checkpoint_last-model_part-$j-shard*.pt" \
        --output-shard-name "/groups/gcb50205/actx/opt_175b_parallel/checkpoints/reshard-model_part-$j.pt" \
        --num-output-shards 1 --skip-optimizer-state True --unflatten-weights True
done

Testing steps After adding it to the scripts, the error was solved and I could run the script.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/awkrail/fix_script_opt175b