Skip to content

Conversation

@yushangdi
Copy link
Contributor

Summary:
Fix #141316

Bump up schema minor version.

as title, add float8 support in serde schema

Test Plan:

buck2 run 'fbcode//mode/dev-nosan' fbcode//caffe2/test:test_export -- -r  test_serialize_float8

Differential Revision: D67307670

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 16, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/143343

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures

As of commit 8b140d0 with merge base a3688ea (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67307670

Copy link
Contributor

@yiming0416 yiming0416 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'll need to run scripts/export/update_schema.py to update the auto generated yaml, cpp, and thrift files as well

@desertfire
Copy link
Contributor

scripts/export/update_schema.py t

Let's add a comment in schema.py to share this knowledge.

Summary:

Fix pytorch#141316

Bump up schema minor version.

as title, add float8 support in serde schema


There's also a minor change to schema check line:

```
if kind == "struct" and "default" not in d:
```

I changed the order of the two conditions, because when kind == "enum", `d` could just be an int, and `"default" not in d:` would error out with `TypeError: argument of type 'int' is not iterable`.

Test Plan:
```
buck2 run 'fbcode//mode/dev-nosan' fbcode//caffe2/test:test_export -- -r  test_serialize_float8
buck2 run fbcode//caffe2:export_update_schema -- --prefix /data/users/shangdiy/fbsource/fbcode/caffe2/
```

Differential Revision: D67307670
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67307670

@yushangdi yushangdi requested a review from yiming0416 December 17, 2024 18:45
@yushangdi
Copy link
Contributor Author

@yiming0416 The schema is updated now!

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 17, 2024
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 2 jobs have failed, first few of them are: inductor-rocm / rocm6.2-py3.10-inductor / test (inductor, 1, 2, linux.rocm.gpu.2), inductor-rocm / rocm6.2-py3.10-inductor / test (inductor, 2, 2, linux.rocm.gpu.2)

Details for Dev Infra team Raised by workflow job

@huydhn
Copy link
Contributor

huydhn commented Dec 18, 2024

@pytorchbot merge -i

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 2 checks: inductor-rocm / rocm6.2-py3.10-inductor / test (inductor, 1, 2, linux.rocm.gpu.2), inductor-rocm / rocm6.2-py3.10-inductor / test (inductor, 2, 2, linux.rocm.gpu.2)

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AOTI minifier] _TORCH_TO_SERIALIZE_DTYPE does not have FP8 dtypes

6 participants