Skip to content
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

Docstring and fix generate grountruth #2377

Open
wants to merge 2 commits into
base: branch-24.10
Choose a base branch
from

Conversation

Kh4L
Copy link

@Kh4L Kh4L commented Jul 11, 2024

Fix docstring

@Kh4L Kh4L requested a review from a team as a code owner July 11, 2024 07:48
Copy link

copy-pr-bot bot commented Jul 11, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

python -m raft_ann_bench.generate_groundtruth --dataset /dataset/base.\
fbin --output=groundtruth_dir --queries=/dataset/query.public.10K.fbin
python -m raft_ann_bench.generate_groundtruth --output=groundtruth_dir \
--queries=/dataset/query.public.10K.fbin /dataset/base.fbin
Copy link
Member

Choose a reason for hiding this comment

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

What has changed here? I think we would like to keep the --dataset argument

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the change is correct, in the first version of this script dataset was a keyword argument, but it was later changed to a positional argument. Here the docstring is corrected to give dataset as a positional arg.

Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

Thanks @Kh4L for this PR! In the PR description you write that "sqeuclidean is not supported in raft-ann-bench". I think that is not correct, I have tested in 24.06 and 24.08, and it is supported in both cases. Therefore I would recommend to keep the default metric "sqeuclidean". The rest of the docstring change look good to me.

python -m raft_ann_bench.generate_groundtruth --dataset /dataset/base.\
fbin --output=groundtruth_dir --queries=/dataset/query.public.10K.fbin
python -m raft_ann_bench.generate_groundtruth --output=groundtruth_dir \
--queries=/dataset/query.public.10K.fbin /dataset/base.fbin
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the change is correct, in the first version of this script dataset was a keyword argument, but it was later changed to a positional argument. Here the docstring is corrected to give dataset as a positional arg.

@tfeher tfeher added documentation Improvements or additions to documentation non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Jul 15, 2024
@Kh4L Kh4L requested review from tfeher and divyegala July 25, 2024 02:30
@tfeher tfeher changed the base branch from branch-24.08 to branch-24.10 August 7, 2024 15:42
Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

Thanks Serge, LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants