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

Added NLP: Basic text classification with JAX & Flax #95

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

vfdev-5
Copy link
Contributor

@vfdev-5 vfdev-5 commented Nov 13, 2024

cc @melissawm to review

@jakevdp
Copy link
Collaborator

jakevdp commented Nov 13, 2024

The build is timing out; it looks like you'll have to skip execution for this.

@vfdev-5 vfdev-5 force-pushed the nlp-basic-text-classif branch from 2306623 to b23e4e3 Compare November 13, 2024 19:57
@jakevdp
Copy link
Collaborator

jakevdp commented Nov 13, 2024

Looks really great – thanks for this! I'll wait on a review from @melissawm before merging.

@jakevdp jakevdp self-assigned this Nov 14, 2024
Copy link
Contributor

@melissawm melissawm left a comment

Choose a reason for hiding this comment

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

Left a couple of optional suggestions, some to improve the text flow and some to include more insight into results/prints of the results. Cheers!

docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
print(f"- Accuracy: {eval_metrics_history['test_accuracy'][-1]:0.4f}")
```

Let us now start the training
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a suggestion:

Suggested change
Let us now start the training
Now, we can start the training. Note that this step can take quite a while to run, depending on the number of epochs you are using.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, this is not exactly true, in this case, whole training takes 2 minutes. The model and the dataset are rather small.

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting! For me it took something like 40 mins in colab.

docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Show resolved Hide resolved
@vfdev-5 vfdev-5 force-pushed the nlp-basic-text-classif branch from b23e4e3 to d6f9a40 Compare November 18, 2024 17:15
Copy link
Collaborator

@jakevdp jakevdp left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
docs/JAX_basic_text_classification.md Outdated Show resolved Hide resolved
@vfdev-5 vfdev-5 force-pushed the nlp-basic-text-classif branch 3 times, most recently from 61431a7 to 0549978 Compare November 19, 2024 10:35
@vfdev-5 vfdev-5 force-pushed the nlp-basic-text-classif branch from 0549978 to 659a2fb Compare November 19, 2024 10:37
Copy link
Contributor

@trallard trallard left a comment

Choose a reason for hiding this comment

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

This seems all ready to merge after a couple of rounds of reviews cc/ @jakevdp 🚀

@jakevdp jakevdp merged commit 2699352 into jax-ml:main Nov 19, 2024
6 checks passed
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.

4 participants