Repository navigation
update kernels-community/aiter-rope version - #46810
Conversation
|
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. |
vasqu
left a comment
There was a problem hiding this comment.
LGTM, would just add a small test so we might catch this earlier
There was a problem hiding this comment.
Can we add a small test that requires rocm so we don't encounter this again? Maybe a kernels test with a small dummy model 🫡
There was a problem hiding this comment.
Happy to add it. Since the breakage was a signature mismatch (aiter-rope still carried the old apply_rotary_transformers(..., position_ids) after the kernel dropped it and added can_torch_compile=True), I'd go with a functional test gated behind require_rocm + @slow: load a tiny dummy model with use_kernels=True on ROCm and compare logits against the non-kernelized baseline. That actually dispatches through apply_rotary_transformers, so a stale signature/version blows up; exactly what slipped through here. A pure signature-comparison test would be more targeted but fragile (compiled kernel funcs often expose only (*args, **kwargs) to inspect.signature, so it can silently pass), and it still needs ROCm to load the kernel anyway; so the forward test is strictly more robust for the same hardware requirement. Sound good?
| @require_kernels | ||
| @require_rocm | ||
| @slow | ||
| class TestRocmRotaryKernel(TestCasePlus): |
There was a problem hiding this comment.
Imo we can add it under https://github.com/Abdennacer-Badaoui/transformers/blob/65d46ca47ef29547eb82783a9bc15ceebdb4636a/tests/kernels/test_kernels.py#L57
no need for a full new set here (just needs that on additional decorator then)
There was a problem hiding this comment.
ok let me move it there then
|
Perfect, merging 🫡 thanks a lot for pushing on the AMD side, super nice |
|
CI Dashboard: View test results in Grafana |
8fea7d3
* update aiter-rope version * add test * move test
As per title.
Related to : huggingface/kernels-community#974