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

Forwarding broadcasted scalar metadata in Scalify tracer. #97

Merged

Conversation

balancap
Copy link
Contributor

@balancap balancap commented Jan 30, 2024

scalify interpreter/tracer is now properly tracking which tensors are
just broadcasted scalars, helping then to refine the conversion rule to
ScaledArray for these.

In practice: it means (finally!) proper full scale propagation in MNIST training,
resulting in stable training with dynamic rescale.

TODO: we still need to understand why scaled_mul requires ScaledArray promotion to
get the MNIST training example running. This requirement has been lifted in div/add/sub
thanks to this PR.

@balancap balancap force-pushed the forward-broadcasted-scalar-metadata-in-scalify-tracer branch 4 times, most recently from 48b4b98 to f77aa00 Compare January 30, 2024 14:48
`scalify` interpreter/tracer is now properly tracking which tensors are
just broadcasted scalars, helping then to refine the conversion rule to
ScaledArray for these.

In practice: it means (finally!) proper full scale propagation in MNIST training,
resulting in stable training with dynamic rescale.

TODO: we still need to understand why `scaled_mul` requires ScaledArray promotion to
get the MNIST training example running. This requirement has been lifted in `div/add/sub`
thanks to this PR.
@balancap balancap force-pushed the forward-broadcasted-scalar-metadata-in-scalify-tracer branch from f77aa00 to ccc4355 Compare January 30, 2024 15:38
@balancap balancap self-assigned this Jan 30, 2024
@balancap balancap added bug Something isn't working enhancement New feature or request labels Jan 30, 2024
@balancap balancap merged commit d50d13e into main Jan 30, 2024
2 checks passed
@balancap balancap deleted the forward-broadcasted-scalar-metadata-in-scalify-tracer branch January 30, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant