Skip to content

Update SVC tests for CCCL update#6569

Merged
rapids-bot[bot] merged 8 commits intorapidsai:branch-25.06from
viclafargue:fix-svc-test_svm_numeric_arraytype-test
Apr 25, 2025
Merged

Update SVC tests for CCCL update#6569
rapids-bot[bot] merged 8 commits intorapidsai:branch-25.06from
viclafargue:fix-svc-test_svm_numeric_arraytype-test

Conversation

@viclafargue
Copy link
Copy Markdown
Contributor

@viclafargue viclafargue commented Apr 22, 2025

This test was failing after the introduction of CCCL 2.8 in #6421. The cause was a non-deterministic minimum search in the SmoBlockSolve kernel with the cub::BlockReduce feature of the CCCL library. During the first iteration of the first launch of the kernel, the values being searched are set to -1.0 making the result of the search undefined/non-deterministic. The minimum search in this kernel produces a different result on this first iteration when libcuml is compiled with CCCL 2.8 rather than version 2.7 (probably because of underlying algorithms updates) making the training of SVC produce different results..

xfailed the pytests and commented out the gtests for now.

@viclafargue viclafargue requested a review from a team as a code owner April 22, 2025 17:04
@github-actions github-actions bot added the Cython / Python Cython or Python issue label Apr 22, 2025
@viclafargue viclafargue changed the title Update test_svm_numeric_arraytype test Update SVC tests Apr 22, 2025
@viclafargue viclafargue changed the title Update SVC tests Update SVC tests for CCCL update Apr 22, 2025
@viclafargue viclafargue force-pushed the fix-svc-test_svm_numeric_arraytype-test branch from 15ee169 to f4dc0ac Compare April 24, 2025 09:14
@github-actions github-actions bot removed the CMake label Apr 24, 2025
@divyegala divyegala removed the request for review from a team April 24, 2025 22:50
@divyegala divyegala added bug Something isn't working non-breaking Non-breaking change labels Apr 24, 2025
@divyegala divyegala removed the request for review from KyleFromNVIDIA April 24, 2025 22:53
@bdice
Copy link
Copy Markdown
Contributor

bdice commented Apr 25, 2025

I'm merging this to unblock CCCL updates to 2.8.x. Thanks @viclafargue and @divyegala for all your help! We can re-enable these tests after rapidsai/rapids-cmake#793 is merged.

@bdice
Copy link
Copy Markdown
Contributor

bdice commented Apr 25, 2025

/merge

@rapids-bot rapids-bot bot merged commit 2d2a853 into rapidsai:branch-25.06 Apr 25, 2025
76 of 77 checks passed
Ofek-Haim pushed a commit to Ofek-Haim/cuml that referenced this pull request May 13, 2025
This test was failing after the introduction of CCCL 2.8 in rapidsai#6421. The cause was [a non-deterministic minimum search in the SmoBlockSolve kernel](https://github.com/rapidsai/cuml/blob/b01e2d1d4cf358dbc0a435a663c546fa9cf3e3cb/cpp/src/svm/smoblocksolve.cuh#L206) with   the `cub::BlockReduce` feature of the CCCL library. During the first iteration of the first launch of the kernel, the values being searched are set to -1.0 making the result of the search undefined/non-deterministic. The minimum search in this kernel produces a different result on this first iteration when libcuml is compiled with CCCL 2.8 rather than version 2.7 (probably because of underlying algorithms updates) making the training of SVC produce different results..
 
Since the value of the `gamma` hyper-parameter does not seem to be critical to this pytest test, I modified its value to stabilize the test. Also updated the expected values in the SVC gtests.

Authors:
  - Victor Lafargue (https://github.com/viclafargue)
  - Divye Gala (https://github.com/divyegala)

Approvers:
  - Divye Gala (https://github.com/divyegala)

URL: rapidsai#6569
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CUDA/C++ Cython / Python Cython or Python issue non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants