Skip to content

follow up on old build failures #370

@drbh

Description

@drbh

reference to huggingface/kernel-builder#283

hi @LoserCheems just opening this issue to respond to the issue opened in the deprecated kernel-builder repo.

thanks for checking out the project. I see that you had some issues building a kernel and I would like to suggest retrying with the latest repo/changes.

example flake that may work in your case

{
  description = "Flake for xyz kernels";

  inputs = {
    self.submodules = true;
    kernel-builder.url = "github:huggingface/kernels";
  };

  outputs =
    {
      self,
      kernel-builder,
    }:
    kernel-builder.lib.genKernelFlakeOutputs {
      inherit self;
      path = ./.;
    };
}

also we've added a new way to add python dependencies via the build.toml file

[general]
name = "some-kernel"
license = "MIT"
backends = ["cuda"]
version = 1
python-depends = ["einops"]
...

also I see you're working on porting the flash-dmattn. If you continue to run into build issue and have a repo/code to share, we'd be happy to take a look and share advice to get it building!

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions