Skip to content

Backport kernels changes for FA4 support#383

Open
danieldk wants to merge 1 commit intorelease-0.12.3from
fa4-backport-0.12
Open

Backport kernels changes for FA4 support#383
danieldk wants to merge 1 commit intorelease-0.12.3from
fa4-backport-0.12

Conversation

@danieldk
Copy link
Member

No description provided.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Minor comments.

Comment on lines -39 to +47
module_name = python_package.replace("-", "_")
pkg_name = python_package.get("pkg")
# Assertion because this should not happen and is a bug.
assert (
pkg_name is not None
), f"Invalid dependency data for `{dependency}`: missing `pkg` field."
Copy link
Member

Choose a reason for hiding this comment

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

Yes, this is what confused me yesterday during debugging

Copy link
Member Author

Choose a reason for hiding this comment

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

But this one shouldn't occur, unless the JSON file is corrupt somehow.

"general": {
"einops": {
"nix": ["einops"],
"python": ["einops"]
Copy link
Member

Choose a reason for hiding this comment

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

Do we generate this manually? Would it be prudent to generate it automatically if it makes sense?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this is hand-written. I don't know an easy way to do it automatically, also not sure if it is needed, I don't think we should go beyond a handful of dependencies. Otherwise we are back to Python wheels.

Copy link
Collaborator

@drbh drbh left a comment

Choose a reason for hiding this comment

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

lgtm

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