Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Natively support encoding and decoding ndarrays in MDS #82

Merged
merged 7 commits into from
Jun 16, 2023
Merged

Conversation

knighton
Copy link
Contributor

@knighton knighton commented Nov 28, 2022

Description of changes:

Store NumPy NDArray.

The dtype and shape may be either static or dynamic.

Accordingly, there are four serialized formats:

  • Static dtype:
    • Static shape:
      [values: size * dtype]
    • Dynamic shape:
      [ndim | shape dtype: 1] [shape: ndim * shape dtype] [values: size * dtype]
  • Dynamic dtype:
    • Static shape:
      [dtype: 1] [values: size * dtype]
    • Dynamic shape:
      [dtype: 1] [ndim | shape dtype: 1] [shape: ndim * shape dtype] [values: size * dtype]

Issue #, if available:

STR-63

Merge Checklist:

Put an x without space in the boxes that apply. If you are unsure about any checklist, please don't hesitate to ask. We are here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

  • I have read the contributor guidelines
  • This is a documentation change or typo fix. If so, skip the rest of this checklist.
  • I certify that the changes I am introducing will be backward compatible, and I have discussed concerns about this, if any, with the MosaicML team.
  • I have updated any necessary documentation, including README and API docs (if appropriate).

Tests

  • I ran pre-commit on my change. (check out the pre-commit section of prerequisites)
  • I have added tests that prove my fix is effective or that my feature works (if appropriate).
  • I ran the tests locally to make sure it pass. (check out testing)
  • I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes.

@knighton knighton requested a review from karan6181 June 16, 2023 16:59
@knighton knighton changed the title Prototype ndarray MDS encoding Natively support encoding and decoding ndarrays in MDS Jun 16, 2023
@knighton knighton merged commit a2945df into main Jun 16, 2023
@knighton knighton deleted the james/ndarray branch June 16, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants