Skip to content

Commit

Permalink
fixing export checkpoint (other thigns remain)
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCreator committed Aug 19, 2023
1 parent 1bb5806 commit 44b53ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions RWKV-v4neo/export_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,13 +631,13 @@ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
"output_file",
type=str,
default="",
required=False,
nargs="?",
help="path to the pytorch state_dict output file (e.g. path/model.pth), if blank defaults to 'rwkv_model.pth' within the checkpoint dir")
parser.add_argument(
"dtype",
type=str,
default="bf16",
required=False,
nargs="?",
help="dtype to save the model as, either 'bf16' or 'fp32'")

parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
Expand Down
4 changes: 2 additions & 2 deletions RWKV-v5/export_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,13 +631,13 @@ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
"output_file",
type=str,
default="",
required=False,
nargs="?",
help="path to the pytorch state_dict output file (e.g. path/model.pth), if blank defaults to 'rwkv_model.pth' within the checkpoint dir")
parser.add_argument(
"dtype",
type=str,
default="bf16",
required=False,
nargs="?",
help="dtype to save the model as, either 'bf16' or 'fp32'")

parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
Expand Down

0 comments on commit 44b53ab

Please sign in to comment.