-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add recipe keras-nlp
#21616
Closed
Closed
Add recipe keras-nlp
#21616
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,42 @@ | ||||||||||||||
{% set name = "keras-nlp" %} | ||||||||||||||
{% set version = "0.3.1" %} | ||||||||||||||
|
||||||||||||||
package: | ||||||||||||||
name: {{ name|lower }} | ||||||||||||||
version: {{ version }} | ||||||||||||||
|
||||||||||||||
source: | ||||||||||||||
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/keras-nlp-{{ version }}.tar.gz | ||||||||||||||
sha256: 44723deed5c271078cae48ca91cf8e8f6c9ffe85e01a52aee17d02366de959a5 | ||||||||||||||
|
||||||||||||||
build: | ||||||||||||||
noarch: python | ||||||||||||||
script: {{ PYTHON }} -m pip install . -vv | ||||||||||||||
number: 0 | ||||||||||||||
|
||||||||||||||
requirements: | ||||||||||||||
host: | ||||||||||||||
- python >=3.7 | ||||||||||||||
- pip | ||||||||||||||
run: | ||||||||||||||
- python >=3.7 | ||||||||||||||
- absl-py | ||||||||||||||
- numpy | ||||||||||||||
- packaging | ||||||||||||||
- tensorflow >=2.0 | ||||||||||||||
|
||||||||||||||
test: | ||||||||||||||
imports: | ||||||||||||||
- examples | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
To check the deps |
||||||||||||||
|
||||||||||||||
about: | ||||||||||||||
home: https://keras.io/examples/nlp/ | ||||||||||||||
summary: Industry-strength Natural Language Processing extensions for Keras. | ||||||||||||||
license: Apache-2.0 | ||||||||||||||
license_file: LICENSE | ||||||||||||||
dev_url: https://github.com/keras-team/keras-nlp | ||||||||||||||
doc_url: https://keras.io/examples/nlp/ | ||||||||||||||
|
||||||||||||||
extra: | ||||||||||||||
recipe-maintainers: | ||||||||||||||
- Anselmoo |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream seems to require more: https://github.com/keras-team/keras-nlp/blob/3e9edab1032d1525541e4f57c8e6e31309265465/setup.py#L45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BastianZim, thx for the feedback. I am aware of this dependency, but it looks like that recent PRs went through.
tensorflow-text
from PyPI #17613tensorflow-text
tensorflow-feedstock#294Will it be possible to install it via
pip
? Otherwise, a feedstock oftensorflow-text
would make sense for NLP.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, we require all dependencies to be available on conda-forge and listed here so we would have to wait for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that ... in case of avoiding
tensorflow-text
viabazel
would that ok like for catboost-feedstock?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it needs to be properly installed as a dependency.
You can also add it to conda-forge yourself, if you need the package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So first setup open a new feedstock for
tensorflow-text
and with package from scratch not likecatboost
?For the new version of
AutoKeras
they addkeras-nlp
as dependency, while it depends ontensorflow-text
conda-forge/autokeras-feedstock#1 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also: #19578 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, basically submit another PR for tensorflow-text or have it as an output in tensorflow. Not sure what the build process is there.
I'm not familiar with catboost but we always build from source. These exceptions are only made in very rare cases, where it is impossible to build it differently.