Skip to content

Implement model.dat format versioning #30

Description

@certik
  • Add a version into model.dat
  • Increment the version with every change in the format (in both the Python writer and Fortran reader)
  • In the reader, check the version, if it does not agree, refuse to load it.

This will allow to keep changing the format without breaking things. If an older version of fastGPT is used on a newer file, it will say "Incompatible model.dat version, use the create_model.py script to generate a compatible version."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions