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

[nnx] simplify readme #3707

Merged
merged 2 commits into from
Feb 26, 2024
Merged

[nnx] simplify readme #3707

merged 2 commits into from
Feb 26, 2024

Conversation

cgarciae
Copy link
Collaborator

What does this PR do?

Simplifies NNX's readme.

@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.10%. Comparing base (736d133) to head (1fa7577).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3707      +/-   ##
==========================================
- Coverage   59.10%   59.10%   -0.01%     
==========================================
  Files         103      103              
  Lines       12426    12454      +28     
==========================================
+ Hits         7345     7361      +16     
- Misses       5081     5093      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +145 to +146
* [Using TrainState](https://github.com/google/flax/tree/main/flax/experimental/nnx/examples/toy_examples/03_train_state.py): Shows how to train a simple model using the functional API with the help of `TrainState`.
* [Training a VAE](https://github.com/google/flax/tree/main/flax/experimental/nnx/examples/toy_examples/05_vae.py): Shows how to train a VAE on the binarized MNIST dataset, uses the functional API, `TrainState`, and shows how to use capture intermediate values to retrieve `kl_loss`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should 05_vae.py be renamed to 04_vae.py (as well as decrementing all subsequent toy example numbers)? The number 04 seems to be missing from the toy_examples.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah there is a bit of an inconsistency here. I don't think its super important but we sould fix it at some point :)

Co-authored-by: Marcus Chiam <[email protected]>
@copybara-service copybara-service bot merged commit 9541acb into main Feb 26, 2024
21 checks passed
@copybara-service copybara-service bot deleted the nnx-simplify-readme branch February 26, 2024 23:00
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.

3 participants