repo_id
stringlengths
21
96
file_path
stringlengths
31
155
content
stringlengths
1
92.9M
__index_level_0__
int64
0
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/events/README_AutoScaling.md
# Sample Function The following is a sample Lambda function that receives an Auto Scaling event as an input and logs the EC2 instance ID to CloudWatch Logs. (Note that anything written to stdout or stderr will be logged as CloudWatch Logs events.) ```go import ( "context" "fmt" "github.com/aws/aws-lambda-go/events" "github.com/aws/aws-lambda-go/lambda" ) func handler(ctx context.Context, autoScalingEvent events.AutoScalingEvent) { fmt.Printf("Instance-Id available in event is %s \n", autoScalingEvent.Detail["EC2InstanceId"]) } func main() { lambda.Start(handler) } ```
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/errors.go
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved package lambda import ( "reflect" "github.com/aws/aws-lambda-go/lambda/messages" ) func getErrorType(err interface{}) string { errorType := reflect.TypeOf(err) if errorType.Kind() == reflect.Ptr { return errorType.Elem().Name() } return errorType.Name() } func lambdaErrorResponse(invokeError error) *messages.InvokeResponse_Error { if ive, ok := invokeError.(messages.InvokeResponse_Error); ok { return &ive } var errorName string if errorType := reflect.TypeOf(invokeError); errorType.Kind() == reflect.Ptr { errorName = errorType.Elem().Name() } else { errorName = errorType.Name() } return &messages.InvokeResponse_Error{ Message: invokeError.Error(), Type: errorName, } } func lambdaPanicResponse(err interface{}) *messages.InvokeResponse_Error { if ive, ok := err.(messages.InvokeResponse_Error); ok { return &ive } panicInfo := getPanicInfo(err) return &messages.InvokeResponse_Error{ Message: panicInfo.Message, Type: getErrorType(err), StackTrace: panicInfo.StackTrace, ShouldExit: true, } }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/panic.go
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. package lambda import ( "fmt" "runtime" "strings" "github.com/aws/aws-lambda-go/lambda/messages" ) type panicInfo struct { Message string // Value passed to panic call, converted to string StackTrace []*messages.InvokeResponse_Error_StackFrame // Stack trace of the panic } func getPanicInfo(value interface{}) panicInfo { message := getPanicMessage(value) stack := getPanicStack() return panicInfo{Message: message, StackTrace: stack} } func getPanicMessage(value interface{}) string { return fmt.Sprintf("%v", value) } var defaultErrorFrameCount = 32 func getPanicStack() []*messages.InvokeResponse_Error_StackFrame { s := make([]uintptr, defaultErrorFrameCount) const framesToHide = 3 // this (getPanicStack) -> getPanicInfo -> handler defer func n := runtime.Callers(framesToHide, s) if n == 0 { return make([]*messages.InvokeResponse_Error_StackFrame, 0) } s = s[:n] return convertStack(s) } func convertStack(s []uintptr) []*messages.InvokeResponse_Error_StackFrame { var converted []*messages.InvokeResponse_Error_StackFrame frames := runtime.CallersFrames(s) for { frame, more := frames.Next() formattedFrame := formatFrame(frame) converted = append(converted, formattedFrame) if !more { break } } return converted } func formatFrame(inputFrame runtime.Frame) *messages.InvokeResponse_Error_StackFrame { path := inputFrame.File line := int32(inputFrame.Line) label := inputFrame.Function // Strip GOPATH from path by counting the number of seperators in label & path // // For example given this: // GOPATH = /home/user // path = /home/user/src/pkg/sub/file.go // label = pkg/sub.Type.Method // // We want to set: // path = pkg/sub/file.go // label = Type.Method i := len(path) for n, g := 0, strings.Count(label, "/")+2; n < g; n++ { i = strings.LastIndex(path[:i], "/") if i == -1 { // Something went wrong and path has less seperators than we expected // Abort and leave i as -1 to counteract the +1 below break } } path = path[i+1:] // Trim the initial / // Strip the path from the function name as it's already in the path label = label[strings.LastIndex(label, "/")+1:] // Likewise strip the package name label = label[strings.Index(label, ".")+1:] return &messages.InvokeResponse_Error_StackFrame{ Path: path, Line: line, Label: label, } }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/README.md
# Overview [![Go Reference](https://pkg.go.dev/badge/github.com/aws/aws-lambda-go/lambda.svg)](https://pkg.go.dev/github.com/aws/aws-lambda-go/lambda)
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/entry.go
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. package lambda import ( "context" "errors" "log" "os" ) // Start takes a handler and talks to an internal Lambda endpoint to pass requests to the handler. If the // handler does not match one of the supported types an appropriate error message will be returned to the caller. // Start blocks, and does not return after being called. // // Rules: // // * handler must be a function // * handler may take between 0 and two arguments. // * if there are two arguments, the first argument must satisfy the "context.Context" interface. // * handler may return between 0 and two arguments. // * if there are two return values, the second argument must be an error. // * if there is one return value it must be an error. // // Valid function signatures: // // func () // func () error // func (TIn) error // func () (TOut, error) // func (TIn) (TOut, error) // func (context.Context) error // func (context.Context, TIn) error // func (context.Context) (TOut, error) // func (context.Context, TIn) (TOut, error) // // Where "TIn" and "TOut" are types compatible with the "encoding/json" standard library. // See https://golang.org/pkg/encoding/json/#Unmarshal for how deserialization behaves func Start(handler interface{}) { StartWithContext(context.Background(), handler) } // StartWithContext is the same as Start except sets the base context for the function. func StartWithContext(ctx context.Context, handler interface{}) { StartHandlerWithContext(ctx, NewHandler(handler)) } // StartHandler takes in a Handler wrapper interface which can be implemented either by a // custom function or a struct. // // Handler implementation requires a single "Invoke()" function: // // func Invoke(context.Context, []byte) ([]byte, error) func StartHandler(handler Handler) { StartHandlerWithContext(context.Background(), handler) } type startFunction struct { env string f func(ctx context.Context, envValue string, handler Handler) error } var ( // This allows users to save a little bit of coldstart time in the download, by the dependencies brought in for RPC support. // The tradeoff is dropping compatibility with the go1.x runtime, functions must be "Custom Runtime" instead. // To drop the rpc dependencies, compile with `-tags lambda.norpc` rpcStartFunction = &startFunction{ env: "_LAMBDA_SERVER_PORT", f: func(c context.Context, p string, h Handler) error { return errors.New("_LAMBDA_SERVER_PORT was present but the function was compiled without RPC support") }, } runtimeAPIStartFunction = &startFunction{ env: "AWS_LAMBDA_RUNTIME_API", f: startRuntimeAPILoop, } startFunctions = []*startFunction{rpcStartFunction, runtimeAPIStartFunction} // This allows end to end testing of the Start functions, by tests overwriting this function to keep the program alive logFatalf = log.Fatalf ) // StartHandlerWithContext is the same as StartHandler except sets the base context for the function. // // Handler implementation requires a single "Invoke()" function: // // func Invoke(context.Context, []byte) ([]byte, error) func StartHandlerWithContext(ctx context.Context, handler Handler) { var keys []string for _, start := range startFunctions { config := os.Getenv(start.env) if config != "" { // in normal operation, the start function never returns // if it does, exit!, this triggers a restart of the lambda function err := start.f(ctx, config, handler) logFatalf("%v", err) } keys = append(keys, start.env) } logFatalf("expected AWS Lambda environment variables %s are not defined", keys) }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/invoke_loop.go
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved package lambda import ( "context" "encoding/json" "fmt" "strconv" "time" "github.com/aws/aws-lambda-go/lambda/messages" ) const ( msPerS = int64(time.Second / time.Millisecond) nsPerMS = int64(time.Millisecond / time.Nanosecond) ) // startRuntimeAPILoop will return an error if handling a particular invoke resulted in a non-recoverable error func startRuntimeAPILoop(ctx context.Context, api string, handler Handler) error { client := newRuntimeAPIClient(api) function := NewFunction(handler).withContext(ctx) for { invoke, err := client.next() if err != nil { return err } err = handleInvoke(invoke, function) if err != nil { return err } } } // handleInvoke returns an error if the function panics, or some other non-recoverable error occurred func handleInvoke(invoke *invoke, function *Function) error { functionRequest, err := convertInvokeRequest(invoke) if err != nil { return fmt.Errorf("unexpected error occurred when parsing the invoke: %v", err) } functionResponse := &messages.InvokeResponse{} if err := function.Invoke(functionRequest, functionResponse); err != nil { return fmt.Errorf("unexpected error occurred when invoking the handler: %v", err) } if functionResponse.Error != nil { payload := safeMarshal(functionResponse.Error) if err := invoke.failure(payload, contentTypeJSON); err != nil { return fmt.Errorf("unexpected error occurred when sending the function error to the API: %v", err) } if functionResponse.Error.ShouldExit { return fmt.Errorf("calling the handler function resulted in a panic, the process should exit") } return nil } if err := invoke.success(functionResponse.Payload, contentTypeJSON); err != nil { return fmt.Errorf("unexpected error occurred when sending the function functionResponse to the API: %v", err) } return nil } // convertInvokeRequest converts an invoke from the Runtime API, and unpacks it to be compatible with the shape of a `lambda.Function` InvokeRequest. func convertInvokeRequest(invoke *invoke) (*messages.InvokeRequest, error) { deadlineEpochMS, err := strconv.ParseInt(invoke.headers.Get(headerDeadlineMS), 10, 64) if err != nil { return nil, fmt.Errorf("failed to parse contents of header: %s", headerDeadlineMS) } deadlineS := deadlineEpochMS / msPerS deadlineNS := (deadlineEpochMS % msPerS) * nsPerMS res := &messages.InvokeRequest{ InvokedFunctionArn: invoke.headers.Get(headerInvokedFunctionARN), XAmznTraceId: invoke.headers.Get(headerTraceID), RequestId: invoke.id, Deadline: messages.InvokeRequest_Timestamp{ Seconds: deadlineS, Nanos: deadlineNS, }, Payload: invoke.payload, } clientContextJSON := invoke.headers.Get(headerClientContext) if clientContextJSON != "" { res.ClientContext = []byte(clientContextJSON) } cognitoIdentityJSON := invoke.headers.Get(headerCognitoIdentity) if cognitoIdentityJSON != "" { if err := json.Unmarshal([]byte(invoke.headers.Get(headerCognitoIdentity)), res); err != nil { return nil, fmt.Errorf("failed to unmarshal cognito identity json: %v", err) } } return res, nil } func safeMarshal(v interface{}) []byte { payload, err := json.Marshal(v) if err != nil { v := &messages.InvokeResponse_Error{ Type: "Runtime.SerializationError", Message: err.Error(), } payload, err := json.Marshal(v) if err != nil { panic(err) // never reach } return payload } return payload }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/handler.go
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. package lambda import ( "context" "encoding/json" "fmt" "reflect" "github.com/aws/aws-lambda-go/lambda/handlertrace" ) type Handler interface { Invoke(ctx context.Context, payload []byte) ([]byte, error) } // lambdaHandler is the generic function type type lambdaHandler func(context.Context, []byte) (interface{}, error) // Invoke calls the handler, and serializes the response. // If the underlying handler returned an error, or an error occurs during serialization, error is returned. func (handler lambdaHandler) Invoke(ctx context.Context, payload []byte) ([]byte, error) { response, err := handler(ctx, payload) if err != nil { return nil, err } responseBytes, err := json.Marshal(response) if err != nil { return nil, err } return responseBytes, nil } func errorHandler(e error) lambdaHandler { return func(ctx context.Context, event []byte) (interface{}, error) { return nil, e } } func validateArguments(handler reflect.Type) (bool, error) { handlerTakesContext := false if handler.NumIn() > 2 { return false, fmt.Errorf("handlers may not take more than two arguments, but handler takes %d", handler.NumIn()) } else if handler.NumIn() > 0 { contextType := reflect.TypeOf((*context.Context)(nil)).Elem() argumentType := handler.In(0) handlerTakesContext = argumentType.Implements(contextType) if handler.NumIn() > 1 && !handlerTakesContext { return false, fmt.Errorf("handler takes two arguments, but the first is not Context. got %s", argumentType.Kind()) } } return handlerTakesContext, nil } func validateReturns(handler reflect.Type) error { errorType := reflect.TypeOf((*error)(nil)).Elem() switch n := handler.NumOut(); { case n > 2: return fmt.Errorf("handler may not return more than two values") case n > 1: if !handler.Out(1).Implements(errorType) { return fmt.Errorf("handler returns two values, but the second does not implement error") } case n == 1: if !handler.Out(0).Implements(errorType) { return fmt.Errorf("handler returns a single value, but it does not implement error") } } return nil } // NewHandler creates a base lambda handler from the given handler function. The // returned Handler performs JSON serialization and deserialization, and // delegates to the input handler function. The handler function parameter must // satisfy the rules documented by Start. If handlerFunc is not a valid // handler, the returned Handler simply reports the validation error. func NewHandler(handlerFunc interface{}) Handler { if handlerFunc == nil { return errorHandler(fmt.Errorf("handler is nil")) } handler := reflect.ValueOf(handlerFunc) handlerType := reflect.TypeOf(handlerFunc) if handlerType.Kind() != reflect.Func { return errorHandler(fmt.Errorf("handler kind %s is not %s", handlerType.Kind(), reflect.Func)) } takesContext, err := validateArguments(handlerType) if err != nil { return errorHandler(err) } if err := validateReturns(handlerType); err != nil { return errorHandler(err) } return lambdaHandler(func(ctx context.Context, payload []byte) (interface{}, error) { trace := handlertrace.FromContext(ctx) // construct arguments var args []reflect.Value if takesContext { args = append(args, reflect.ValueOf(ctx)) } if (handlerType.NumIn() == 1 && !takesContext) || handlerType.NumIn() == 2 { eventType := handlerType.In(handlerType.NumIn() - 1) event := reflect.New(eventType) if err := json.Unmarshal(payload, event.Interface()); err != nil { return nil, err } if nil != trace.RequestEvent { trace.RequestEvent(ctx, event.Elem().Interface()) } args = append(args, event.Elem()) } response := handler.Call(args) // convert return values into (interface{}, error) var err error if len(response) > 0 { if errVal, ok := response[len(response)-1].Interface().(error); ok { err = errVal } } var val interface{} if len(response) > 1 { val = response[0].Interface() if nil != trace.ResponseEvent { trace.ResponseEvent(ctx, val) } } return val, err }) }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/rpc.go
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved // +build !lambda.norpc package lambda import ( "context" "errors" "log" "net" "net/rpc" ) func init() { // Register `startFunctionRPC` to be run if the _LAMBDA_SERVER_PORT environment variable is set. // This happens when the runtime for the function is configured as `go1.x`. // The value of the environment variable will be passed as the first argument to `startFunctionRPC`. rpcStartFunction.f = startFunctionRPC } func startFunctionRPC(ctx context.Context, port string, handler Handler) error { lis, err := net.Listen("tcp", "localhost:"+port) if err != nil { log.Fatal(err) } err = rpc.Register(NewFunction(handler).withContext(ctx)) if err != nil { log.Fatal("failed to register handler function") } rpc.Accept(lis) return errors.New("accept should not have returned") }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/runtime_api_client.go
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved // // Runtime API documentation: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html package lambda import ( "bytes" "fmt" "io" "io/ioutil" "log" "net/http" "runtime" ) const ( headerAWSRequestID = "Lambda-Runtime-Aws-Request-Id" headerDeadlineMS = "Lambda-Runtime-Deadline-Ms" headerTraceID = "Lambda-Runtime-Trace-Id" headerCognitoIdentity = "Lambda-Runtime-Cognito-Identity" headerClientContext = "Lambda-Runtime-Client-Context" headerInvokedFunctionARN = "Lambda-Runtime-Invoked-Function-Arn" contentTypeJSON = "application/json" apiVersion = "2018-06-01" ) type runtimeAPIClient struct { baseURL string userAgent string httpClient *http.Client buffer *bytes.Buffer } func newRuntimeAPIClient(address string) *runtimeAPIClient { client := &http.Client{ Timeout: 0, // connections to the runtime API are never expected to time out } endpoint := "http://" + address + "/" + apiVersion + "/runtime/invocation/" userAgent := "aws-lambda-go/" + runtime.Version() return &runtimeAPIClient{endpoint, userAgent, client, bytes.NewBuffer(nil)} } type invoke struct { id string payload []byte headers http.Header client *runtimeAPIClient } // success sends the response payload for an in-progress invocation. // Notes: // * An invoke is not complete until next() is called again! func (i *invoke) success(payload []byte, contentType string) error { url := i.client.baseURL + i.id + "/response" return i.client.post(url, payload, contentType) } // failure sends the payload to the Runtime API. This marks the function's invoke as a failure. // Notes: // * The execution of the function process continues, and is billed, until next() is called again! // * A Lambda Function continues to be re-used for future invokes even after a failure. // If the error is fatal (panic, unrecoverable state), exit the process immediately after calling failure() func (i *invoke) failure(payload []byte, contentType string) error { url := i.client.baseURL + i.id + "/error" return i.client.post(url, payload, contentType) } // next connects to the Runtime API and waits for a new invoke Request to be available. // Note: After a call to Done() or Error() has been made, a call to next() will complete the in-flight invoke. func (c *runtimeAPIClient) next() (*invoke, error) { url := c.baseURL + "next" req, err := http.NewRequest(http.MethodGet, url, nil) if err != nil { return nil, fmt.Errorf("failed to construct GET request to %s: %v", url, err) } req.Header.Set("User-Agent", c.userAgent) resp, err := c.httpClient.Do(req) if err != nil { return nil, fmt.Errorf("failed to get the next invoke: %v", err) } defer func() { if err := resp.Body.Close(); err != nil { log.Printf("runtime API client failed to close %s response body: %v", url, err) } }() if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("failed to GET %s: got unexpected status code: %d", url, resp.StatusCode) } c.buffer.Reset() _, err = c.buffer.ReadFrom(resp.Body) if err != nil { return nil, fmt.Errorf("failed to read the invoke payload: %v", err) } return &invoke{ id: resp.Header.Get(headerAWSRequestID), payload: c.buffer.Bytes(), headers: resp.Header, client: c, }, nil } func (c *runtimeAPIClient) post(url string, payload []byte, contentType string) error { req, err := http.NewRequest(http.MethodPost, url, bytes.NewBuffer(payload)) if err != nil { return fmt.Errorf("failed to construct POST request to %s: %v", url, err) } req.Header.Set("User-Agent", c.userAgent) req.Header.Set("Content-Type", contentType) resp, err := c.httpClient.Do(req) if err != nil { return fmt.Errorf("failed to POST to %s: %v", url, err) } defer func() { if err := resp.Body.Close(); err != nil { log.Printf("runtime API client failed to close %s response body: %v", url, err) } }() if resp.StatusCode != http.StatusAccepted { return fmt.Errorf("failed to POST to %s: got unexpected status code: %d", url, resp.StatusCode) } _, err = io.Copy(ioutil.Discard, resp.Body) if err != nil { return fmt.Errorf("something went wrong reading the POST response from %s: %v", url, err) } return nil }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/function.go
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. package lambda import ( "context" "encoding/json" "os" "time" "github.com/aws/aws-lambda-go/lambda/messages" "github.com/aws/aws-lambda-go/lambdacontext" ) // Function struct which wrap the Handler type Function struct { handler Handler ctx context.Context } // NewFunction which creates a Function with a given Handler func NewFunction(handler Handler) *Function { return &Function{handler: handler} } // Ping method which given a PingRequest and a PingResponse parses the PingResponse func (fn *Function) Ping(req *messages.PingRequest, response *messages.PingResponse) error { *response = messages.PingResponse{} return nil } // Invoke method try to perform a command given an InvokeRequest and an InvokeResponse func (fn *Function) Invoke(req *messages.InvokeRequest, response *messages.InvokeResponse) error { defer func() { if err := recover(); err != nil { response.Error = lambdaPanicResponse(err) } }() deadline := time.Unix(req.Deadline.Seconds, req.Deadline.Nanos).UTC() invokeContext, cancel := context.WithDeadline(fn.context(), deadline) defer cancel() lc := &lambdacontext.LambdaContext{ AwsRequestID: req.RequestId, InvokedFunctionArn: req.InvokedFunctionArn, Identity: lambdacontext.CognitoIdentity{ CognitoIdentityID: req.CognitoIdentityId, CognitoIdentityPoolID: req.CognitoIdentityPoolId, }, } if len(req.ClientContext) > 0 { if err := json.Unmarshal(req.ClientContext, &lc.ClientContext); err != nil { response.Error = lambdaErrorResponse(err) return nil } } invokeContext = lambdacontext.NewContext(invokeContext, lc) // nolint:staticcheck invokeContext = context.WithValue(invokeContext, "x-amzn-trace-id", req.XAmznTraceId) os.Setenv("_X_AMZN_TRACE_ID", req.XAmznTraceId) payload, err := fn.handler.Invoke(invokeContext, req.Payload) if err != nil { response.Error = lambdaErrorResponse(err) return nil } response.Payload = payload return nil } // context returns the base context used for the fn. func (fn *Function) context() context.Context { if fn.ctx == nil { return context.Background() } return fn.ctx } // withContext returns a shallow copy of Function with its context changed // to the provided ctx. If the provided ctx is non-nil a Background context is set. func (fn *Function) withContext(ctx context.Context) *Function { if ctx == nil { ctx = context.Background() } fn2 := new(Function) *fn2 = *fn fn2.ctx = ctx return fn2 }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/handlertrace/trace.go
// Package handlertrace allows middleware authors using lambda.NewHandler to // instrument request and response events. package handlertrace import ( "context" ) // HandlerTrace allows handlers which wrap the return value of lambda.NewHandler // to access to the request and response events. type HandlerTrace struct { RequestEvent func(context.Context, interface{}) ResponseEvent func(context.Context, interface{}) } func callbackCompose(f1, f2 func(context.Context, interface{})) func(context.Context, interface{}) { return func(ctx context.Context, event interface{}) { if nil != f1 { f1(ctx, event) } if nil != f2 { f2(ctx, event) } } } type handlerTraceKey struct{} // NewContext adds callbacks to the provided context which allows handlers which // wrap the return value of lambda.NewHandler to access to the request and // response events. func NewContext(ctx context.Context, trace HandlerTrace) context.Context { existing := FromContext(ctx) return context.WithValue(ctx, handlerTraceKey{}, HandlerTrace{ RequestEvent: callbackCompose(existing.RequestEvent, trace.RequestEvent), ResponseEvent: callbackCompose(existing.ResponseEvent, trace.ResponseEvent), }) } // FromContext returns the HandlerTrace associated with the provided context. func FromContext(ctx context.Context) HandlerTrace { trace, _ := ctx.Value(handlerTraceKey{}).(HandlerTrace) return trace }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/messages/messages.go
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. package messages import "fmt" type PingRequest struct { } type PingResponse struct { } //nolint:stylecheck type InvokeRequest_Timestamp struct { Seconds int64 Nanos int64 } //nolint:stylecheck type InvokeRequest struct { Payload []byte RequestId string //nolint:stylecheck XAmznTraceId string Deadline InvokeRequest_Timestamp InvokedFunctionArn string CognitoIdentityId string //nolint:stylecheck CognitoIdentityPoolId string //nolint:stylecheck ClientContext []byte } type InvokeResponse struct { Payload []byte Error *InvokeResponse_Error } //nolint:stylecheck type InvokeResponse_Error struct { Message string `json:"errorMessage"` Type string `json:"errorType"` StackTrace []*InvokeResponse_Error_StackFrame `json:"stackTrace,omitempty"` ShouldExit bool `json:"-"` } func (e InvokeResponse_Error) Error() string { return fmt.Sprintf("%#v", e) } //nolint:stylecheck type InvokeResponse_Error_StackFrame struct { Path string `json:"path"` Line int32 `json:"line"` Label string `json:"label"` }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambda/messages/README.md
# Overview [![Go Reference](https://pkg.go.dev/badge/github.com/aws/aws-lambda-go/lambda/messages.svg)](https://pkg.go.dev/github.com/aws/aws-lambda-go/lambda/messages)
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambdacontext/context.go
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Helpers for accessing context information from an Invoke request. Context information // is stored in a https://golang.org/pkg/context/#Context. The functions FromContext and NewContext // are used to retrieving and inserting an instance of LambdaContext. package lambdacontext import ( "context" "os" "strconv" ) // LogGroupName is the name of the log group that contains the log streams of the current Lambda Function var LogGroupName string // LogStreamName name of the log stream that the current Lambda Function's logs will be sent to var LogStreamName string // FunctionName the name of the current Lambda Function var FunctionName string // MemoryLimitInMB is the configured memory limit for the current instance of the Lambda Function var MemoryLimitInMB int // FunctionVersion is the published version of the current instance of the Lambda Function var FunctionVersion string func init() { LogGroupName = os.Getenv("AWS_LAMBDA_LOG_GROUP_NAME") LogStreamName = os.Getenv("AWS_LAMBDA_LOG_STREAM_NAME") FunctionName = os.Getenv("AWS_LAMBDA_FUNCTION_NAME") if limit, err := strconv.Atoi(os.Getenv("AWS_LAMBDA_FUNCTION_MEMORY_SIZE")); err != nil { MemoryLimitInMB = 0 } else { MemoryLimitInMB = limit } FunctionVersion = os.Getenv("AWS_LAMBDA_FUNCTION_VERSION") } // ClientApplication is metadata about the calling application. type ClientApplication struct { InstallationID string `json:"installation_id"` AppTitle string `json:"app_title"` AppVersionCode string `json:"app_version_code"` AppPackageName string `json:"app_package_name"` } // ClientContext is information about the client application passed by the calling application. type ClientContext struct { Client ClientApplication Env map[string]string `json:"env"` Custom map[string]string `json:"custom"` } // CognitoIdentity is the cognito identity used by the calling application. type CognitoIdentity struct { CognitoIdentityID string CognitoIdentityPoolID string } // LambdaContext is the set of metadata that is passed for every Invoke. type LambdaContext struct { AwsRequestID string //nolint: stylecheck InvokedFunctionArn string //nolint: stylecheck Identity CognitoIdentity ClientContext ClientContext } // An unexported type to be used as the key for types in this package. // This prevents collisions with keys defined in other packages. type key struct{} // The key for a LambdaContext in Contexts. // Users of this package must use lambdacontext.NewContext and lambdacontext.FromContext // instead of using this key directly. var contextKey = &key{} // NewContext returns a new Context that carries value lc. func NewContext(parent context.Context, lc *LambdaContext) context.Context { return context.WithValue(parent, contextKey, lc) } // FromContext returns the LambdaContext value stored in ctx, if any. func FromContext(ctx context.Context) (*LambdaContext, bool) { lc, ok := ctx.Value(contextKey).(*LambdaContext) return lc, ok }
0
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go
rapidsai_public_repos/rvc/vendor/github.com/aws/aws-lambda-go/lambdacontext/README.md
# Overview [![Go Reference](https://pkg.go.dev/badge/github.com/aws/aws-lambda-go/lambdacontext.svg)](https://pkg.go.dev/github.com/aws/aws-lambda-go/lambdacontext)
0
rapidsai_public_repos/rvc/vendor/github.com/pmezard
rapidsai_public_repos/rvc/vendor/github.com/pmezard/go-difflib/LICENSE
Copyright (c) 2013, Patrick Mezard All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0
rapidsai_public_repos/rvc/vendor/github.com/pmezard/go-difflib
rapidsai_public_repos/rvc/vendor/github.com/pmezard/go-difflib/difflib/difflib.go
// Package difflib is a partial port of Python difflib module. // // It provides tools to compare sequences of strings and generate textual diffs. // // The following class and functions have been ported: // // - SequenceMatcher // // - unified_diff // // - context_diff // // Getting unified diffs was the main goal of the port. Keep in mind this code // is mostly suitable to output text differences in a human friendly way, there // are no guarantees generated diffs are consumable by patch(1). package difflib import ( "bufio" "bytes" "fmt" "io" "strings" ) func min(a, b int) int { if a < b { return a } return b } func max(a, b int) int { if a > b { return a } return b } func calculateRatio(matches, length int) float64 { if length > 0 { return 2.0 * float64(matches) / float64(length) } return 1.0 } type Match struct { A int B int Size int } type OpCode struct { Tag byte I1 int I2 int J1 int J2 int } // SequenceMatcher compares sequence of strings. The basic // algorithm predates, and is a little fancier than, an algorithm // published in the late 1980's by Ratcliff and Obershelp under the // hyperbolic name "gestalt pattern matching". The basic idea is to find // the longest contiguous matching subsequence that contains no "junk" // elements (R-O doesn't address junk). The same idea is then applied // recursively to the pieces of the sequences to the left and to the right // of the matching subsequence. This does not yield minimal edit // sequences, but does tend to yield matches that "look right" to people. // // SequenceMatcher tries to compute a "human-friendly diff" between two // sequences. Unlike e.g. UNIX(tm) diff, the fundamental notion is the // longest *contiguous* & junk-free matching subsequence. That's what // catches peoples' eyes. The Windows(tm) windiff has another interesting // notion, pairing up elements that appear uniquely in each sequence. // That, and the method here, appear to yield more intuitive difference // reports than does diff. This method appears to be the least vulnerable // to synching up on blocks of "junk lines", though (like blank lines in // ordinary text files, or maybe "<P>" lines in HTML files). That may be // because this is the only method of the 3 that has a *concept* of // "junk" <wink>. // // Timing: Basic R-O is cubic time worst case and quadratic time expected // case. SequenceMatcher is quadratic time for the worst case and has // expected-case behavior dependent in a complicated way on how many // elements the sequences have in common; best case time is linear. type SequenceMatcher struct { a []string b []string b2j map[string][]int IsJunk func(string) bool autoJunk bool bJunk map[string]struct{} matchingBlocks []Match fullBCount map[string]int bPopular map[string]struct{} opCodes []OpCode } func NewMatcher(a, b []string) *SequenceMatcher { m := SequenceMatcher{autoJunk: true} m.SetSeqs(a, b) return &m } func NewMatcherWithJunk(a, b []string, autoJunk bool, isJunk func(string) bool) *SequenceMatcher { m := SequenceMatcher{IsJunk: isJunk, autoJunk: autoJunk} m.SetSeqs(a, b) return &m } // Set two sequences to be compared. func (m *SequenceMatcher) SetSeqs(a, b []string) { m.SetSeq1(a) m.SetSeq2(b) } // Set the first sequence to be compared. The second sequence to be compared is // not changed. // // SequenceMatcher computes and caches detailed information about the second // sequence, so if you want to compare one sequence S against many sequences, // use .SetSeq2(s) once and call .SetSeq1(x) repeatedly for each of the other // sequences. // // See also SetSeqs() and SetSeq2(). func (m *SequenceMatcher) SetSeq1(a []string) { if &a == &m.a { return } m.a = a m.matchingBlocks = nil m.opCodes = nil } // Set the second sequence to be compared. The first sequence to be compared is // not changed. func (m *SequenceMatcher) SetSeq2(b []string) { if &b == &m.b { return } m.b = b m.matchingBlocks = nil m.opCodes = nil m.fullBCount = nil m.chainB() } func (m *SequenceMatcher) chainB() { // Populate line -> index mapping b2j := map[string][]int{} for i, s := range m.b { indices := b2j[s] indices = append(indices, i) b2j[s] = indices } // Purge junk elements m.bJunk = map[string]struct{}{} if m.IsJunk != nil { junk := m.bJunk for s, _ := range b2j { if m.IsJunk(s) { junk[s] = struct{}{} } } for s, _ := range junk { delete(b2j, s) } } // Purge remaining popular elements popular := map[string]struct{}{} n := len(m.b) if m.autoJunk && n >= 200 { ntest := n/100 + 1 for s, indices := range b2j { if len(indices) > ntest { popular[s] = struct{}{} } } for s, _ := range popular { delete(b2j, s) } } m.bPopular = popular m.b2j = b2j } func (m *SequenceMatcher) isBJunk(s string) bool { _, ok := m.bJunk[s] return ok } // Find longest matching block in a[alo:ahi] and b[blo:bhi]. // // If IsJunk is not defined: // // Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where // alo <= i <= i+k <= ahi // blo <= j <= j+k <= bhi // and for all (i',j',k') meeting those conditions, // k >= k' // i <= i' // and if i == i', j <= j' // // In other words, of all maximal matching blocks, return one that // starts earliest in a, and of all those maximal matching blocks that // start earliest in a, return the one that starts earliest in b. // // If IsJunk is defined, first the longest matching block is // determined as above, but with the additional restriction that no // junk element appears in the block. Then that block is extended as // far as possible by matching (only) junk elements on both sides. So // the resulting block never matches on junk except as identical junk // happens to be adjacent to an "interesting" match. // // If no blocks match, return (alo, blo, 0). func (m *SequenceMatcher) findLongestMatch(alo, ahi, blo, bhi int) Match { // CAUTION: stripping common prefix or suffix would be incorrect. // E.g., // ab // acab // Longest matching block is "ab", but if common prefix is // stripped, it's "a" (tied with "b"). UNIX(tm) diff does so // strip, so ends up claiming that ab is changed to acab by // inserting "ca" in the middle. That's minimal but unintuitive: // "it's obvious" that someone inserted "ac" at the front. // Windiff ends up at the same place as diff, but by pairing up // the unique 'b's and then matching the first two 'a's. besti, bestj, bestsize := alo, blo, 0 // find longest junk-free match // during an iteration of the loop, j2len[j] = length of longest // junk-free match ending with a[i-1] and b[j] j2len := map[int]int{} for i := alo; i != ahi; i++ { // look at all instances of a[i] in b; note that because // b2j has no junk keys, the loop is skipped if a[i] is junk newj2len := map[int]int{} for _, j := range m.b2j[m.a[i]] { // a[i] matches b[j] if j < blo { continue } if j >= bhi { break } k := j2len[j-1] + 1 newj2len[j] = k if k > bestsize { besti, bestj, bestsize = i-k+1, j-k+1, k } } j2len = newj2len } // Extend the best by non-junk elements on each end. In particular, // "popular" non-junk elements aren't in b2j, which greatly speeds // the inner loop above, but also means "the best" match so far // doesn't contain any junk *or* popular non-junk elements. for besti > alo && bestj > blo && !m.isBJunk(m.b[bestj-1]) && m.a[besti-1] == m.b[bestj-1] { besti, bestj, bestsize = besti-1, bestj-1, bestsize+1 } for besti+bestsize < ahi && bestj+bestsize < bhi && !m.isBJunk(m.b[bestj+bestsize]) && m.a[besti+bestsize] == m.b[bestj+bestsize] { bestsize += 1 } // Now that we have a wholly interesting match (albeit possibly // empty!), we may as well suck up the matching junk on each // side of it too. Can't think of a good reason not to, and it // saves post-processing the (possibly considerable) expense of // figuring out what to do with it. In the case of an empty // interesting match, this is clearly the right thing to do, // because no other kind of match is possible in the regions. for besti > alo && bestj > blo && m.isBJunk(m.b[bestj-1]) && m.a[besti-1] == m.b[bestj-1] { besti, bestj, bestsize = besti-1, bestj-1, bestsize+1 } for besti+bestsize < ahi && bestj+bestsize < bhi && m.isBJunk(m.b[bestj+bestsize]) && m.a[besti+bestsize] == m.b[bestj+bestsize] { bestsize += 1 } return Match{A: besti, B: bestj, Size: bestsize} } // Return list of triples describing matching subsequences. // // Each triple is of the form (i, j, n), and means that // a[i:i+n] == b[j:j+n]. The triples are monotonically increasing in // i and in j. It's also guaranteed that if (i, j, n) and (i', j', n') are // adjacent triples in the list, and the second is not the last triple in the // list, then i+n != i' or j+n != j'. IOW, adjacent triples never describe // adjacent equal blocks. // // The last triple is a dummy, (len(a), len(b), 0), and is the only // triple with n==0. func (m *SequenceMatcher) GetMatchingBlocks() []Match { if m.matchingBlocks != nil { return m.matchingBlocks } var matchBlocks func(alo, ahi, blo, bhi int, matched []Match) []Match matchBlocks = func(alo, ahi, blo, bhi int, matched []Match) []Match { match := m.findLongestMatch(alo, ahi, blo, bhi) i, j, k := match.A, match.B, match.Size if match.Size > 0 { if alo < i && blo < j { matched = matchBlocks(alo, i, blo, j, matched) } matched = append(matched, match) if i+k < ahi && j+k < bhi { matched = matchBlocks(i+k, ahi, j+k, bhi, matched) } } return matched } matched := matchBlocks(0, len(m.a), 0, len(m.b), nil) // It's possible that we have adjacent equal blocks in the // matching_blocks list now. nonAdjacent := []Match{} i1, j1, k1 := 0, 0, 0 for _, b := range matched { // Is this block adjacent to i1, j1, k1? i2, j2, k2 := b.A, b.B, b.Size if i1+k1 == i2 && j1+k1 == j2 { // Yes, so collapse them -- this just increases the length of // the first block by the length of the second, and the first // block so lengthened remains the block to compare against. k1 += k2 } else { // Not adjacent. Remember the first block (k1==0 means it's // the dummy we started with), and make the second block the // new block to compare against. if k1 > 0 { nonAdjacent = append(nonAdjacent, Match{i1, j1, k1}) } i1, j1, k1 = i2, j2, k2 } } if k1 > 0 { nonAdjacent = append(nonAdjacent, Match{i1, j1, k1}) } nonAdjacent = append(nonAdjacent, Match{len(m.a), len(m.b), 0}) m.matchingBlocks = nonAdjacent return m.matchingBlocks } // Return list of 5-tuples describing how to turn a into b. // // Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple // has i1 == j1 == 0, and remaining tuples have i1 == the i2 from the // tuple preceding it, and likewise for j1 == the previous j2. // // The tags are characters, with these meanings: // // 'r' (replace): a[i1:i2] should be replaced by b[j1:j2] // // 'd' (delete): a[i1:i2] should be deleted, j1==j2 in this case. // // 'i' (insert): b[j1:j2] should be inserted at a[i1:i1], i1==i2 in this case. // // 'e' (equal): a[i1:i2] == b[j1:j2] func (m *SequenceMatcher) GetOpCodes() []OpCode { if m.opCodes != nil { return m.opCodes } i, j := 0, 0 matching := m.GetMatchingBlocks() opCodes := make([]OpCode, 0, len(matching)) for _, m := range matching { // invariant: we've pumped out correct diffs to change // a[:i] into b[:j], and the next matching block is // a[ai:ai+size] == b[bj:bj+size]. So we need to pump // out a diff to change a[i:ai] into b[j:bj], pump out // the matching block, and move (i,j) beyond the match ai, bj, size := m.A, m.B, m.Size tag := byte(0) if i < ai && j < bj { tag = 'r' } else if i < ai { tag = 'd' } else if j < bj { tag = 'i' } if tag > 0 { opCodes = append(opCodes, OpCode{tag, i, ai, j, bj}) } i, j = ai+size, bj+size // the list of matching blocks is terminated by a // sentinel with size 0 if size > 0 { opCodes = append(opCodes, OpCode{'e', ai, i, bj, j}) } } m.opCodes = opCodes return m.opCodes } // Isolate change clusters by eliminating ranges with no changes. // // Return a generator of groups with up to n lines of context. // Each group is in the same format as returned by GetOpCodes(). func (m *SequenceMatcher) GetGroupedOpCodes(n int) [][]OpCode { if n < 0 { n = 3 } codes := m.GetOpCodes() if len(codes) == 0 { codes = []OpCode{OpCode{'e', 0, 1, 0, 1}} } // Fixup leading and trailing groups if they show no changes. if codes[0].Tag == 'e' { c := codes[0] i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 codes[0] = OpCode{c.Tag, max(i1, i2-n), i2, max(j1, j2-n), j2} } if codes[len(codes)-1].Tag == 'e' { c := codes[len(codes)-1] i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 codes[len(codes)-1] = OpCode{c.Tag, i1, min(i2, i1+n), j1, min(j2, j1+n)} } nn := n + n groups := [][]OpCode{} group := []OpCode{} for _, c := range codes { i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 // End the current group and start a new one whenever // there is a large range with no changes. if c.Tag == 'e' && i2-i1 > nn { group = append(group, OpCode{c.Tag, i1, min(i2, i1+n), j1, min(j2, j1+n)}) groups = append(groups, group) group = []OpCode{} i1, j1 = max(i1, i2-n), max(j1, j2-n) } group = append(group, OpCode{c.Tag, i1, i2, j1, j2}) } if len(group) > 0 && !(len(group) == 1 && group[0].Tag == 'e') { groups = append(groups, group) } return groups } // Return a measure of the sequences' similarity (float in [0,1]). // // Where T is the total number of elements in both sequences, and // M is the number of matches, this is 2.0*M / T. // Note that this is 1 if the sequences are identical, and 0 if // they have nothing in common. // // .Ratio() is expensive to compute if you haven't already computed // .GetMatchingBlocks() or .GetOpCodes(), in which case you may // want to try .QuickRatio() or .RealQuickRation() first to get an // upper bound. func (m *SequenceMatcher) Ratio() float64 { matches := 0 for _, m := range m.GetMatchingBlocks() { matches += m.Size } return calculateRatio(matches, len(m.a)+len(m.b)) } // Return an upper bound on ratio() relatively quickly. // // This isn't defined beyond that it is an upper bound on .Ratio(), and // is faster to compute. func (m *SequenceMatcher) QuickRatio() float64 { // viewing a and b as multisets, set matches to the cardinality // of their intersection; this counts the number of matches // without regard to order, so is clearly an upper bound if m.fullBCount == nil { m.fullBCount = map[string]int{} for _, s := range m.b { m.fullBCount[s] = m.fullBCount[s] + 1 } } // avail[x] is the number of times x appears in 'b' less the // number of times we've seen it in 'a' so far ... kinda avail := map[string]int{} matches := 0 for _, s := range m.a { n, ok := avail[s] if !ok { n = m.fullBCount[s] } avail[s] = n - 1 if n > 0 { matches += 1 } } return calculateRatio(matches, len(m.a)+len(m.b)) } // Return an upper bound on ratio() very quickly. // // This isn't defined beyond that it is an upper bound on .Ratio(), and // is faster to compute than either .Ratio() or .QuickRatio(). func (m *SequenceMatcher) RealQuickRatio() float64 { la, lb := len(m.a), len(m.b) return calculateRatio(min(la, lb), la+lb) } // Convert range to the "ed" format func formatRangeUnified(start, stop int) string { // Per the diff spec at http://www.unix.org/single_unix_specification/ beginning := start + 1 // lines start numbering with one length := stop - start if length == 1 { return fmt.Sprintf("%d", beginning) } if length == 0 { beginning -= 1 // empty ranges begin at line just before the range } return fmt.Sprintf("%d,%d", beginning, length) } // Unified diff parameters type UnifiedDiff struct { A []string // First sequence lines FromFile string // First file name FromDate string // First file time B []string // Second sequence lines ToFile string // Second file name ToDate string // Second file time Eol string // Headers end of line, defaults to LF Context int // Number of context lines } // Compare two sequences of lines; generate the delta as a unified diff. // // Unified diffs are a compact way of showing line changes and a few // lines of context. The number of context lines is set by 'n' which // defaults to three. // // By default, the diff control lines (those with ---, +++, or @@) are // created with a trailing newline. This is helpful so that inputs // created from file.readlines() result in diffs that are suitable for // file.writelines() since both the inputs and outputs have trailing // newlines. // // For inputs that do not have trailing newlines, set the lineterm // argument to "" so that the output will be uniformly newline free. // // The unidiff format normally has a header for filenames and modification // times. Any or all of these may be specified using strings for // 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'. // The modification times are normally expressed in the ISO 8601 format. func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error { buf := bufio.NewWriter(writer) defer buf.Flush() wf := func(format string, args ...interface{}) error { _, err := buf.WriteString(fmt.Sprintf(format, args...)) return err } ws := func(s string) error { _, err := buf.WriteString(s) return err } if len(diff.Eol) == 0 { diff.Eol = "\n" } started := false m := NewMatcher(diff.A, diff.B) for _, g := range m.GetGroupedOpCodes(diff.Context) { if !started { started = true fromDate := "" if len(diff.FromDate) > 0 { fromDate = "\t" + diff.FromDate } toDate := "" if len(diff.ToDate) > 0 { toDate = "\t" + diff.ToDate } if diff.FromFile != "" || diff.ToFile != "" { err := wf("--- %s%s%s", diff.FromFile, fromDate, diff.Eol) if err != nil { return err } err = wf("+++ %s%s%s", diff.ToFile, toDate, diff.Eol) if err != nil { return err } } } first, last := g[0], g[len(g)-1] range1 := formatRangeUnified(first.I1, last.I2) range2 := formatRangeUnified(first.J1, last.J2) if err := wf("@@ -%s +%s @@%s", range1, range2, diff.Eol); err != nil { return err } for _, c := range g { i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 if c.Tag == 'e' { for _, line := range diff.A[i1:i2] { if err := ws(" " + line); err != nil { return err } } continue } if c.Tag == 'r' || c.Tag == 'd' { for _, line := range diff.A[i1:i2] { if err := ws("-" + line); err != nil { return err } } } if c.Tag == 'r' || c.Tag == 'i' { for _, line := range diff.B[j1:j2] { if err := ws("+" + line); err != nil { return err } } } } } return nil } // Like WriteUnifiedDiff but returns the diff a string. func GetUnifiedDiffString(diff UnifiedDiff) (string, error) { w := &bytes.Buffer{} err := WriteUnifiedDiff(w, diff) return string(w.Bytes()), err } // Convert range to the "ed" format. func formatRangeContext(start, stop int) string { // Per the diff spec at http://www.unix.org/single_unix_specification/ beginning := start + 1 // lines start numbering with one length := stop - start if length == 0 { beginning -= 1 // empty ranges begin at line just before the range } if length <= 1 { return fmt.Sprintf("%d", beginning) } return fmt.Sprintf("%d,%d", beginning, beginning+length-1) } type ContextDiff UnifiedDiff // Compare two sequences of lines; generate the delta as a context diff. // // Context diffs are a compact way of showing line changes and a few // lines of context. The number of context lines is set by diff.Context // which defaults to three. // // By default, the diff control lines (those with *** or ---) are // created with a trailing newline. // // For inputs that do not have trailing newlines, set the diff.Eol // argument to "" so that the output will be uniformly newline free. // // The context diff format normally has a header for filenames and // modification times. Any or all of these may be specified using // strings for diff.FromFile, diff.ToFile, diff.FromDate, diff.ToDate. // The modification times are normally expressed in the ISO 8601 format. // If not specified, the strings default to blanks. func WriteContextDiff(writer io.Writer, diff ContextDiff) error { buf := bufio.NewWriter(writer) defer buf.Flush() var diffErr error wf := func(format string, args ...interface{}) { _, err := buf.WriteString(fmt.Sprintf(format, args...)) if diffErr == nil && err != nil { diffErr = err } } ws := func(s string) { _, err := buf.WriteString(s) if diffErr == nil && err != nil { diffErr = err } } if len(diff.Eol) == 0 { diff.Eol = "\n" } prefix := map[byte]string{ 'i': "+ ", 'd': "- ", 'r': "! ", 'e': " ", } started := false m := NewMatcher(diff.A, diff.B) for _, g := range m.GetGroupedOpCodes(diff.Context) { if !started { started = true fromDate := "" if len(diff.FromDate) > 0 { fromDate = "\t" + diff.FromDate } toDate := "" if len(diff.ToDate) > 0 { toDate = "\t" + diff.ToDate } if diff.FromFile != "" || diff.ToFile != "" { wf("*** %s%s%s", diff.FromFile, fromDate, diff.Eol) wf("--- %s%s%s", diff.ToFile, toDate, diff.Eol) } } first, last := g[0], g[len(g)-1] ws("***************" + diff.Eol) range1 := formatRangeContext(first.I1, last.I2) wf("*** %s ****%s", range1, diff.Eol) for _, c := range g { if c.Tag == 'r' || c.Tag == 'd' { for _, cc := range g { if cc.Tag == 'i' { continue } for _, line := range diff.A[cc.I1:cc.I2] { ws(prefix[cc.Tag] + line) } } break } } range2 := formatRangeContext(first.J1, last.J2) wf("--- %s ----%s", range2, diff.Eol) for _, c := range g { if c.Tag == 'r' || c.Tag == 'i' { for _, cc := range g { if cc.Tag == 'd' { continue } for _, line := range diff.B[cc.J1:cc.J2] { ws(prefix[cc.Tag] + line) } } break } } } return diffErr } // Like WriteContextDiff but returns the diff a string. func GetContextDiffString(diff ContextDiff) (string, error) { w := &bytes.Buffer{} err := WriteContextDiff(w, diff) return string(w.Bytes()), err } // Split a string on "\n" while preserving them. The output can be used // as input for UnifiedDiff and ContextDiff structures. func SplitLines(s string) []string { lines := strings.SplitAfter(s, "\n") lines[len(lines)-1] += "\n" return lines }
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/LICENSE
ISC License Copyright (c) 2012-2016 Dave Collins <dave@davec.name> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go
// Copyright (c) 2015-2016 Dave Collins <dave@davec.name> // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // NOTE: Due to the following build constraints, this file will only be compiled // when the code is running on Google App Engine, compiled by GopherJS, or // "-tags safe" is added to the go build command line. The "disableunsafe" // tag is deprecated and thus should not be used. // +build js appengine safe disableunsafe !go1.4 package spew import "reflect" const ( // UnsafeDisabled is a build-time constant which specifies whether or // not access to the unsafe package is available. UnsafeDisabled = true ) // unsafeReflectValue typically converts the passed reflect.Value into a one // that bypasses the typical safety restrictions preventing access to // unaddressable and unexported data. However, doing this relies on access to // the unsafe package. This is a stub version which simply returns the passed // reflect.Value when the unsafe package is not available. func unsafeReflectValue(v reflect.Value) reflect.Value { return v }
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/spew/config.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ package spew import ( "bytes" "fmt" "io" "os" ) // ConfigState houses the configuration options used by spew to format and // display values. There is a global instance, Config, that is used to control // all top-level Formatter and Dump functionality. Each ConfigState instance // provides methods equivalent to the top-level functions. // // The zero value for ConfigState provides no indentation. You would typically // want to set it to a space or a tab. // // Alternatively, you can use NewDefaultConfig to get a ConfigState instance // with default settings. See the documentation of NewDefaultConfig for default // values. type ConfigState struct { // Indent specifies the string to use for each indentation level. The // global config instance that all top-level functions use set this to a // single space by default. If you would like more indentation, you might // set this to a tab with "\t" or perhaps two spaces with " ". Indent string // MaxDepth controls the maximum number of levels to descend into nested // data structures. The default, 0, means there is no limit. // // NOTE: Circular data structures are properly detected, so it is not // necessary to set this value unless you specifically want to limit deeply // nested data structures. MaxDepth int // DisableMethods specifies whether or not error and Stringer interfaces are // invoked for types that implement them. DisableMethods bool // DisablePointerMethods specifies whether or not to check for and invoke // error and Stringer interfaces on types which only accept a pointer // receiver when the current type is not a pointer. // // NOTE: This might be an unsafe action since calling one of these methods // with a pointer receiver could technically mutate the value, however, // in practice, types which choose to satisify an error or Stringer // interface with a pointer receiver should not be mutating their state // inside these interface methods. As a result, this option relies on // access to the unsafe package, so it will not have any effect when // running in environments without access to the unsafe package such as // Google App Engine or with the "safe" build tag specified. DisablePointerMethods bool // DisablePointerAddresses specifies whether to disable the printing of // pointer addresses. This is useful when diffing data structures in tests. DisablePointerAddresses bool // DisableCapacities specifies whether to disable the printing of capacities // for arrays, slices, maps and channels. This is useful when diffing // data structures in tests. DisableCapacities bool // ContinueOnMethod specifies whether or not recursion should continue once // a custom error or Stringer interface is invoked. The default, false, // means it will print the results of invoking the custom error or Stringer // interface and return immediately instead of continuing to recurse into // the internals of the data type. // // NOTE: This flag does not have any effect if method invocation is disabled // via the DisableMethods or DisablePointerMethods options. ContinueOnMethod bool // SortKeys specifies map keys should be sorted before being printed. Use // this to have a more deterministic, diffable output. Note that only // native types (bool, int, uint, floats, uintptr and string) and types // that support the error or Stringer interfaces (if methods are // enabled) are supported, with other types sorted according to the // reflect.Value.String() output which guarantees display stability. SortKeys bool // SpewKeys specifies that, as a last resort attempt, map keys should // be spewed to strings and sorted by those strings. This is only // considered if SortKeys is true. SpewKeys bool } // Config is the active configuration of the top-level functions. // The configuration can be changed by modifying the contents of spew.Config. var Config = ConfigState{Indent: " "} // Errorf is a wrapper for fmt.Errorf that treats each argument as if it were // passed with a Formatter interface returned by c.NewFormatter. It returns // the formatted string as a value that satisfies error. See NewFormatter // for formatting details. // // This function is shorthand for the following syntax: // // fmt.Errorf(format, c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Errorf(format string, a ...interface{}) (err error) { return fmt.Errorf(format, c.convertArgs(a)...) } // Fprint is a wrapper for fmt.Fprint that treats each argument as if it were // passed with a Formatter interface returned by c.NewFormatter. It returns // the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Fprint(w, c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Fprint(w io.Writer, a ...interface{}) (n int, err error) { return fmt.Fprint(w, c.convertArgs(a)...) } // Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were // passed with a Formatter interface returned by c.NewFormatter. It returns // the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Fprintf(w, format, c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) { return fmt.Fprintf(w, format, c.convertArgs(a)...) } // Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it // passed with a Formatter interface returned by c.NewFormatter. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Fprintln(w, c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Fprintln(w io.Writer, a ...interface{}) (n int, err error) { return fmt.Fprintln(w, c.convertArgs(a)...) } // Print is a wrapper for fmt.Print that treats each argument as if it were // passed with a Formatter interface returned by c.NewFormatter. It returns // the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Print(c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Print(a ...interface{}) (n int, err error) { return fmt.Print(c.convertArgs(a)...) } // Printf is a wrapper for fmt.Printf that treats each argument as if it were // passed with a Formatter interface returned by c.NewFormatter. It returns // the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Printf(format, c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Printf(format string, a ...interface{}) (n int, err error) { return fmt.Printf(format, c.convertArgs(a)...) } // Println is a wrapper for fmt.Println that treats each argument as if it were // passed with a Formatter interface returned by c.NewFormatter. It returns // the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Println(c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Println(a ...interface{}) (n int, err error) { return fmt.Println(c.convertArgs(a)...) } // Sprint is a wrapper for fmt.Sprint that treats each argument as if it were // passed with a Formatter interface returned by c.NewFormatter. It returns // the resulting string. See NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Sprint(c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Sprint(a ...interface{}) string { return fmt.Sprint(c.convertArgs(a)...) } // Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were // passed with a Formatter interface returned by c.NewFormatter. It returns // the resulting string. See NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Sprintf(format, c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Sprintf(format string, a ...interface{}) string { return fmt.Sprintf(format, c.convertArgs(a)...) } // Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it // were passed with a Formatter interface returned by c.NewFormatter. It // returns the resulting string. See NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Sprintln(c.NewFormatter(a), c.NewFormatter(b)) func (c *ConfigState) Sprintln(a ...interface{}) string { return fmt.Sprintln(c.convertArgs(a)...) } /* NewFormatter returns a custom formatter that satisfies the fmt.Formatter interface. As a result, it integrates cleanly with standard fmt package printing functions. The formatter is useful for inline printing of smaller data types similar to the standard %v format specifier. The custom formatter only responds to the %v (most compact), %+v (adds pointer addresses), %#v (adds types), and %#+v (adds types and pointer addresses) verb combinations. Any other verbs such as %x and %q will be sent to the the standard fmt package for formatting. In addition, the custom formatter ignores the width and precision arguments (however they will still work on the format specifiers not handled by the custom formatter). Typically this function shouldn't be called directly. It is much easier to make use of the custom formatter by calling one of the convenience functions such as c.Printf, c.Println, or c.Printf. */ func (c *ConfigState) NewFormatter(v interface{}) fmt.Formatter { return newFormatter(c, v) } // Fdump formats and displays the passed arguments to io.Writer w. It formats // exactly the same as Dump. func (c *ConfigState) Fdump(w io.Writer, a ...interface{}) { fdump(c, w, a...) } /* Dump displays the passed parameters to standard out with newlines, customizable indentation, and additional debug information such as complete types and all pointer addresses used to indirect to the final value. It provides the following features over the built-in printing facilities provided by the fmt package: * Pointers are dereferenced and followed * Circular data structures are detected and handled properly * Custom Stringer/error interfaces are optionally invoked, including on unexported types * Custom types which only implement the Stringer/error interfaces via a pointer receiver are optionally invoked when passing non-pointer variables * Byte arrays and slices are dumped like the hexdump -C command which includes offsets, byte values in hex, and ASCII output The configuration options are controlled by modifying the public members of c. See ConfigState for options documentation. See Fdump if you would prefer dumping to an arbitrary io.Writer or Sdump to get the formatted result as a string. */ func (c *ConfigState) Dump(a ...interface{}) { fdump(c, os.Stdout, a...) } // Sdump returns a string with the passed arguments formatted exactly the same // as Dump. func (c *ConfigState) Sdump(a ...interface{}) string { var buf bytes.Buffer fdump(c, &buf, a...) return buf.String() } // convertArgs accepts a slice of arguments and returns a slice of the same // length with each argument converted to a spew Formatter interface using // the ConfigState associated with s. func (c *ConfigState) convertArgs(args []interface{}) (formatters []interface{}) { formatters = make([]interface{}, len(args)) for index, arg := range args { formatters[index] = newFormatter(c, arg) } return formatters } // NewDefaultConfig returns a ConfigState with the following default settings. // // Indent: " " // MaxDepth: 0 // DisableMethods: false // DisablePointerMethods: false // ContinueOnMethod: false // SortKeys: false func NewDefaultConfig() *ConfigState { return &ConfigState{Indent: " "} }
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/spew/format.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ package spew import ( "bytes" "fmt" "reflect" "strconv" "strings" ) // supportedFlags is a list of all the character flags supported by fmt package. const supportedFlags = "0-+# " // formatState implements the fmt.Formatter interface and contains information // about the state of a formatting operation. The NewFormatter function can // be used to get a new Formatter which can be used directly as arguments // in standard fmt package printing calls. type formatState struct { value interface{} fs fmt.State depth int pointers map[uintptr]int ignoreNextType bool cs *ConfigState } // buildDefaultFormat recreates the original format string without precision // and width information to pass in to fmt.Sprintf in the case of an // unrecognized type. Unless new types are added to the language, this // function won't ever be called. func (f *formatState) buildDefaultFormat() (format string) { buf := bytes.NewBuffer(percentBytes) for _, flag := range supportedFlags { if f.fs.Flag(int(flag)) { buf.WriteRune(flag) } } buf.WriteRune('v') format = buf.String() return format } // constructOrigFormat recreates the original format string including precision // and width information to pass along to the standard fmt package. This allows // automatic deferral of all format strings this package doesn't support. func (f *formatState) constructOrigFormat(verb rune) (format string) { buf := bytes.NewBuffer(percentBytes) for _, flag := range supportedFlags { if f.fs.Flag(int(flag)) { buf.WriteRune(flag) } } if width, ok := f.fs.Width(); ok { buf.WriteString(strconv.Itoa(width)) } if precision, ok := f.fs.Precision(); ok { buf.Write(precisionBytes) buf.WriteString(strconv.Itoa(precision)) } buf.WriteRune(verb) format = buf.String() return format } // unpackValue returns values inside of non-nil interfaces when possible and // ensures that types for values which have been unpacked from an interface // are displayed when the show types flag is also set. // This is useful for data types like structs, arrays, slices, and maps which // can contain varying types packed inside an interface. func (f *formatState) unpackValue(v reflect.Value) reflect.Value { if v.Kind() == reflect.Interface { f.ignoreNextType = false if !v.IsNil() { v = v.Elem() } } return v } // formatPtr handles formatting of pointers by indirecting them as necessary. func (f *formatState) formatPtr(v reflect.Value) { // Display nil if top level pointer is nil. showTypes := f.fs.Flag('#') if v.IsNil() && (!showTypes || f.ignoreNextType) { f.fs.Write(nilAngleBytes) return } // Remove pointers at or below the current depth from map used to detect // circular refs. for k, depth := range f.pointers { if depth >= f.depth { delete(f.pointers, k) } } // Keep list of all dereferenced pointers to possibly show later. pointerChain := make([]uintptr, 0) // Figure out how many levels of indirection there are by derferencing // pointers and unpacking interfaces down the chain while detecting circular // references. nilFound := false cycleFound := false indirects := 0 ve := v for ve.Kind() == reflect.Ptr { if ve.IsNil() { nilFound = true break } indirects++ addr := ve.Pointer() pointerChain = append(pointerChain, addr) if pd, ok := f.pointers[addr]; ok && pd < f.depth { cycleFound = true indirects-- break } f.pointers[addr] = f.depth ve = ve.Elem() if ve.Kind() == reflect.Interface { if ve.IsNil() { nilFound = true break } ve = ve.Elem() } } // Display type or indirection level depending on flags. if showTypes && !f.ignoreNextType { f.fs.Write(openParenBytes) f.fs.Write(bytes.Repeat(asteriskBytes, indirects)) f.fs.Write([]byte(ve.Type().String())) f.fs.Write(closeParenBytes) } else { if nilFound || cycleFound { indirects += strings.Count(ve.Type().String(), "*") } f.fs.Write(openAngleBytes) f.fs.Write([]byte(strings.Repeat("*", indirects))) f.fs.Write(closeAngleBytes) } // Display pointer information depending on flags. if f.fs.Flag('+') && (len(pointerChain) > 0) { f.fs.Write(openParenBytes) for i, addr := range pointerChain { if i > 0 { f.fs.Write(pointerChainBytes) } printHexPtr(f.fs, addr) } f.fs.Write(closeParenBytes) } // Display dereferenced value. switch { case nilFound: f.fs.Write(nilAngleBytes) case cycleFound: f.fs.Write(circularShortBytes) default: f.ignoreNextType = true f.format(ve) } } // format is the main workhorse for providing the Formatter interface. It // uses the passed reflect value to figure out what kind of object we are // dealing with and formats it appropriately. It is a recursive function, // however circular data structures are detected and handled properly. func (f *formatState) format(v reflect.Value) { // Handle invalid reflect values immediately. kind := v.Kind() if kind == reflect.Invalid { f.fs.Write(invalidAngleBytes) return } // Handle pointers specially. if kind == reflect.Ptr { f.formatPtr(v) return } // Print type information unless already handled elsewhere. if !f.ignoreNextType && f.fs.Flag('#') { f.fs.Write(openParenBytes) f.fs.Write([]byte(v.Type().String())) f.fs.Write(closeParenBytes) } f.ignoreNextType = false // Call Stringer/error interfaces if they exist and the handle methods // flag is enabled. if !f.cs.DisableMethods { if (kind != reflect.Invalid) && (kind != reflect.Interface) { if handled := handleMethods(f.cs, f.fs, v); handled { return } } } switch kind { case reflect.Invalid: // Do nothing. We should never get here since invalid has already // been handled above. case reflect.Bool: printBool(f.fs, v.Bool()) case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: printInt(f.fs, v.Int(), 10) case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: printUint(f.fs, v.Uint(), 10) case reflect.Float32: printFloat(f.fs, v.Float(), 32) case reflect.Float64: printFloat(f.fs, v.Float(), 64) case reflect.Complex64: printComplex(f.fs, v.Complex(), 32) case reflect.Complex128: printComplex(f.fs, v.Complex(), 64) case reflect.Slice: if v.IsNil() { f.fs.Write(nilAngleBytes) break } fallthrough case reflect.Array: f.fs.Write(openBracketBytes) f.depth++ if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) { f.fs.Write(maxShortBytes) } else { numEntries := v.Len() for i := 0; i < numEntries; i++ { if i > 0 { f.fs.Write(spaceBytes) } f.ignoreNextType = true f.format(f.unpackValue(v.Index(i))) } } f.depth-- f.fs.Write(closeBracketBytes) case reflect.String: f.fs.Write([]byte(v.String())) case reflect.Interface: // The only time we should get here is for nil interfaces due to // unpackValue calls. if v.IsNil() { f.fs.Write(nilAngleBytes) } case reflect.Ptr: // Do nothing. We should never get here since pointers have already // been handled above. case reflect.Map: // nil maps should be indicated as different than empty maps if v.IsNil() { f.fs.Write(nilAngleBytes) break } f.fs.Write(openMapBytes) f.depth++ if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) { f.fs.Write(maxShortBytes) } else { keys := v.MapKeys() if f.cs.SortKeys { sortValues(keys, f.cs) } for i, key := range keys { if i > 0 { f.fs.Write(spaceBytes) } f.ignoreNextType = true f.format(f.unpackValue(key)) f.fs.Write(colonBytes) f.ignoreNextType = true f.format(f.unpackValue(v.MapIndex(key))) } } f.depth-- f.fs.Write(closeMapBytes) case reflect.Struct: numFields := v.NumField() f.fs.Write(openBraceBytes) f.depth++ if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) { f.fs.Write(maxShortBytes) } else { vt := v.Type() for i := 0; i < numFields; i++ { if i > 0 { f.fs.Write(spaceBytes) } vtf := vt.Field(i) if f.fs.Flag('+') || f.fs.Flag('#') { f.fs.Write([]byte(vtf.Name)) f.fs.Write(colonBytes) } f.format(f.unpackValue(v.Field(i))) } } f.depth-- f.fs.Write(closeBraceBytes) case reflect.Uintptr: printHexPtr(f.fs, uintptr(v.Uint())) case reflect.UnsafePointer, reflect.Chan, reflect.Func: printHexPtr(f.fs, v.Pointer()) // There were not any other types at the time this code was written, but // fall back to letting the default fmt package handle it if any get added. default: format := f.buildDefaultFormat() if v.CanInterface() { fmt.Fprintf(f.fs, format, v.Interface()) } else { fmt.Fprintf(f.fs, format, v.String()) } } } // Format satisfies the fmt.Formatter interface. See NewFormatter for usage // details. func (f *formatState) Format(fs fmt.State, verb rune) { f.fs = fs // Use standard formatting for verbs that are not v. if verb != 'v' { format := f.constructOrigFormat(verb) fmt.Fprintf(fs, format, f.value) return } if f.value == nil { if fs.Flag('#') { fs.Write(interfaceBytes) } fs.Write(nilAngleBytes) return } f.format(reflect.ValueOf(f.value)) } // newFormatter is a helper function to consolidate the logic from the various // public methods which take varying config states. func newFormatter(cs *ConfigState, v interface{}) fmt.Formatter { fs := &formatState{value: v, cs: cs} fs.pointers = make(map[uintptr]int) return fs } /* NewFormatter returns a custom formatter that satisfies the fmt.Formatter interface. As a result, it integrates cleanly with standard fmt package printing functions. The formatter is useful for inline printing of smaller data types similar to the standard %v format specifier. The custom formatter only responds to the %v (most compact), %+v (adds pointer addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb combinations. Any other verbs such as %x and %q will be sent to the the standard fmt package for formatting. In addition, the custom formatter ignores the width and precision arguments (however they will still work on the format specifiers not handled by the custom formatter). Typically this function shouldn't be called directly. It is much easier to make use of the custom formatter by calling one of the convenience functions such as Printf, Println, or Fprintf. */ func NewFormatter(v interface{}) fmt.Formatter { return newFormatter(&Config, v) }
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/spew/spew.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ package spew import ( "fmt" "io" ) // Errorf is a wrapper for fmt.Errorf that treats each argument as if it were // passed with a default Formatter interface returned by NewFormatter. It // returns the formatted string as a value that satisfies error. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Errorf(format, spew.NewFormatter(a), spew.NewFormatter(b)) func Errorf(format string, a ...interface{}) (err error) { return fmt.Errorf(format, convertArgs(a)...) } // Fprint is a wrapper for fmt.Fprint that treats each argument as if it were // passed with a default Formatter interface returned by NewFormatter. It // returns the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Fprint(w, spew.NewFormatter(a), spew.NewFormatter(b)) func Fprint(w io.Writer, a ...interface{}) (n int, err error) { return fmt.Fprint(w, convertArgs(a)...) } // Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were // passed with a default Formatter interface returned by NewFormatter. It // returns the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Fprintf(w, format, spew.NewFormatter(a), spew.NewFormatter(b)) func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) { return fmt.Fprintf(w, format, convertArgs(a)...) } // Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it // passed with a default Formatter interface returned by NewFormatter. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Fprintln(w, spew.NewFormatter(a), spew.NewFormatter(b)) func Fprintln(w io.Writer, a ...interface{}) (n int, err error) { return fmt.Fprintln(w, convertArgs(a)...) } // Print is a wrapper for fmt.Print that treats each argument as if it were // passed with a default Formatter interface returned by NewFormatter. It // returns the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Print(spew.NewFormatter(a), spew.NewFormatter(b)) func Print(a ...interface{}) (n int, err error) { return fmt.Print(convertArgs(a)...) } // Printf is a wrapper for fmt.Printf that treats each argument as if it were // passed with a default Formatter interface returned by NewFormatter. It // returns the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Printf(format, spew.NewFormatter(a), spew.NewFormatter(b)) func Printf(format string, a ...interface{}) (n int, err error) { return fmt.Printf(format, convertArgs(a)...) } // Println is a wrapper for fmt.Println that treats each argument as if it were // passed with a default Formatter interface returned by NewFormatter. It // returns the number of bytes written and any write error encountered. See // NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Println(spew.NewFormatter(a), spew.NewFormatter(b)) func Println(a ...interface{}) (n int, err error) { return fmt.Println(convertArgs(a)...) } // Sprint is a wrapper for fmt.Sprint that treats each argument as if it were // passed with a default Formatter interface returned by NewFormatter. It // returns the resulting string. See NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Sprint(spew.NewFormatter(a), spew.NewFormatter(b)) func Sprint(a ...interface{}) string { return fmt.Sprint(convertArgs(a)...) } // Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were // passed with a default Formatter interface returned by NewFormatter. It // returns the resulting string. See NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Sprintf(format, spew.NewFormatter(a), spew.NewFormatter(b)) func Sprintf(format string, a ...interface{}) string { return fmt.Sprintf(format, convertArgs(a)...) } // Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it // were passed with a default Formatter interface returned by NewFormatter. It // returns the resulting string. See NewFormatter for formatting details. // // This function is shorthand for the following syntax: // // fmt.Sprintln(spew.NewFormatter(a), spew.NewFormatter(b)) func Sprintln(a ...interface{}) string { return fmt.Sprintln(convertArgs(a)...) } // convertArgs accepts a slice of arguments and returns a slice of the same // length with each argument converted to a default spew Formatter interface. func convertArgs(args []interface{}) (formatters []interface{}) { formatters = make([]interface{}, len(args)) for index, arg := range args { formatters[index] = NewFormatter(arg) } return formatters }
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/spew/doc.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* Package spew implements a deep pretty printer for Go data structures to aid in debugging. A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows: * Pointers are dereferenced and followed * Circular data structures are detected and handled properly * Custom Stringer/error interfaces are optionally invoked, including on unexported types * Custom types which only implement the Stringer/error interfaces via a pointer receiver are optionally invoked when passing non-pointer variables * Byte arrays and slices are dumped like the hexdump -C command which includes offsets, byte values in hex, and ASCII output (only when using Dump style) There are two different approaches spew allows for dumping Go data structures: * Dump style which prints with newlines, customizable indentation, and additional debug information such as types and all pointer addresses used to indirect to the final value * A custom Formatter interface that integrates cleanly with the standard fmt package and replaces %v, %+v, %#v, and %#+v to provide inline printing similar to the default %v while providing the additional functionality outlined above and passing unsupported format verbs such as %x and %q along to fmt Quick Start This section demonstrates how to quickly get started with spew. See the sections below for further details on formatting and configuration options. To dump a variable with full newlines, indentation, type, and pointer information use Dump, Fdump, or Sdump: spew.Dump(myVar1, myVar2, ...) spew.Fdump(someWriter, myVar1, myVar2, ...) str := spew.Sdump(myVar1, myVar2, ...) Alternatively, if you would prefer to use format strings with a compacted inline printing style, use the convenience wrappers Printf, Fprintf, etc with %v (most compact), %+v (adds pointer addresses), %#v (adds types), or %#+v (adds types and pointer addresses): spew.Printf("myVar1: %v -- myVar2: %+v", myVar1, myVar2) spew.Printf("myVar3: %#v -- myVar4: %#+v", myVar3, myVar4) spew.Fprintf(someWriter, "myVar1: %v -- myVar2: %+v", myVar1, myVar2) spew.Fprintf(someWriter, "myVar3: %#v -- myVar4: %#+v", myVar3, myVar4) Configuration Options Configuration of spew is handled by fields in the ConfigState type. For convenience, all of the top-level functions use a global state available via the spew.Config global. It is also possible to create a ConfigState instance that provides methods equivalent to the top-level functions. This allows concurrent configuration options. See the ConfigState documentation for more details. The following configuration options are available: * Indent String to use for each indentation level for Dump functions. It is a single space by default. A popular alternative is "\t". * MaxDepth Maximum number of levels to descend into nested data structures. There is no limit by default. * DisableMethods Disables invocation of error and Stringer interface methods. Method invocation is enabled by default. * DisablePointerMethods Disables invocation of error and Stringer interface methods on types which only accept pointer receivers from non-pointer variables. Pointer method invocation is enabled by default. * DisablePointerAddresses DisablePointerAddresses specifies whether to disable the printing of pointer addresses. This is useful when diffing data structures in tests. * DisableCapacities DisableCapacities specifies whether to disable the printing of capacities for arrays, slices, maps and channels. This is useful when diffing data structures in tests. * ContinueOnMethod Enables recursion into types after invoking error and Stringer interface methods. Recursion after method invocation is disabled by default. * SortKeys Specifies map keys should be sorted before being printed. Use this to have a more deterministic, diffable output. Note that only native types (bool, int, uint, floats, uintptr and string) and types which implement error or Stringer interfaces are supported with other types sorted according to the reflect.Value.String() output which guarantees display stability. Natural map order is used by default. * SpewKeys Specifies that, as a last resort attempt, map keys should be spewed to strings and sorted by those strings. This is only considered if SortKeys is true. Dump Usage Simply call spew.Dump with a list of variables you want to dump: spew.Dump(myVar1, myVar2, ...) You may also call spew.Fdump if you would prefer to output to an arbitrary io.Writer. For example, to dump to standard error: spew.Fdump(os.Stderr, myVar1, myVar2, ...) A third option is to call spew.Sdump to get the formatted output as a string: str := spew.Sdump(myVar1, myVar2, ...) Sample Dump Output See the Dump example for details on the setup of the types and variables being shown here. (main.Foo) { unexportedField: (*main.Bar)(0xf84002e210)({ flag: (main.Flag) flagTwo, data: (uintptr) <nil> }), ExportedField: (map[interface {}]interface {}) (len=1) { (string) (len=3) "one": (bool) true } } Byte (and uint8) arrays and slices are displayed uniquely like the hexdump -C command as shown. ([]uint8) (len=32 cap=32) { 00000000 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 |............... | 00000010 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 |!"#$%&'()*+,-./0| 00000020 31 32 |12| } Custom Formatter Spew provides a custom formatter that implements the fmt.Formatter interface so that it integrates cleanly with standard fmt package printing functions. The formatter is useful for inline printing of smaller data types similar to the standard %v format specifier. The custom formatter only responds to the %v (most compact), %+v (adds pointer addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb combinations. Any other verbs such as %x and %q will be sent to the the standard fmt package for formatting. In addition, the custom formatter ignores the width and precision arguments (however they will still work on the format specifiers not handled by the custom formatter). Custom Formatter Usage The simplest way to make use of the spew custom formatter is to call one of the convenience functions such as spew.Printf, spew.Println, or spew.Printf. The functions have syntax you are most likely already familiar with: spew.Printf("myVar1: %v -- myVar2: %+v", myVar1, myVar2) spew.Printf("myVar3: %#v -- myVar4: %#+v", myVar3, myVar4) spew.Println(myVar, myVar2) spew.Fprintf(os.Stderr, "myVar1: %v -- myVar2: %+v", myVar1, myVar2) spew.Fprintf(os.Stderr, "myVar3: %#v -- myVar4: %#+v", myVar3, myVar4) See the Index for the full list convenience functions. Sample Formatter Output Double pointer to a uint8: %v: <**>5 %+v: <**>(0xf8400420d0->0xf8400420c8)5 %#v: (**uint8)5 %#+v: (**uint8)(0xf8400420d0->0xf8400420c8)5 Pointer to circular struct with a uint8 field and a pointer to itself: %v: <*>{1 <*><shown>} %+v: <*>(0xf84003e260){ui8:1 c:<*>(0xf84003e260)<shown>} %#v: (*main.circular){ui8:(uint8)1 c:(*main.circular)<shown>} %#+v: (*main.circular)(0xf84003e260){ui8:(uint8)1 c:(*main.circular)(0xf84003e260)<shown>} See the Printf example for details on the setup of variables being shown here. Errors Since it is possible for custom Stringer/error interfaces to panic, spew detects them and handles them internally by printing the panic information inline with the output. Since spew is intended to provide deep pretty printing capabilities on structures, it intentionally does not return any errors. */ package spew
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/spew/dump.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ package spew import ( "bytes" "encoding/hex" "fmt" "io" "os" "reflect" "regexp" "strconv" "strings" ) var ( // uint8Type is a reflect.Type representing a uint8. It is used to // convert cgo types to uint8 slices for hexdumping. uint8Type = reflect.TypeOf(uint8(0)) // cCharRE is a regular expression that matches a cgo char. // It is used to detect character arrays to hexdump them. cCharRE = regexp.MustCompile(`^.*\._Ctype_char$`) // cUnsignedCharRE is a regular expression that matches a cgo unsigned // char. It is used to detect unsigned character arrays to hexdump // them. cUnsignedCharRE = regexp.MustCompile(`^.*\._Ctype_unsignedchar$`) // cUint8tCharRE is a regular expression that matches a cgo uint8_t. // It is used to detect uint8_t arrays to hexdump them. cUint8tCharRE = regexp.MustCompile(`^.*\._Ctype_uint8_t$`) ) // dumpState contains information about the state of a dump operation. type dumpState struct { w io.Writer depth int pointers map[uintptr]int ignoreNextType bool ignoreNextIndent bool cs *ConfigState } // indent performs indentation according to the depth level and cs.Indent // option. func (d *dumpState) indent() { if d.ignoreNextIndent { d.ignoreNextIndent = false return } d.w.Write(bytes.Repeat([]byte(d.cs.Indent), d.depth)) } // unpackValue returns values inside of non-nil interfaces when possible. // This is useful for data types like structs, arrays, slices, and maps which // can contain varying types packed inside an interface. func (d *dumpState) unpackValue(v reflect.Value) reflect.Value { if v.Kind() == reflect.Interface && !v.IsNil() { v = v.Elem() } return v } // dumpPtr handles formatting of pointers by indirecting them as necessary. func (d *dumpState) dumpPtr(v reflect.Value) { // Remove pointers at or below the current depth from map used to detect // circular refs. for k, depth := range d.pointers { if depth >= d.depth { delete(d.pointers, k) } } // Keep list of all dereferenced pointers to show later. pointerChain := make([]uintptr, 0) // Figure out how many levels of indirection there are by dereferencing // pointers and unpacking interfaces down the chain while detecting circular // references. nilFound := false cycleFound := false indirects := 0 ve := v for ve.Kind() == reflect.Ptr { if ve.IsNil() { nilFound = true break } indirects++ addr := ve.Pointer() pointerChain = append(pointerChain, addr) if pd, ok := d.pointers[addr]; ok && pd < d.depth { cycleFound = true indirects-- break } d.pointers[addr] = d.depth ve = ve.Elem() if ve.Kind() == reflect.Interface { if ve.IsNil() { nilFound = true break } ve = ve.Elem() } } // Display type information. d.w.Write(openParenBytes) d.w.Write(bytes.Repeat(asteriskBytes, indirects)) d.w.Write([]byte(ve.Type().String())) d.w.Write(closeParenBytes) // Display pointer information. if !d.cs.DisablePointerAddresses && len(pointerChain) > 0 { d.w.Write(openParenBytes) for i, addr := range pointerChain { if i > 0 { d.w.Write(pointerChainBytes) } printHexPtr(d.w, addr) } d.w.Write(closeParenBytes) } // Display dereferenced value. d.w.Write(openParenBytes) switch { case nilFound: d.w.Write(nilAngleBytes) case cycleFound: d.w.Write(circularBytes) default: d.ignoreNextType = true d.dump(ve) } d.w.Write(closeParenBytes) } // dumpSlice handles formatting of arrays and slices. Byte (uint8 under // reflection) arrays and slices are dumped in hexdump -C fashion. func (d *dumpState) dumpSlice(v reflect.Value) { // Determine whether this type should be hex dumped or not. Also, // for types which should be hexdumped, try to use the underlying data // first, then fall back to trying to convert them to a uint8 slice. var buf []uint8 doConvert := false doHexDump := false numEntries := v.Len() if numEntries > 0 { vt := v.Index(0).Type() vts := vt.String() switch { // C types that need to be converted. case cCharRE.MatchString(vts): fallthrough case cUnsignedCharRE.MatchString(vts): fallthrough case cUint8tCharRE.MatchString(vts): doConvert = true // Try to use existing uint8 slices and fall back to converting // and copying if that fails. case vt.Kind() == reflect.Uint8: // We need an addressable interface to convert the type // to a byte slice. However, the reflect package won't // give us an interface on certain things like // unexported struct fields in order to enforce // visibility rules. We use unsafe, when available, to // bypass these restrictions since this package does not // mutate the values. vs := v if !vs.CanInterface() || !vs.CanAddr() { vs = unsafeReflectValue(vs) } if !UnsafeDisabled { vs = vs.Slice(0, numEntries) // Use the existing uint8 slice if it can be // type asserted. iface := vs.Interface() if slice, ok := iface.([]uint8); ok { buf = slice doHexDump = true break } } // The underlying data needs to be converted if it can't // be type asserted to a uint8 slice. doConvert = true } // Copy and convert the underlying type if needed. if doConvert && vt.ConvertibleTo(uint8Type) { // Convert and copy each element into a uint8 byte // slice. buf = make([]uint8, numEntries) for i := 0; i < numEntries; i++ { vv := v.Index(i) buf[i] = uint8(vv.Convert(uint8Type).Uint()) } doHexDump = true } } // Hexdump the entire slice as needed. if doHexDump { indent := strings.Repeat(d.cs.Indent, d.depth) str := indent + hex.Dump(buf) str = strings.Replace(str, "\n", "\n"+indent, -1) str = strings.TrimRight(str, d.cs.Indent) d.w.Write([]byte(str)) return } // Recursively call dump for each item. for i := 0; i < numEntries; i++ { d.dump(d.unpackValue(v.Index(i))) if i < (numEntries - 1) { d.w.Write(commaNewlineBytes) } else { d.w.Write(newlineBytes) } } } // dump is the main workhorse for dumping a value. It uses the passed reflect // value to figure out what kind of object we are dealing with and formats it // appropriately. It is a recursive function, however circular data structures // are detected and handled properly. func (d *dumpState) dump(v reflect.Value) { // Handle invalid reflect values immediately. kind := v.Kind() if kind == reflect.Invalid { d.w.Write(invalidAngleBytes) return } // Handle pointers specially. if kind == reflect.Ptr { d.indent() d.dumpPtr(v) return } // Print type information unless already handled elsewhere. if !d.ignoreNextType { d.indent() d.w.Write(openParenBytes) d.w.Write([]byte(v.Type().String())) d.w.Write(closeParenBytes) d.w.Write(spaceBytes) } d.ignoreNextType = false // Display length and capacity if the built-in len and cap functions // work with the value's kind and the len/cap itself is non-zero. valueLen, valueCap := 0, 0 switch v.Kind() { case reflect.Array, reflect.Slice, reflect.Chan: valueLen, valueCap = v.Len(), v.Cap() case reflect.Map, reflect.String: valueLen = v.Len() } if valueLen != 0 || !d.cs.DisableCapacities && valueCap != 0 { d.w.Write(openParenBytes) if valueLen != 0 { d.w.Write(lenEqualsBytes) printInt(d.w, int64(valueLen), 10) } if !d.cs.DisableCapacities && valueCap != 0 { if valueLen != 0 { d.w.Write(spaceBytes) } d.w.Write(capEqualsBytes) printInt(d.w, int64(valueCap), 10) } d.w.Write(closeParenBytes) d.w.Write(spaceBytes) } // Call Stringer/error interfaces if they exist and the handle methods flag // is enabled if !d.cs.DisableMethods { if (kind != reflect.Invalid) && (kind != reflect.Interface) { if handled := handleMethods(d.cs, d.w, v); handled { return } } } switch kind { case reflect.Invalid: // Do nothing. We should never get here since invalid has already // been handled above. case reflect.Bool: printBool(d.w, v.Bool()) case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: printInt(d.w, v.Int(), 10) case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: printUint(d.w, v.Uint(), 10) case reflect.Float32: printFloat(d.w, v.Float(), 32) case reflect.Float64: printFloat(d.w, v.Float(), 64) case reflect.Complex64: printComplex(d.w, v.Complex(), 32) case reflect.Complex128: printComplex(d.w, v.Complex(), 64) case reflect.Slice: if v.IsNil() { d.w.Write(nilAngleBytes) break } fallthrough case reflect.Array: d.w.Write(openBraceNewlineBytes) d.depth++ if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) { d.indent() d.w.Write(maxNewlineBytes) } else { d.dumpSlice(v) } d.depth-- d.indent() d.w.Write(closeBraceBytes) case reflect.String: d.w.Write([]byte(strconv.Quote(v.String()))) case reflect.Interface: // The only time we should get here is for nil interfaces due to // unpackValue calls. if v.IsNil() { d.w.Write(nilAngleBytes) } case reflect.Ptr: // Do nothing. We should never get here since pointers have already // been handled above. case reflect.Map: // nil maps should be indicated as different than empty maps if v.IsNil() { d.w.Write(nilAngleBytes) break } d.w.Write(openBraceNewlineBytes) d.depth++ if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) { d.indent() d.w.Write(maxNewlineBytes) } else { numEntries := v.Len() keys := v.MapKeys() if d.cs.SortKeys { sortValues(keys, d.cs) } for i, key := range keys { d.dump(d.unpackValue(key)) d.w.Write(colonSpaceBytes) d.ignoreNextIndent = true d.dump(d.unpackValue(v.MapIndex(key))) if i < (numEntries - 1) { d.w.Write(commaNewlineBytes) } else { d.w.Write(newlineBytes) } } } d.depth-- d.indent() d.w.Write(closeBraceBytes) case reflect.Struct: d.w.Write(openBraceNewlineBytes) d.depth++ if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) { d.indent() d.w.Write(maxNewlineBytes) } else { vt := v.Type() numFields := v.NumField() for i := 0; i < numFields; i++ { d.indent() vtf := vt.Field(i) d.w.Write([]byte(vtf.Name)) d.w.Write(colonSpaceBytes) d.ignoreNextIndent = true d.dump(d.unpackValue(v.Field(i))) if i < (numFields - 1) { d.w.Write(commaNewlineBytes) } else { d.w.Write(newlineBytes) } } } d.depth-- d.indent() d.w.Write(closeBraceBytes) case reflect.Uintptr: printHexPtr(d.w, uintptr(v.Uint())) case reflect.UnsafePointer, reflect.Chan, reflect.Func: printHexPtr(d.w, v.Pointer()) // There were not any other types at the time this code was written, but // fall back to letting the default fmt package handle it in case any new // types are added. default: if v.CanInterface() { fmt.Fprintf(d.w, "%v", v.Interface()) } else { fmt.Fprintf(d.w, "%v", v.String()) } } } // fdump is a helper function to consolidate the logic from the various public // methods which take varying writers and config states. func fdump(cs *ConfigState, w io.Writer, a ...interface{}) { for _, arg := range a { if arg == nil { w.Write(interfaceBytes) w.Write(spaceBytes) w.Write(nilAngleBytes) w.Write(newlineBytes) continue } d := dumpState{w: w, cs: cs} d.pointers = make(map[uintptr]int) d.dump(reflect.ValueOf(arg)) d.w.Write(newlineBytes) } } // Fdump formats and displays the passed arguments to io.Writer w. It formats // exactly the same as Dump. func Fdump(w io.Writer, a ...interface{}) { fdump(&Config, w, a...) } // Sdump returns a string with the passed arguments formatted exactly the same // as Dump. func Sdump(a ...interface{}) string { var buf bytes.Buffer fdump(&Config, &buf, a...) return buf.String() } /* Dump displays the passed parameters to standard out with newlines, customizable indentation, and additional debug information such as complete types and all pointer addresses used to indirect to the final value. It provides the following features over the built-in printing facilities provided by the fmt package: * Pointers are dereferenced and followed * Circular data structures are detected and handled properly * Custom Stringer/error interfaces are optionally invoked, including on unexported types * Custom types which only implement the Stringer/error interfaces via a pointer receiver are optionally invoked when passing non-pointer variables * Byte arrays and slices are dumped like the hexdump -C command which includes offsets, byte values in hex, and ASCII output The configuration options are controlled by an exported package global, spew.Config. See ConfigState for options documentation. See Fdump if you would prefer dumping to an arbitrary io.Writer or Sdump to get the formatted result as a string. */ func Dump(a ...interface{}) { fdump(&Config, os.Stdout, a...) }
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/spew/bypass.go
// Copyright (c) 2015-2016 Dave Collins <dave@davec.name> // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // NOTE: Due to the following build constraints, this file will only be compiled // when the code is not running on Google App Engine, compiled by GopherJS, and // "-tags safe" is not added to the go build command line. The "disableunsafe" // tag is deprecated and thus should not be used. // Go versions prior to 1.4 are disabled because they use a different layout // for interfaces which make the implementation of unsafeReflectValue more complex. // +build !js,!appengine,!safe,!disableunsafe,go1.4 package spew import ( "reflect" "unsafe" ) const ( // UnsafeDisabled is a build-time constant which specifies whether or // not access to the unsafe package is available. UnsafeDisabled = false // ptrSize is the size of a pointer on the current arch. ptrSize = unsafe.Sizeof((*byte)(nil)) ) type flag uintptr var ( // flagRO indicates whether the value field of a reflect.Value // is read-only. flagRO flag // flagAddr indicates whether the address of the reflect.Value's // value may be taken. flagAddr flag ) // flagKindMask holds the bits that make up the kind // part of the flags field. In all the supported versions, // it is in the lower 5 bits. const flagKindMask = flag(0x1f) // Different versions of Go have used different // bit layouts for the flags type. This table // records the known combinations. var okFlags = []struct { ro, addr flag }{{ // From Go 1.4 to 1.5 ro: 1 << 5, addr: 1 << 7, }, { // Up to Go tip. ro: 1<<5 | 1<<6, addr: 1 << 8, }} var flagValOffset = func() uintptr { field, ok := reflect.TypeOf(reflect.Value{}).FieldByName("flag") if !ok { panic("reflect.Value has no flag field") } return field.Offset }() // flagField returns a pointer to the flag field of a reflect.Value. func flagField(v *reflect.Value) *flag { return (*flag)(unsafe.Pointer(uintptr(unsafe.Pointer(v)) + flagValOffset)) } // unsafeReflectValue converts the passed reflect.Value into a one that bypasses // the typical safety restrictions preventing access to unaddressable and // unexported data. It works by digging the raw pointer to the underlying // value out of the protected value and generating a new unprotected (unsafe) // reflect.Value to it. // // This allows us to check for implementations of the Stringer and error // interfaces to be used for pretty printing ordinarily unaddressable and // inaccessible values such as unexported struct fields. func unsafeReflectValue(v reflect.Value) reflect.Value { if !v.IsValid() || (v.CanInterface() && v.CanAddr()) { return v } flagFieldPtr := flagField(&v) *flagFieldPtr &^= flagRO *flagFieldPtr |= flagAddr return v } // Sanity checks against future reflect package changes // to the type or semantics of the Value.flag field. func init() { field, ok := reflect.TypeOf(reflect.Value{}).FieldByName("flag") if !ok { panic("reflect.Value has no flag field") } if field.Type.Kind() != reflect.TypeOf(flag(0)).Kind() { panic("reflect.Value flag field has changed kind") } type t0 int var t struct { A t0 // t0 will have flagEmbedRO set. t0 // a will have flagStickyRO set a t0 } vA := reflect.ValueOf(t).FieldByName("A") va := reflect.ValueOf(t).FieldByName("a") vt0 := reflect.ValueOf(t).FieldByName("t0") // Infer flagRO from the difference between the flags // for the (otherwise identical) fields in t. flagPublic := *flagField(&vA) flagWithRO := *flagField(&va) | *flagField(&vt0) flagRO = flagPublic ^ flagWithRO // Infer flagAddr from the difference between a value // taken from a pointer and not. vPtrA := reflect.ValueOf(&t).Elem().FieldByName("A") flagNoPtr := *flagField(&vA) flagPtr := *flagField(&vPtrA) flagAddr = flagNoPtr ^ flagPtr // Check that the inferred flags tally with one of the known versions. for _, f := range okFlags { if flagRO == f.ro && flagAddr == f.addr { return } } panic("reflect.Value read-only flag has changed semantics") }
0
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew
rapidsai_public_repos/rvc/vendor/github.com/davecgh/go-spew/spew/common.go
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ package spew import ( "bytes" "fmt" "io" "reflect" "sort" "strconv" ) // Some constants in the form of bytes to avoid string overhead. This mirrors // the technique used in the fmt package. var ( panicBytes = []byte("(PANIC=") plusBytes = []byte("+") iBytes = []byte("i") trueBytes = []byte("true") falseBytes = []byte("false") interfaceBytes = []byte("(interface {})") commaNewlineBytes = []byte(",\n") newlineBytes = []byte("\n") openBraceBytes = []byte("{") openBraceNewlineBytes = []byte("{\n") closeBraceBytes = []byte("}") asteriskBytes = []byte("*") colonBytes = []byte(":") colonSpaceBytes = []byte(": ") openParenBytes = []byte("(") closeParenBytes = []byte(")") spaceBytes = []byte(" ") pointerChainBytes = []byte("->") nilAngleBytes = []byte("<nil>") maxNewlineBytes = []byte("<max depth reached>\n") maxShortBytes = []byte("<max>") circularBytes = []byte("<already shown>") circularShortBytes = []byte("<shown>") invalidAngleBytes = []byte("<invalid>") openBracketBytes = []byte("[") closeBracketBytes = []byte("]") percentBytes = []byte("%") precisionBytes = []byte(".") openAngleBytes = []byte("<") closeAngleBytes = []byte(">") openMapBytes = []byte("map[") closeMapBytes = []byte("]") lenEqualsBytes = []byte("len=") capEqualsBytes = []byte("cap=") ) // hexDigits is used to map a decimal value to a hex digit. var hexDigits = "0123456789abcdef" // catchPanic handles any panics that might occur during the handleMethods // calls. func catchPanic(w io.Writer, v reflect.Value) { if err := recover(); err != nil { w.Write(panicBytes) fmt.Fprintf(w, "%v", err) w.Write(closeParenBytes) } } // handleMethods attempts to call the Error and String methods on the underlying // type the passed reflect.Value represents and outputes the result to Writer w. // // It handles panics in any called methods by catching and displaying the error // as the formatted value. func handleMethods(cs *ConfigState, w io.Writer, v reflect.Value) (handled bool) { // We need an interface to check if the type implements the error or // Stringer interface. However, the reflect package won't give us an // interface on certain things like unexported struct fields in order // to enforce visibility rules. We use unsafe, when it's available, // to bypass these restrictions since this package does not mutate the // values. if !v.CanInterface() { if UnsafeDisabled { return false } v = unsafeReflectValue(v) } // Choose whether or not to do error and Stringer interface lookups against // the base type or a pointer to the base type depending on settings. // Technically calling one of these methods with a pointer receiver can // mutate the value, however, types which choose to satisify an error or // Stringer interface with a pointer receiver should not be mutating their // state inside these interface methods. if !cs.DisablePointerMethods && !UnsafeDisabled && !v.CanAddr() { v = unsafeReflectValue(v) } if v.CanAddr() { v = v.Addr() } // Is it an error or Stringer? switch iface := v.Interface().(type) { case error: defer catchPanic(w, v) if cs.ContinueOnMethod { w.Write(openParenBytes) w.Write([]byte(iface.Error())) w.Write(closeParenBytes) w.Write(spaceBytes) return false } w.Write([]byte(iface.Error())) return true case fmt.Stringer: defer catchPanic(w, v) if cs.ContinueOnMethod { w.Write(openParenBytes) w.Write([]byte(iface.String())) w.Write(closeParenBytes) w.Write(spaceBytes) return false } w.Write([]byte(iface.String())) return true } return false } // printBool outputs a boolean value as true or false to Writer w. func printBool(w io.Writer, val bool) { if val { w.Write(trueBytes) } else { w.Write(falseBytes) } } // printInt outputs a signed integer value to Writer w. func printInt(w io.Writer, val int64, base int) { w.Write([]byte(strconv.FormatInt(val, base))) } // printUint outputs an unsigned integer value to Writer w. func printUint(w io.Writer, val uint64, base int) { w.Write([]byte(strconv.FormatUint(val, base))) } // printFloat outputs a floating point value using the specified precision, // which is expected to be 32 or 64bit, to Writer w. func printFloat(w io.Writer, val float64, precision int) { w.Write([]byte(strconv.FormatFloat(val, 'g', -1, precision))) } // printComplex outputs a complex value using the specified float precision // for the real and imaginary parts to Writer w. func printComplex(w io.Writer, c complex128, floatPrecision int) { r := real(c) w.Write(openParenBytes) w.Write([]byte(strconv.FormatFloat(r, 'g', -1, floatPrecision))) i := imag(c) if i >= 0 { w.Write(plusBytes) } w.Write([]byte(strconv.FormatFloat(i, 'g', -1, floatPrecision))) w.Write(iBytes) w.Write(closeParenBytes) } // printHexPtr outputs a uintptr formatted as hexadecimal with a leading '0x' // prefix to Writer w. func printHexPtr(w io.Writer, p uintptr) { // Null pointer. num := uint64(p) if num == 0 { w.Write(nilAngleBytes) return } // Max uint64 is 16 bytes in hex + 2 bytes for '0x' prefix buf := make([]byte, 18) // It's simpler to construct the hex string right to left. base := uint64(16) i := len(buf) - 1 for num >= base { buf[i] = hexDigits[num%base] num /= base i-- } buf[i] = hexDigits[num] // Add '0x' prefix. i-- buf[i] = 'x' i-- buf[i] = '0' // Strip unused leading bytes. buf = buf[i:] w.Write(buf) } // valuesSorter implements sort.Interface to allow a slice of reflect.Value // elements to be sorted. type valuesSorter struct { values []reflect.Value strings []string // either nil or same len and values cs *ConfigState } // newValuesSorter initializes a valuesSorter instance, which holds a set of // surrogate keys on which the data should be sorted. It uses flags in // ConfigState to decide if and how to populate those surrogate keys. func newValuesSorter(values []reflect.Value, cs *ConfigState) sort.Interface { vs := &valuesSorter{values: values, cs: cs} if canSortSimply(vs.values[0].Kind()) { return vs } if !cs.DisableMethods { vs.strings = make([]string, len(values)) for i := range vs.values { b := bytes.Buffer{} if !handleMethods(cs, &b, vs.values[i]) { vs.strings = nil break } vs.strings[i] = b.String() } } if vs.strings == nil && cs.SpewKeys { vs.strings = make([]string, len(values)) for i := range vs.values { vs.strings[i] = Sprintf("%#v", vs.values[i].Interface()) } } return vs } // canSortSimply tests whether a reflect.Kind is a primitive that can be sorted // directly, or whether it should be considered for sorting by surrogate keys // (if the ConfigState allows it). func canSortSimply(kind reflect.Kind) bool { // This switch parallels valueSortLess, except for the default case. switch kind { case reflect.Bool: return true case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: return true case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: return true case reflect.Float32, reflect.Float64: return true case reflect.String: return true case reflect.Uintptr: return true case reflect.Array: return true } return false } // Len returns the number of values in the slice. It is part of the // sort.Interface implementation. func (s *valuesSorter) Len() int { return len(s.values) } // Swap swaps the values at the passed indices. It is part of the // sort.Interface implementation. func (s *valuesSorter) Swap(i, j int) { s.values[i], s.values[j] = s.values[j], s.values[i] if s.strings != nil { s.strings[i], s.strings[j] = s.strings[j], s.strings[i] } } // valueSortLess returns whether the first value should sort before the second // value. It is used by valueSorter.Less as part of the sort.Interface // implementation. func valueSortLess(a, b reflect.Value) bool { switch a.Kind() { case reflect.Bool: return !a.Bool() && b.Bool() case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: return a.Int() < b.Int() case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: return a.Uint() < b.Uint() case reflect.Float32, reflect.Float64: return a.Float() < b.Float() case reflect.String: return a.String() < b.String() case reflect.Uintptr: return a.Uint() < b.Uint() case reflect.Array: // Compare the contents of both arrays. l := a.Len() for i := 0; i < l; i++ { av := a.Index(i) bv := b.Index(i) if av.Interface() == bv.Interface() { continue } return valueSortLess(av, bv) } } return a.String() < b.String() } // Less returns whether the value at index i should sort before the // value at index j. It is part of the sort.Interface implementation. func (s *valuesSorter) Less(i, j int) bool { if s.strings == nil { return valueSortLess(s.values[i], s.values[j]) } return s.strings[i] < s.strings[j] } // sortValues is a sort function that handles both native types and any type that // can be converted to error or Stringer. Other inputs are sorted according to // their Value.String() value to ensure display stability. func sortValues(values []reflect.Value, cs *ConfigState) { if len(values) == 0 { return } sort.Sort(newValuesSorter(values, cs)) }
0
rapidsai_public_repos/rvc/cmd
rapidsai_public_repos/rvc/cmd/rvc_serverless/rvc_serverless.go
package main import ( "fmt" "strings" "github.com/aws/aws-lambda-go/events" "github.com/aws/aws-lambda-go/lambda" "github.com/rapidsai/rvc/pkg/rvc" ) func Handler(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) { path := request.Path version := request.PathParameters["version"] var matchingVersion string var err error if strings.HasPrefix(path, "/rapids/") { matchingVersion, err = rvc.GetUcxPyFromRapids(version) } else if strings.HasPrefix(path, "/ucx-py/") { matchingVersion, err = rvc.GetRapidsFromUcxPy(version) } else { errorMsg := fmt.Sprintf("Unexpected path \"%v\"", path) return events.APIGatewayProxyResponse{Body: errorMsg, StatusCode: 400}, nil } if err != nil { return events.APIGatewayProxyResponse{Body: err.Error(), StatusCode: 400}, nil } return events.APIGatewayProxyResponse{Body: matchingVersion, StatusCode: 200}, nil } func main() { lambda.Start(Handler) }
0
rapidsai_public_repos/rvc/cmd
rapidsai_public_repos/rvc/cmd/rvc_cli/rvc.go
package main import ( "flag" "fmt" "os" "github.com/rapidsai/rvc/pkg/rvc" "github.com/rapidsai/rvc/pkg/version" ) const ( ProgramName = "rvc" ) type Args struct { UcxPyVersion string RapidsVersion string Version bool } func initFlags(flagset *flag.FlagSet) *Args { args := &Args{} flagset.StringVar(&args.RapidsVersion, "rapids", "", "Rapids version") flagset.StringVar(&args.UcxPyVersion, "ucx-py", "", "ucx-py version") flagset.BoolVar(&args.Version, "version", false, "Display version and exit") return args } func main() { flags := flag.NewFlagSet(ProgramName, flag.ExitOnError) args := initFlags(flags) _ = flags.Parse(os.Args[1:]) if len(flags.Args()) > 0 { fmt.Printf("Unknown command line argument \"%v\"\n", flags.Args()[0]) flags.Usage() os.Exit(1) } if args.Version { fmt.Println(ProgramName, version.Get()) os.Exit(0) } if len(args.RapidsVersion) < 1 && len(args.UcxPyVersion) < 1 { flags.Usage() os.Exit(1) } if len(args.RapidsVersion) > 0 && len(args.UcxPyVersion) > 0 { fmt.Println("\"-rapids\" and \"-ucx-py\" parameters are mutually exclusives") os.Exit(1) } var version string var err error if len(args.RapidsVersion) > 1 { version, err = rvc.GetUcxPyFromRapids(args.RapidsVersion) } else { version, err = rvc.GetRapidsFromUcxPy(args.UcxPyVersion) } if err != nil { fmt.Println(err.Error()) os.Exit(1) } fmt.Print(version) }
0
rapidsai_public_repos/rvc/pkg
rapidsai_public_repos/rvc/pkg/version/version.go
package version const undefinedVersion string = "undefined" // Will be set at build time using ldflags var version = undefinedVersion func Get() string { return version }
0
rapidsai_public_repos/rvc/pkg
rapidsai_public_repos/rvc/pkg/rvc/rvc_test.go
package rvc import ( "testing" "github.com/stretchr/testify/require" ) func TestParseRapidsVersion(t *testing.T) { validVersions := []string{"v22.02", "v22.02.00", "v22.02.01", "22.02", "22.02.00", "22.02.01"} expected := "22.02" for _, version := range validVersions { v, err := parseRapidsVersion(version) require.NoError(t, err) require.Equal(t, v, expected) } invalidVersions := []string{"0.21", "v22.00", "v22.0", "22.0", "abc", "20.02"} for _, version := range invalidVersions { _, err := parseRapidsVersion(version) require.Error(t, err) } } func TestParseUcxPyVersion(t *testing.T) { validVersions := []string{"v0.21", "v0.21.0", "v0.21.1", "0.21", "0.21.0", "0.21.1"} expected := "0.21" for _, version := range validVersions { v, err := parseUcxPyVersion(version) require.NoError(t, err) require.Equal(t, v, expected) } invalidVersions := []string{"22.02", "v22.02", "v1.01", "1.01", "12", "abc", "0.0"} for _, version := range invalidVersions { _, err := parseUcxPyVersion(version) require.Error(t, err) } } func TestGetRapidsFromUcxPy(t *testing.T) { validVersions := map[string]string{ "v0.20": "21.06", "0.20": "21.06", "v0.20.0": "21.06", "0.20.0": "21.06", "v0.20.1": "21.06", "0.20.1": "21.06", } for version, expected := range validVersions { v, err := GetRapidsFromUcxPy(version) require.NoError(t, err) require.Equal(t, v, expected) } invalidVersions := []string{"v321.02", "abc", "15", "1.15", "v1.24", "0.60"} for _, version := range invalidVersions { _, err := GetRapidsFromUcxPy(version) require.Error(t, err) } } func TestGetUcxPyFromRapids(t *testing.T) { validVersions := map[string]string{ "v21.06": "0.20", "21.06": "0.20", "v21.06.0": "0.20", "21.06.0": "0.20", "v21.06.1": "0.20", "21.06.1": "0.20", } for version, expected := range validVersions { v, err := GetUcxPyFromRapids(version) require.NoError(t, err) require.Equal(t, v, expected) } invalidVersions := []string{"v21.00", "abc", "15", "1.15", "v1.24", "40.02"} for _, version := range invalidVersions { _, err := GetUcxPyFromRapids(version) require.Error(t, err) } }
0
rapidsai_public_repos/rvc/pkg
rapidsai_public_repos/rvc/pkg/rvc/rvc.go
package rvc import ( "fmt" "regexp" "strconv" "strings" ) const ( ucxPyVersionPattern = "^v?0*\\.[0-9]{1,2}(\\.[0-9]+)?$" rapidsVersionPattern = "^v?[0-9]{2}\\.[0-9]{2}(\\.[0-9]+)?$" ) var versionMapping = map[string]string{ "21.06": "0.20", "21.08": "0.21", "21.10": "0.22", "21.12": "0.23", "22.02": "0.24", "22.04": "0.25", "22.06": "0.26", "22.08": "0.27", "22.10": "0.28", "22.12": "0.29", "23.02": "0.30", "23.04": "0.31", "23.06": "0.32", "23.08": "0.33", "23.10": "0.34", "23.12": "0.35", "24.02": "0.36", "24.04": "0.37", "24.06": "0.38", "24.08": "0.39", "24.10": "0.40", "24.12": "0.41", } func GetUcxPyFromRapids(version string) (string, error) { parsedVersion, err := parseRapidsVersion(version) if err != nil { return "", err } if ucxPyVersion, ok := versionMapping[parsedVersion]; ok { return ucxPyVersion, nil } return "", fmt.Errorf("Ucx-py version not found for RAPIDS version %v", version) } func GetRapidsFromUcxPy(version string) (string, error) { parsedVersion, err := parseUcxPyVersion(version) if err != nil { return "", err } for rapidsVersion, ucxPyVersion := range versionMapping { if ucxPyVersion == parsedVersion { return rapidsVersion, nil } } return "", fmt.Errorf("RAPIDS version not found for ucx-py version %v", version) } func parseRapidsVersion(version string) (string, error) { rapidsRegex := regexp.MustCompile(rapidsVersionPattern) if !rapidsRegex.MatchString(version) { return "", fmt.Errorf("Version \"%v\" is not a RAPIDS version", version) } if version[0] == 'v' { version = version[1:] } split := strings.Split(version, ".") year, _ := strconv.Atoi(split[0]) if year < 21 { return "", fmt.Errorf("Year value \"%v\" must be greater than 21 for RAPIDS version \"%v\"", year, version) } month, _ := strconv.Atoi(split[1]) if month < 1 || month > 12 { return "", fmt.Errorf("Month value \"%v\" must be between 1 and 12 for RAPIDS version \"%v\"", month, version) } return fmt.Sprintf("%s.%s", split[0], split[1]), nil } func parseUcxPyVersion(version string) (string, error) { ucxPyRegex := regexp.MustCompile(ucxPyVersionPattern) if !ucxPyRegex.MatchString(version) { return "", fmt.Errorf("Version \"%v\" is not a ucx-py version", version) } if version[0] == 'v' { version = version[1:] } split := strings.Split(version, ".") minor, _ := strconv.Atoi(split[1]) if minor == 0 { return "", fmt.Errorf("Minor value \"%v\" must not be 0 for ucx-py version \"%v\"", minor, version) } return fmt.Sprintf("%s.%s", split[0], split[1]), nil }
0
rapidsai_public_repos/dask-build-environment
rapidsai_public_repos/dask-build-environment/dask/environment.yml
name: rapids channels: - rapidsai - rapidsai-nightly - conda-forge - nvidia dependencies: - cudatoolkit=CUDA_VER - cudf=RAPIDS_VER - dask-cudf=RAPIDS_VER - cupy - pynvml - ucx-proc=*=gpu - ucx-py=UCX_PY_VER
0
rapidsai_public_repos/dask-build-environment
rapidsai_public_repos/dask-build-environment/dask/Dockerfile
ARG CUDA_VER=11.5.2 ARG LINUX_VER=ubuntu20.04 ARG PYTHON_VER=3.9 FROM rapidsai/miniforge-cuda:cuda$CUDA_VER-base-$LINUX_VER-py$PYTHON_VER ARG CUDA_VER=11.5.2 ARG PYTHON_VER=3.9 ARG RAPIDS_VER=23.12 ARG UCX_PY_VER=0.35 COPY environment.yml /rapids.yml ADD https://raw.githubusercontent.com/dask/dask/main/continuous_integration/environment-$PYTHON_VER.yaml /dask.yml ADD https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz /tools.tar.gz RUN tar -xzvf /tools.tar.gz -C /usr/local/bin --strip-components=1 \ && rm /tools.tar.gz RUN conda config --set ssl_verify false RUN rapids-mamba-retry install conda-merge git RUN cat /rapids.yml \ | sed -r "s/CUDA_VER/$(echo $CUDA_VER | cut -d. -f1,2)/g" \ | sed -r "s/RAPIDS_VER/${RAPIDS_VER}/g" \ | sed -r "s/UCX_PY_VER/${UCX_PY_VER}/g" \ > /rapids_pinned.yml # need to unpin numpy & pyarrow in python 3.8 environment RUN cat /dask.yml \ | sed -r "s/pyarrow=/pyarrow>=/g" \ > dask_unpinned.yml RUN conda-merge /rapids_pinned.yml /dask_unpinned.yml > /dask.yml RUN rapids-mamba-retry env create -n dask --file /dask.yml # Clean up pkgs to reduce image size and chmod for all users RUN chmod -R ugo+rw /opt/conda \ && conda clean -tipy \ && chmod -R ugo+rw /opt/conda # need a user with access to conda RUN useradd -r -g conda -u 10000 dask CMD [ "/bin/bash" ]
0
rapidsai_public_repos/dask-build-environment
rapidsai_public_repos/dask-build-environment/dask_image/environment.yml
name: rapids channels: - rapidsai - rapidsai-nightly - conda-forge - nvidia dependencies: - cudatoolkit=CUDA_VER
0
rapidsai_public_repos/dask-build-environment
rapidsai_public_repos/dask-build-environment/dask_image/Dockerfile
ARG CUDA_VER=11.5.2 ARG LINUX_VER=ubuntu20.04 ARG PYTHON_VER=3.9 FROM rapidsai/miniforge-cuda:cuda$CUDA_VER-base-$LINUX_VER-py$PYTHON_VER ARG CUDA_VER=11.5.2 ARG PYTHON_VER=3.9 # RAPIDS_VER isn't used but is part of the matrix so must be included ARG RAPIDS_VER=23.12 COPY environment.yml /rapids.yml ADD https://raw.githubusercontent.com/dask/dask-image/main/continuous_integration/environment-$PYTHON_VER.yml /dask.yml ADD https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz /tools.tar.gz RUN tar -xzvf /tools.tar.gz -C /usr/local/bin --strip-components=1 \ && rm /tools.tar.gz RUN conda config --set ssl_verify false RUN rapids-mamba-retry install conda-merge git RUN cat /rapids.yml \ | sed -r "s/CUDA_VER/$(echo $CUDA_VER | cut -d. -f1,2)/g" \ > /rapids_pinned.yml RUN conda-merge /rapids_pinned.yml /dask.yml > /dask_image.yml RUN rapids-mamba-retry env create -n dask_image --file /dask_image.yml # Clean up pkgs to reduce image size and chmod for all users RUN chmod -R ugo+rw /opt/conda \ && conda clean -tipy \ && chmod -R ugo+rw /opt/conda # need a user with access to conda RUN useradd -r -g conda -u 10000 dask CMD [ "/bin/bash" ]
0
rapidsai_public_repos/dask-build-environment
rapidsai_public_repos/dask-build-environment/distributed/environment.yml
name: rapids channels: - rapidsai - rapidsai-nightly - conda-forge - nvidia - pytorch dependencies: - c-compiler # needed for source installation of crick - cudatoolkit=CUDA_VER - cudf=RAPIDS_VER - dask-cudf=RAPIDS_VER - dask-cuda=RAPIDS_VER - cupy - pynvml - pytorch=*=*cudaCUDA_VER* - ucx-proc=*=gpu - ucx-py=UCX_PY_VER
0
rapidsai_public_repos/dask-build-environment
rapidsai_public_repos/dask-build-environment/distributed/Dockerfile
ARG CUDA_VER=11.5.2 ARG LINUX_VER=ubuntu20.04 ARG PYTHON_VER=3.9 FROM rapidsai/miniforge-cuda:cuda$CUDA_VER-base-$LINUX_VER-py$PYTHON_VER ARG CUDA_VER=11.5.2 ARG PYTHON_VER=3.9 ARG RAPIDS_VER=23.12 ARG UCX_PY_VER=0.35 COPY environment.yml /rapids.yml ADD https://raw.githubusercontent.com/dask/distributed/main/continuous_integration/environment-$PYTHON_VER.yaml /dask.yml ADD https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz /tools.tar.gz RUN tar -xzvf /tools.tar.gz -C /usr/local/bin --strip-components=1 \ && rm /tools.tar.gz RUN conda config --set ssl_verify false RUN rapids-mamba-retry install conda-merge git RUN cat /rapids.yml \ | sed -r "s/CUDA_VER/$(echo $CUDA_VER | cut -d. -f1,2)/g" \ | sed -r "s/RAPIDS_VER/${RAPIDS_VER}/g" \ | sed -r "s/UCX_PY_VER/${UCX_PY_VER}/g" \ > /rapids_pinned.yml # need to unpin pyarrow in python 3.9 environment RUN cat /dask.yml \ | sed -r "s/pyarrow=/pyarrow>=/g" \ > dask_unpinned.yml RUN conda-merge /rapids_pinned.yml /dask_unpinned.yml > /distributed.yml RUN rapids-mamba-retry env create -n dask --file /distributed.yml # Clean up pkgs to reduce image size and chmod for all users RUN chmod -R ugo+rw /opt/conda \ && conda clean -tipy \ && chmod -R ugo+rw /opt/conda # need a user with access to conda RUN useradd -r -g conda -u 10000 dask CMD [ "/bin/bash" ]
0
rapidsai_public_repos/dask-build-environment/ci
rapidsai_public_repos/dask-build-environment/ci/gpuci/run.sh
#!/bin/bash set -e # Overwrite HOME to WORKSPACE export HOME="$WORKSPACE" # Install gpuCI tools rm -rf .gpuci git clone https://github.com/rapidsai/gpuci-tools.git .gpuci chmod +x .gpuci/tools/* export PATH="$PWD/.gpuci/tools:$PATH" # Show env gpuci_logger "Exposing current environment..." env # Login to docker gpuci_logger "Logging into Docker..." echo $DH_TOKEN | docker login --username $DH_USER --password-stdin &> /dev/null # Setup BUILD_TAG case ${BUILD_NAME} in "dask_image") # doesn't depend on RAPIDS for gpuCI BUILD_TAG="cuda${CUDA_VER}-devel-${LINUX_VER}-py${PYTHON_VER}" ;; *) BUILD_TAG="${RAPIDS_VER}-cuda${CUDA_VER}-devel-${LINUX_VER}-py${PYTHON_VER}" ;; esac # Setup BUILD_ARGS case $RAPIDS_VER in "23.12") UCX_PY_VER="0.35" ;; "24.02") UCX_PY_VER="0.36" ;; *) echo "Unrecognized RAPIDS_VER: ${RAPIDS_VER}" exit 1 ;; esac BUILD_IMAGE="gpuci/${BUILD_NAME}" BUILD_DIR="${WORKSPACE}/${BUILD_NAME}" # Setup BUILD_TAG and BUILD_ARGS case ${BUILD_NAME} in "dask_image") # doesn't depend on RAPIDS / ucx-py for gpuCI BUILD_TAG="cuda${CUDA_VER}-devel-${LINUX_VER}-py${PYTHON_VER}" BUILD_ARGS="--squash --build-arg RAPIDS_VER=$RAPIDS_VER --build-arg CUDA_VER=$CUDA_VER --build-arg LINUX_VER=$LINUX_VER --build-arg PYTHON_VER=$PYTHON_VER" ;; *) BUILD_TAG="${RAPIDS_VER}-cuda${CUDA_VER}-devel-${LINUX_VER}-py${PYTHON_VER}" BUILD_ARGS="--squash --build-arg RAPIDS_VER=$RAPIDS_VER --build-arg UCX_PY_VER=$UCX_PY_VER --build-arg CUDA_VER=$CUDA_VER --build-arg LINUX_VER=$LINUX_VER --build-arg PYTHON_VER=$PYTHON_VER" ;; esac # Output build config gpuci_logger "Build config info..." echo "Build image and tag: ${BUILD_IMAGE}:${BUILD_TAG}" echo "Build args: ${BUILD_ARGS}" gpuci_logger "Docker build command..." echo "docker build --pull -t ${BUILD_IMAGE}:${BUILD_TAG} ${BUILD_ARGS} ${BUILD_DIR}" # Build image gpuci_logger "Starting build..." GPUCI_RETRY_MAX=1 GPUCI_RETRY_SLEEP=120 gpuci_retry docker build --pull -t ${BUILD_IMAGE}:${BUILD_TAG} ${BUILD_ARGS} ${BUILD_DIR} # List image info gpuci_logger "Displaying image info..." docker images ${BUILD_IMAGE}:${BUILD_TAG} # Upload image gpuci_logger "Starting upload..." GPUCI_RETRY_MAX=5 GPUCI_RETRY_SLEEP=120 gpuci_retry docker push ${BUILD_IMAGE}:${BUILD_TAG} # Logout of docker gpuci_logger "Logout of Docker..." docker logout # Clean up build gpuci_logger "Clean up docker builds on system..." docker system df docker system prune --volumes -f docker system df
0
rapidsai_public_repos/dask-build-environment/ci
rapidsai_public_repos/dask-build-environment/ci/axis/dask.yaml
BUILD_NAME: - dask - distributed - dask_sql - dask_image CUDA_VER: - '11.5.2' PYTHON_VER: - '3.9' - '3.10' LINUX_VER: - ubuntu20.04 RAPIDS_VER: - '23.12' - '24.02' excludes: # dask-image gpuCI isn't dependent on RAPIDS - BUILD_NAME: dask_image RAPIDS_VER: '23.12'
0
rapidsai_public_repos/dask-build-environment
rapidsai_public_repos/dask-build-environment/dask_sql/environment.yml
name: rapids channels: - rapidsai - rapidsai-nightly - conda-forge - nvidia dependencies: - cudatoolkit=CUDA_VER - cudf=RAPIDS_VER - cuml=RAPIDS_VER - dask-cudf=RAPIDS_VER - dask-cuda=RAPIDS_VER - ucx-proc=*=gpu - ucx-py=UCX_PY_VER - xgboost=*=rapidsai_py* - libxgboost=*=rapidsai_h*
0
rapidsai_public_repos/dask-build-environment
rapidsai_public_repos/dask-build-environment/dask_sql/Dockerfile
ARG CUDA_VER=11.5.2 ARG LINUX_VER=ubuntu20.04 ARG PYTHON_VER=3.9 FROM rapidsai/miniforge-cuda:cuda$CUDA_VER-base-$LINUX_VER-py$PYTHON_VER ARG CUDA_VER=11.5.2 ARG PYTHON_VER=3.9 ARG RAPIDS_VER=23.12 ARG UCX_PY_VER=0.35 RUN apt-get update \ && apt-get install -y wget ENV RUSTUP_HOME="/opt/rustup" ENV CARGO_HOME="/opt/cargo" ADD https://sh.rustup.rs /rustup-init.sh RUN sh /rustup-init.sh -y --default-toolchain=stable --profile=minimal -c rustfmt \ && chmod -R ugo+rw /opt/cargo /opt/rustup COPY environment.yml /rapids.yml ADD https://raw.githubusercontent.com/dask-contrib/dask-sql/main/continuous_integration/environment-$PYTHON_VER-dev.yaml /dask.yml ADD https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz /tools.tar.gz RUN tar -xzvf /tools.tar.gz -C /usr/local/bin --strip-components=1 \ && rm /tools.tar.gz RUN conda config --set ssl_verify false RUN rapids-mamba-retry install conda-merge git RUN cat /rapids.yml \ | sed -r "s/CUDA_VER/$(echo $CUDA_VER | cut -d. -f1,2)/g" \ | sed -r "s/RAPIDS_VER/${RAPIDS_VER}/g" \ | sed -r "s/UCX_PY_VER/${UCX_PY_VER}/g" \ > /rapids_pinned.yml # need to unpin dask, pyarrow, and uvicorn in python 3.9 environment RUN cat /dask.yml \ | sed -r "s/libprotobuf=/libprotobuf>=/g" \ | sed -r "s/pyarrow=/pyarrow>=/g" \ | sed -r "s/uvicorn=/uvicorn>=/g" \ | sed -r "s/dask=/dask>=/g" \ > /dask_unpinned.yml RUN conda-merge /rapids_pinned.yml /dask_unpinned.yml > /dask_sql.yml RUN rapids-mamba-retry env create -n dask_sql --file /dask_sql.yml # Clean up pkgs to reduce image size and chmod for all users RUN chmod -R ugo+rw /opt/conda \ && conda clean -tipy \ && chmod -R ugo+rw /opt/conda # need a user with access to conda RUN useradd -r -g conda -u 10000 dask CMD [ "/bin/bash" ]
0
rapidsai_public_repos
rapidsai_public_repos/raft/.pre-commit-config.yaml
# Copyright (c) 2022-2023, NVIDIA CORPORATION. repos: - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: - id: isort # Use the config file specific to each subproject so that each # project can specify its own first/third-party packages. args: ["--config-root=python/", "--resolve-all-configs"] files: python/.* types_or: [python, cython, pyi] - repo: https://github.com/psf/black rev: 22.3.0 hooks: - id: black files: python/.* # Explicitly specify the pyproject.toml at the repo root, not per-project. args: ["--config", "pyproject.toml"] - repo: https://github.com/PyCQA/flake8 rev: 5.0.4 hooks: - id: flake8 args: ["--config=.flake8"] files: python/.*$ types: [file] types_or: [python, cython] additional_dependencies: ["flake8-force"] - repo: https://github.com/pre-commit/mirrors-mypy rev: 'v0.971' hooks: - id: mypy additional_dependencies: [types-cachetools] args: ["--config-file=pyproject.toml", "python/pylibraft/pylibraft", "python/raft-dask/raft_dask"] pass_filenames: false - repo: https://github.com/PyCQA/pydocstyle rev: 6.1.1 hooks: - id: pydocstyle # https://github.com/PyCQA/pydocstyle/issues/603 additional_dependencies: [toml] args: ["--config=pyproject.toml"] - repo: https://github.com/pre-commit/mirrors-clang-format rev: v16.0.6 hooks: - id: clang-format types_or: [c, c++, cuda] args: ["-fallback-style=none", "-style=file", "-i"] exclude: cpp/include/raft/thirdparty/.* - repo: local hooks: - id: no-deprecationwarning name: no-deprecationwarning description: 'Enforce that DeprecationWarning is not introduced (use FutureWarning instead)' entry: '(category=|\s)DeprecationWarning[,)]' language: pygrep types_or: [python, cython] - id: cmake-format name: cmake-format entry: ./cpp/scripts/run-cmake-format.sh cmake-format language: python types: [cmake] exclude: .*/thirdparty/.*|.*FindAVX.cmake.* # Note that pre-commit autoupdate does not update the versions # of dependencies, so we'll have to update this manually. additional_dependencies: - cmakelang==0.6.13 verbose: true require_serial: true - id: cmake-lint name: cmake-lint entry: ./cpp/scripts/run-cmake-format.sh cmake-lint language: python types: [cmake] # Note that pre-commit autoupdate does not update the versions # of dependencies, so we'll have to update this manually. additional_dependencies: - cmakelang==0.6.13 verbose: true require_serial: true exclude: .*/thirdparty/.* - id: copyright-check name: copyright-check entry: python ./ci/checks/copyright.py --git-modified-only --update-current-year language: python pass_filenames: false additional_dependencies: [gitpython] - id: include-check name: include-check entry: python ./cpp/scripts/include_checker.py cpp/bench cpp/include cpp/test pass_filenames: false language: python additional_dependencies: [gitpython] - repo: https://github.com/codespell-project/codespell rev: v2.2.2 hooks: - id: codespell additional_dependencies: [tomli] args: ["--toml", "pyproject.toml"] exclude: (?x)^(^CHANGELOG.md$) - repo: https://github.com/rapidsai/dependency-file-generator rev: v1.5.1 hooks: - id: rapids-dependency-file-generator args: ["--clean"] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - id: check-json default_language_version: python: python3
0
rapidsai_public_repos
rapidsai_public_repos/raft/setup.cfg
# Copyright (c) 2022-2023, NVIDIA CORPORATION. [flake8] filename = *.py, *.pyx, *.pxd, *.pxi exclude = __init__.py, *.egg, build, docs, .git force-check = True ignore = # line break before binary operator W503, # whitespace before : E203 per-file-ignores = # Rules ignored only in Cython: # E211: whitespace before '(' (used in multi-line imports) # E225: Missing whitespace around operators (breaks cython casting syntax like <int>) # E226: Missing whitespace around arithmetic operators (breaks cython pointer syntax like int*) # E227: Missing whitespace around bitwise or shift operator (Can also break casting syntax) # E275: Missing whitespace after keyword (Doesn't work with Cython except?) # E402: invalid syntax (works for Python, not Cython) # E999: invalid syntax (works for Python, not Cython) # W504: line break after binary operator (breaks lines that end with a pointer) *.pyx: E211, E225, E226, E227, E275, E402, E999, W504 *.pxd: E211, E225, E226, E227, E275, E402, E999, W504 *.pxi: E211, E225, E226, E227, E275, E402, E999, W504 [pydocstyle] # Due to https://github.com/PyCQA/pydocstyle/issues/363, we must exclude rather # than include using match-dir. Note that as discussed in # https://stackoverflow.com/questions/65478393/how-to-filter-directories-using-the-match-dir-flag-for-pydocstyle, # unlike the match option above this match-dir will have no effect when # pydocstyle is invoked from pre-commit. Therefore this exclusion list must # also be maintained in the pre-commit config file. match-dir = ^(?!(ci|cpp|conda|docs|java|notebooks)).*$ # Allow missing docstrings for docutils ignore-decorators = .*(docutils|doc_apply|copy_docstring).* select = D201, D204, D206, D207, D208, D209, D210, D211, D214, D215, D300, D301, D302, D403, D405, D406, D407, D408, D409, D410, D411, D412, D414, D418 # Would like to enable the following rules in the future: # D200, D202, D205, D400 [mypy] ignore_missing_imports = True # If we don't specify this, then mypy will check excluded files if # they are imported by a checked file. follow_imports = skip [codespell] # note: pre-commit passes explicit lists of files here, which this skip file list doesn't override - # this is only to allow you to run codespell interactively skip = ./.git,./.github,./cpp/build,.*egg-info.*,./.mypy_cache,.*_skbuild # ignore short words, and typename parameters like OffsetT ignore-regex = \b(.{1,4}|[A-Z]\w*T)\b ignore-words-list = inout,unparseable,numer builtin = clear quiet-level = 3
0
rapidsai_public_repos
rapidsai_public_repos/raft/pyproject.toml
[tool.black] line-length = 79 target-version = ["py39"] include = '\.py?$' force-exclude = ''' /( thirdparty | \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | _build | buck-out | build | dist )/ ''' [tool.pydocstyle] # Due to https://github.com/PyCQA/pydocstyle/issues/363, we must exclude rather # than include using match-dir. Note that as discussed in # https://stackoverflow.com/questions/65478393/how-to-filter-directories-using-the-match-dir-flag-for-pydocstyle, # unlike the match option above this match-dir will have no effect when # pydocstyle is invoked from pre-commit. Therefore this exclusion list must # also be maintained in the pre-commit config file. match-dir = "^(?!(ci|cpp|conda|docs)).*$" select = "D201, D204, D206, D207, D208, D209, D210, D211, D214, D215, D300, D301, D302, D403, D405, D406, D407, D408, D409, D410, D411, D412, D414, D418" # Would like to enable the following rules in the future: # D200, D202, D205, D400 [tool.mypy] ignore_missing_imports = true # If we don't specify this, then mypy will check excluded files if # they are imported by a checked file. follow_imports = "skip" [tool.codespell] # note: pre-commit passes explicit lists of files here, which this skip file list doesn't override - # this is only to allow you to run codespell interactively skip = "./.git,./.github,./cpp/build,.*egg-info.*,./.mypy_cache,.*_skbuild" # ignore short words, and typename parameters like OffsetT ignore-regex = "\\b(.{1,4}|[A-Z]\\w*T)\\b" ignore-words-list = "inout,numer" builtin = "clear" quiet-level = 3
0
rapidsai_public_repos
rapidsai_public_repos/raft/.flake8
# Copyright (c) 2022-2023, NVIDIA CORPORATION. [flake8] filename = *.py, *.pyx, *.pxd, *.pxi exclude = __init__.py, *.egg, build, docs, .git force-check = True ignore = # line break before binary operator W503, # whitespace before : E203 per-file-ignores = # Rules ignored only in Cython: # E211: whitespace before '(' (used in multi-line imports) # E225: Missing whitespace around operators (breaks cython casting syntax like <int>) # E226: Missing whitespace around arithmetic operators (breaks cython pointer syntax like int*) # E227: Missing whitespace around bitwise or shift operator (Can also break casting syntax) # E275: Missing whitespace after keyword (Doesn't work with Cython except?) # E402: invalid syntax (works for Python, not Cython) # E999: invalid syntax (works for Python, not Cython) # W504: line break after binary operator (breaks lines that end with a pointer) *.pyx: E211, E225, E226, E227, E275, E402, E999, W504 *.pxd: E211, E225, E226, E227, E275, E402, E999, W504 *.pxi: E211, E225, E226, E227, E275, E402, E999, W504
0
rapidsai_public_repos
rapidsai_public_repos/raft/fetch_rapids.cmake
# ============================================================================= # Copyright (c) 2022-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software distributed under the License # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under # the License. # ============================================================================= if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake) file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-24.02/RAPIDS.cmake ${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake ) endif() include(${CMAKE_CURRENT_BINARY_DIR}/RAFT_RAPIDS.cmake)
0
rapidsai_public_repos
rapidsai_public_repos/raft/README.md
# <div align="left"><img src="https://rapids.ai/assets/images/rapids_logo.png" width="90px"/>&nbsp;RAFT: Reusable Accelerated Functions and Tools for Vector Search and More</div> ![RAFT tech stack](img/raft-tech-stack-vss.png) ## Contents <hr> 1. [Useful Resources](#useful-resources) 2. [What is RAFT?](#what-is-raft) 2. [Use cases](#use-cases) 3. [Is RAFT right for me?](#is-raft-right-for-me) 4. [Getting Started](#getting-started) 5. [Installing RAFT](#installing) 6. [Codebase structure and contents](#folder-structure-and-contents) 7. [Contributing](#contributing) 8. [References](#references) <hr> ## Useful Resources - [RAFT Reference Documentation](https://docs.rapids.ai/api/raft/stable/): API Documentation. - [RAFT Getting Started](./docs/source/quick_start.md): Getting started with RAFT. - [Build and Install RAFT](./docs/source/build.md): Instructions for installing and building RAFT. - [Example Notebooks](./notebooks): Example jupyer notebooks - [RAPIDS Community](https://rapids.ai/community.html): Get help, contribute, and collaborate. - [GitHub repository](https://github.com/rapidsai/raft): Download the RAFT source code. - [Issue tracker](https://github.com/rapidsai/raft/issues): Report issues or request features. ## What is RAFT? RAFT contains fundamental widely-used algorithms and primitives for machine learning and information retrieval. The algorithms are CUDA-accelerated and form building blocks for more easily writing high performance applications. By taking a primitives-based approach to algorithm development, RAFT - accelerates algorithm construction time - reduces the maintenance burden by maximizing reuse across projects, and - centralizes core reusable computations, allowing future optimizations to benefit all algorithms that use them. While not exhaustive, the following general categories help summarize the accelerated functions in RAFT: ##### | Category | Accelerated Functions in RAFT | |-----------------------|-----------------------------------------------------------------------------------------------------------------------------------| | **Nearest Neighbors** | vector search, neighborhood graph construction, epsilon neighborhoods, pairwise distances | | **Basic Clustering** | spectral clustering, hierarchical clustering, k-means | | **Solvers** | combinatorial optimization, iterative solvers | | **Data Formats** | sparse & dense, conversions, data generation | | **Dense Operations** | linear algebra, matrix and vector operations, reductions, slicing, norms, factorization, least squares, svd & eigenvalue problems | | **Sparse Operations** | linear algebra, eigenvalue problems, slicing, norms, reductions, factorization, symmetrization, components & labeling | | **Statistics** | sampling, moments and summary statistics, metrics, model evaluation | | **Tools & Utilities** | common tools and utilities for developing CUDA applications, multi-node multi-gpu infrastructure | RAFT is a C++ header-only template library with an optional shared library that 1) can speed up compile times for common template types, and 2) provides host-accessible "runtime" APIs, which don't require a CUDA compiler to use In addition being a C++ library, RAFT also provides 2 Python libraries: - `pylibraft` - lightweight Python wrappers around RAFT's host-accessible "runtime" APIs. - `raft-dask` - multi-node multi-GPU communicator infrastructure for building distributed algorithms on the GPU with Dask. ![RAFT is a C++ header-only template library with optional shared library and lightweight Python wrappers](img/arch.png) ## Use cases ### Vector Similarity Search RAFT contains state-of-the-art implementations of approximate nearest neighbors search (ANNS) algorithms on the GPU, such as: * [Brute force](https://docs.rapids.ai/api/raft/nightly/pylibraft_api/neighbors/#brute-force). Performs a brute force nearest neighbors search without an index. * [IVF-Flat](https://docs.rapids.ai/api/raft/nightly/pylibraft_api/neighbors/#ivf-flat) and [IVF-PQ](https://docs.rapids.ai/api/raft/nightly/pylibraft_api/neighbors/#ivf-pq). Use an inverted file index structure to map contents to their locations. IVF-PQ additionally uses product quantization to reduce the memory usage of vectors. These methods were originally popularized by the [FAISS](https://github.com/facebookresearch/faiss) library. * [CAGRA](https://docs.rapids.ai/api/raft/nightly/pylibraft_api/neighbors/#cagra) (Cuda Anns GRAph-based). Uses a fast ANNS graph construction and search implementation optimized for the GPU. CAGRA outperforms state-of-the art CPU methods (i.e. HNSW) for large batch queries, single queries, and graph construction time. Projects that use the RAFT ANNS algorithms for accelerating vector search include: [Milvus](https://milvus.io/), [Redis](https://redis.io/), and [Faiss](https://github.com/facebookresearch/faiss). Please see the example [Jupyter notebook](https://github.com/rapidsai/raft/blob/HEAD/notebooks/VectorSearch_QuestionRetrieval.ipynb) to get started RAFT for vector search in Python. ### Information Retrieval RAFT contains a catalog of reusable primitives for composing algorithms that require fast neighborhood computations, such as 1. Computing distances between vectors and computing kernel gramm matrices 2. Performing ball radius queries for constructing epsilon neighborhoods 3. Clustering points to partition a space for smaller and faster searches 4. Constructing neighborhood "connectivities" graphs from dense vectors ### Machine Learning RAFT's primitives are used in several RAPIDS libraries, including [cuML](https://github.com/rapidsai/cuml), [cuGraph](https://github.com/rapidsai/cugraph), and [cuOpt](https://github.com/rapidsai/cuopt) to build many end-to-end machine learning algorithms that span a large spectrum of different applications, including - data generation - model evaluation - classification and regression - clustering - manifold learning - dimensionality reduction. RAFT is also used by the popular collaborative filtering library [implicit](https://github.com/benfred/implicit) for recommender systems. ## Is RAFT right for me? RAFT contains low-level primitives for accelerating applications and workflows. Data source providers and application developers may find specific tools -- like ANN algorithms -- very useful. RAFT is not intended to be used directly by data scientists for discovery and experimentation. For data science tools, please see the [RAPIDS website](https://rapids.ai/). ## Getting started ### RAPIDS Memory Manager (RMM) RAFT relies heavily on RMM which eases the burden of configuring different allocation strategies globally across the libraries that use it. ### Multi-dimensional Arrays The APIs in RAFT accept the [mdspan](https://arxiv.org/abs/2010.06474) multi-dimensional array view for representing data in higher dimensions similar to the `ndarray` in the Numpy Python library. RAFT also contains the corresponding owning `mdarray` structure, which simplifies the allocation and management of multi-dimensional data in both host and device (GPU) memory. The `mdarray` forms a convenience layer over RMM and can be constructed in RAFT using a number of different helper functions: ```c++ #include <raft/core/device_mdarray.hpp> int n_rows = 10; int n_cols = 10; auto scalar = raft::make_device_scalar<float>(handle, 1.0); auto vector = raft::make_device_vector<float>(handle, n_cols); auto matrix = raft::make_device_matrix<float>(handle, n_rows, n_cols); ``` ### C++ Example Most of the primitives in RAFT accept a `raft::device_resources` object for the management of resources which are expensive to create, such CUDA streams, stream pools, and handles to other CUDA libraries like `cublas` and `cusolver`. The example below demonstrates creating a RAFT handle and using it with `device_matrix` and `device_vector` to allocate memory, generating random clusters, and computing pairwise Euclidean distances: ```c++ #include <raft/core/device_resources.hpp> #include <raft/core/device_mdarray.hpp> #include <raft/random/make_blobs.cuh> #include <raft/distance/distance.cuh> raft::device_resources handle; int n_samples = 5000; int n_features = 50; auto input = raft::make_device_matrix<float, int>(handle, n_samples, n_features); auto labels = raft::make_device_vector<int, int>(handle, n_samples); auto output = raft::make_device_matrix<float, int>(handle, n_samples, n_samples); raft::random::make_blobs(handle, input.view(), labels.view()); auto metric = raft::distance::DistanceType::L2SqrtExpanded; raft::distance::pairwise_distance(handle, input.view(), input.view(), output.view(), metric); ``` It's also possible to create `raft::device_mdspan` views to invoke the same API with raw pointers and shape information: ```c++ #include <raft/core/device_resources.hpp> #include <raft/core/device_mdspan.hpp> #include <raft/random/make_blobs.cuh> #include <raft/distance/distance.cuh> raft::device_resources handle; int n_samples = 5000; int n_features = 50; float *input; int *labels; float *output; ... // Allocate input, labels, and output pointers ... auto input_view = raft::make_device_matrix_view(input, n_samples, n_features); auto labels_view = raft::make_device_vector_view(labels, n_samples); auto output_view = raft::make_device_matrix_view(output, n_samples, n_samples); raft::random::make_blobs(handle, input_view, labels_view); auto metric = raft::distance::DistanceType::L2SqrtExpanded; raft::distance::pairwise_distance(handle, input_view, input_view, output_view, metric); ``` ### Python Example The `pylibraft` package contains a Python API for RAFT algorithms and primitives. `pylibraft` integrates nicely into other libraries by being very lightweight with minimal dependencies and accepting any object that supports the `__cuda_array_interface__`, such as [CuPy's ndarray](https://docs.cupy.dev/en/stable/user_guide/interoperability.html#rmm). The number of RAFT algorithms exposed in this package is continuing to grow from release to release. The example below demonstrates computing the pairwise Euclidean distances between CuPy arrays. Note that CuPy is not a required dependency for `pylibraft`. ```python import cupy as cp from pylibraft.distance import pairwise_distance n_samples = 5000 n_features = 50 in1 = cp.random.random_sample((n_samples, n_features), dtype=cp.float32) in2 = cp.random.random_sample((n_samples, n_features), dtype=cp.float32) output = pairwise_distance(in1, in2, metric="euclidean") ``` The `output` array in the above example is of type `raft.common.device_ndarray`, which supports [__cuda_array_interface__](https://numba.pydata.org/numba-doc/dev/cuda/cuda_array_interface.html#cuda-array-interface-version-2) making it interoperable with other libraries like CuPy, Numba, PyTorch and RAPIDS cuDF that also support it. CuPy supports DLPack, which also enables zero-copy conversion from `raft.common.device_ndarray` to JAX and Tensorflow. Below is an example of converting the output `pylibraft.device_ndarray` to a CuPy array: ```python cupy_array = cp.asarray(output) ``` And converting to a PyTorch tensor: ```python import torch torch_tensor = torch.as_tensor(output, device='cuda') ``` Or converting to a RAPIDS cuDF dataframe: ```python cudf_dataframe = cudf.DataFrame(output) ``` When the corresponding library has been installed and available in your environment, this conversion can also be done automatically by all RAFT compute APIs by setting a global configuration option: ```python import pylibraft.config pylibraft.config.set_output_as("cupy") # All compute APIs will return cupy arrays pylibraft.config.set_output_as("torch") # All compute APIs will return torch tensors ``` You can also specify a `callable` that accepts a `pylibraft.common.device_ndarray` and performs a custom conversion. The following example converts all output to `numpy` arrays: ```python pylibraft.config.set_output_as(lambda device_ndarray: return device_ndarray.copy_to_host()) ``` `pylibraft` also supports writing to a pre-allocated output array so any `__cuda_array_interface__` supported array can be written to in-place: ```python import cupy as cp from pylibraft.distance import pairwise_distance n_samples = 5000 n_features = 50 in1 = cp.random.random_sample((n_samples, n_features), dtype=cp.float32) in2 = cp.random.random_sample((n_samples, n_features), dtype=cp.float32) output = cp.empty((n_samples, n_samples), dtype=cp.float32) pairwise_distance(in1, in2, out=output, metric="euclidean") ``` ## Installing RAFT's C++ and Python libraries can both be installed through Conda and the Python libraries through Pip. ### Installing C++ and Python through Conda The easiest way to install RAFT is through conda and several packages are provided. - `libraft-headers` C++ headers - `libraft` (optional) C++ shared library containing pre-compiled template instantiations and runtime API. - `pylibraft` (optional) Python library - `raft-dask` (optional) Python library for deployment of multi-node multi-GPU algorithms that use the RAFT `raft::comms` abstraction layer in Dask clusters. - `raft-ann-bench` (optional) Benchmarking tool for easily producing benchmarks that compare RAFT's vector search algorithms against other state-of-the-art implementations. - `raft-ann-bench-cpu` (optional) Reproducible benchmarking tool similar to above, but doesn't require CUDA to be installed on the machine. Can be used to test in environments with competitive CPUs. Use the following command, depending on your CUDA version, to install all of the RAFT packages with conda (replace `rapidsai` with `rapidsai-nightly` to install more up-to-date but less stable nightly packages). `mamba` is preferred over the `conda` command. ```bash # for CUDA 11.8 mamba install -c rapidsai -c conda-forge -c nvidia raft-dask pylibraft cuda-version=11.8 ``` ```bash # for CUDA 12.0 mamba install -c rapidsai -c conda-forge -c nvidia raft-dask pylibraft cuda-version=12.0 ``` Note that the above commands will also install `libraft-headers` and `libraft`. You can also install the conda packages individually using the `mamba` command above. For example, if you'd like to install RAFT's headers and pre-compiled shared library to use in your project: ```bash # for CUDA 12.0 mamba install -c rapidsai -c conda-forge -c nvidia libraft libraft-headers cuda-version=12.0 ``` If installing the C++ APIs please see [using libraft](https://docs.rapids.ai/api/raft/nightly/using_libraft/) for more information on using the pre-compiled shared library. You can also refer to the [example C++ template project](https://github.com/rapidsai/raft/tree/branch-24.02/cpp/template) for a ready-to-go CMake configuration that you can drop into your project and build against installed RAFT development artifacts above. ### Installing Python through Pip `pylibraft` and `raft-dask` both have experimental packages that can be [installed through pip](https://rapids.ai/pip.html#install): ```bash pip install pylibraft-cu11 --extra-index-url=https://pypi.nvidia.com pip install raft-dask-cu11 --extra-index-url=https://pypi.nvidia.com ``` These packages statically build RAFT's pre-compiled instantiations and so the C++ headers and pre-compiled shared library won't be readily available to use in your code. The [build instructions](https://docs.rapids.ai/api/raft/nightly/build/) contain more details on building RAFT from source and including it in downstream projects. You can also find a more comprehensive version of the above CPM code snippet the [Building RAFT C++ and Python from source](https://docs.rapids.ai/api/raft/nightly/build/#building-c-and-python-from-source) section of the build instructions. You can find an example [RAFT project template](cpp/template/README.md) in the `cpp/template` directory, which demonstrates how to build a new application with RAFT or incorporate RAFT into an existing CMake project. ## Contributing If you are interested in contributing to the RAFT project, please read our [Contributing guidelines](docs/source/contributing.md). Refer to the [Developer Guide](docs/source/developer_guide.md) for details on the developer guidelines, workflows, and principals. ## References When citing RAFT generally, please consider referencing this Github project. ```bibtex @misc{rapidsai, title={Rapidsai/raft: RAFT contains fundamental widely-used algorithms and primitives for data science, Graph and machine learning.}, url={https://github.com/rapidsai/raft}, journal={GitHub}, publisher={Nvidia RAPIDS}, author={Rapidsai}, year={2022} } ``` If citing the sparse pairwise distances API, please consider using the following bibtex: ```bibtex @article{nolet2021semiring, title={Semiring primitives for sparse neighborhood methods on the gpu}, author={Nolet, Corey J and Gala, Divye and Raff, Edward and Eaton, Joe and Rees, Brad and Zedlewski, John and Oates, Tim}, journal={arXiv preprint arXiv:2104.06357}, year={2021} } ``` If citing the single-linkage agglomerative clustering APIs, please consider the following bibtex: ```bibtex @misc{nolet2023cuslink, title={cuSLINK: Single-linkage Agglomerative Clustering on the GPU}, author={Corey J. Nolet and Divye Gala and Alex Fender and Mahesh Doijade and Joe Eaton and Edward Raff and John Zedlewski and Brad Rees and Tim Oates}, year={2023}, eprint={2306.16354}, archivePrefix={arXiv}, primaryClass={cs.LG} } ``` If citing CAGRA, please consider the following bibtex: ```bibtex @misc{ootomo2023cagra, title={CAGRA: Highly Parallel Graph Construction and Approximate Nearest Neighbor Search for GPUs}, author={Hiroyuki Ootomo and Akira Naruse and Corey Nolet and Ray Wang and Tamas Feher and Yong Wang}, year={2023}, eprint={2308.15136}, archivePrefix={arXiv}, primaryClass={cs.DS} } ```
0
rapidsai_public_repos
rapidsai_public_repos/raft/CHANGELOG.md
# raft 23.10.00 (11 Oct 2023) ## 🚨 Breaking Changes - Change CAGRA auto mode selection ([#1830](https://github.com/rapidsai/raft/pull/1830)) [@enp1s0](https://github.com/enp1s0) - Update CAGRA serialization ([#1755](https://github.com/rapidsai/raft/pull/1755)) [@benfred](https://github.com/benfred) - Improvements to ANN Benchmark Python scripts and docs ([#1734](https://github.com/rapidsai/raft/pull/1734)) [@divyegala](https://github.com/divyegala) - Update to Cython 3.0.0 ([#1688](https://github.com/rapidsai/raft/pull/1688)) [@vyasr](https://github.com/vyasr) - ANN-benchmarks: switch to use gbench ([#1661](https://github.com/rapidsai/raft/pull/1661)) [@achirkin](https://github.com/achirkin) ## 🐛 Bug Fixes - [BUG] Fix a bug in the filtering operation in CAGRA multi-kernel ([#1862](https://github.com/rapidsai/raft/pull/1862)) [@enp1s0](https://github.com/enp1s0) - Fix conf file for benchmarking glove datasets ([#1846](https://github.com/rapidsai/raft/pull/1846)) [@dantegd](https://github.com/dantegd) - raft-ann-bench package fixes for plotting and conf files ([#1844](https://github.com/rapidsai/raft/pull/1844)) [@dantegd](https://github.com/dantegd) - Fix update-version.sh for all pyproject.toml files ([#1839](https://github.com/rapidsai/raft/pull/1839)) [@raydouglass](https://github.com/raydouglass) - Make RMM a run dependency of the raft-ann-bench conda package ([#1838](https://github.com/rapidsai/raft/pull/1838)) [@dantegd](https://github.com/dantegd) - Printing actual exception in `require base set` ([#1816](https://github.com/rapidsai/raft/pull/1816)) [@cjnolet](https://github.com/cjnolet) - Adding rmm to `raft-ann-bench` dependencies ([#1815](https://github.com/rapidsai/raft/pull/1815)) [@cjnolet](https://github.com/cjnolet) - Use `conda mambabuild` not `mamba mambabuild` ([#1812](https://github.com/rapidsai/raft/pull/1812)) [@bdice](https://github.com/bdice) - Fix `raft-dask` naming in wheel builds ([#1805](https://github.com/rapidsai/raft/pull/1805)) [@divyegala](https://github.com/divyegala) - neighbors::refine_host: check the dataset bounds ([#1793](https://github.com/rapidsai/raft/pull/1793)) [@achirkin](https://github.com/achirkin) - [BUG] Fix search parameter check in CAGRA ([#1784](https://github.com/rapidsai/raft/pull/1784)) [@enp1s0](https://github.com/enp1s0) - IVF-Flat: fix search batching ([#1764](https://github.com/rapidsai/raft/pull/1764)) [@achirkin](https://github.com/achirkin) - Using expanded distance computations in `pylibraft` ([#1759](https://github.com/rapidsai/raft/pull/1759)) [@cjnolet](https://github.com/cjnolet) - Fix ann-bench Documentation ([#1754](https://github.com/rapidsai/raft/pull/1754)) [@divyegala](https://github.com/divyegala) - Make get_cache_idx a weak symbol with dummy template ([#1733](https://github.com/rapidsai/raft/pull/1733)) [@ahendriksen](https://github.com/ahendriksen) - Fix IVF-PQ fused kernel performance problems ([#1726](https://github.com/rapidsai/raft/pull/1726)) [@achirkin](https://github.com/achirkin) - Fix build.sh to enable NEIGHBORS_ANN_CAGRA_TEST ([#1724](https://github.com/rapidsai/raft/pull/1724)) [@enp1s0](https://github.com/enp1s0) - Fix template types for create_descriptor function. ([#1680](https://github.com/rapidsai/raft/pull/1680)) [@csadorf](https://github.com/csadorf) ## 📖 Documentation - Fix the CAGRA paper citation ([#1788](https://github.com/rapidsai/raft/pull/1788)) [@enp1s0](https://github.com/enp1s0) - Add citation info for the CAGRA paper preprint ([#1787](https://github.com/rapidsai/raft/pull/1787)) [@enp1s0](https://github.com/enp1s0) - [DOC] Fix grouping for ANN in C++ doxygen ([#1782](https://github.com/rapidsai/raft/pull/1782)) [@lowener](https://github.com/lowener) - Update RAFT documentation ([#1717](https://github.com/rapidsai/raft/pull/1717)) [@lowener](https://github.com/lowener) - Additional polishing of README and docs ([#1713](https://github.com/rapidsai/raft/pull/1713)) [@cjnolet](https://github.com/cjnolet) ## 🚀 New Features - [FEA] Add `bitset_filter` for CAGRA indices removal ([#1837](https://github.com/rapidsai/raft/pull/1837)) [@lowener](https://github.com/lowener) - ann-bench: miscellaneous improvements ([#1808](https://github.com/rapidsai/raft/pull/1808)) [@achirkin](https://github.com/achirkin) - [FEA] Add bitset for ANN pre-filtering and deletion ([#1803](https://github.com/rapidsai/raft/pull/1803)) [@lowener](https://github.com/lowener) - Adding config files for remaining (relevant) ann-benchmarks million-scale datasets ([#1761](https://github.com/rapidsai/raft/pull/1761)) [@cjnolet](https://github.com/cjnolet) - Port NN-descent algorithm to use in `cagra::build()` ([#1748](https://github.com/rapidsai/raft/pull/1748)) [@divyegala](https://github.com/divyegala) - Adding conda build for libraft static ([#1746](https://github.com/rapidsai/raft/pull/1746)) [@cjnolet](https://github.com/cjnolet) - [FEA] Provide device_resources_manager for easy generation of device_resources ([#1716](https://github.com/rapidsai/raft/pull/1716)) [@wphicks](https://github.com/wphicks) ## 🛠️ Improvements - Add option to brute_force index to store non-owning reference to norms ([#1865](https://github.com/rapidsai/raft/pull/1865)) [@benfred](https://github.com/benfred) - Pin `dask` and `distributed` for `23.10` release ([#1864](https://github.com/rapidsai/raft/pull/1864)) [@galipremsagar](https://github.com/galipremsagar) - Update image names ([#1835](https://github.com/rapidsai/raft/pull/1835)) [@AyodeAwe](https://github.com/AyodeAwe) - Fixes for OOM during CAGRA benchmarks ([#1832](https://github.com/rapidsai/raft/pull/1832)) [@benfred](https://github.com/benfred) - Change CAGRA auto mode selection ([#1830](https://github.com/rapidsai/raft/pull/1830)) [@enp1s0](https://github.com/enp1s0) - Update to clang 16.0.6. ([#1829](https://github.com/rapidsai/raft/pull/1829)) [@bdice](https://github.com/bdice) - Add IVF-Flat C++ example ([#1828](https://github.com/rapidsai/raft/pull/1828)) [@tfeher](https://github.com/tfeher) - matrix::select_k: extra tests and benchmarks ([#1821](https://github.com/rapidsai/raft/pull/1821)) [@achirkin](https://github.com/achirkin) - Add index class for brute_force knn ([#1817](https://github.com/rapidsai/raft/pull/1817)) [@benfred](https://github.com/benfred) - [FEA] Add pre-filtering to CAGRA ([#1811](https://github.com/rapidsai/raft/pull/1811)) [@enp1s0](https://github.com/enp1s0) - More updates to ann-bench docs ([#1810](https://github.com/rapidsai/raft/pull/1810)) [@cjnolet](https://github.com/cjnolet) - Add best deep-100M configs for IVF-PQ to ANN benchmarks ([#1807](https://github.com/rapidsai/raft/pull/1807)) [@tfeher](https://github.com/tfeher) - A few fixes to `raft-ann-bench` recipe and docs ([#1806](https://github.com/rapidsai/raft/pull/1806)) [@cjnolet](https://github.com/cjnolet) - Simplify wheel build scripts and allow alphas of RAPIDS dependencies ([#1804](https://github.com/rapidsai/raft/pull/1804)) [@divyegala](https://github.com/divyegala) - Various fixes to reproducible benchmarks ([#1800](https://github.com/rapidsai/raft/pull/1800)) [@cjnolet](https://github.com/cjnolet) - ANN-bench: more flexible cuda_stub.hpp ([#1792](https://github.com/rapidsai/raft/pull/1792)) [@achirkin](https://github.com/achirkin) - Add RAFT devcontainers ([#1791](https://github.com/rapidsai/raft/pull/1791)) [@trxcllnt](https://github.com/trxcllnt) - Cagra memory optimizations ([#1790](https://github.com/rapidsai/raft/pull/1790)) [@benfred](https://github.com/benfred) - Fixing a couple security concerns in `raft-dask` nccl unique id generation ([#1785](https://github.com/rapidsai/raft/pull/1785)) [@cjnolet](https://github.com/cjnolet) - Don&#39;t serialize dataset with CAGRA bench ([#1781](https://github.com/rapidsai/raft/pull/1781)) [@benfred](https://github.com/benfred) - Use `copy-pr-bot` ([#1774](https://github.com/rapidsai/raft/pull/1774)) [@ajschmidt8](https://github.com/ajschmidt8) - Add GPU and CPU packages for ANN benchmarks ([#1773](https://github.com/rapidsai/raft/pull/1773)) [@dantegd](https://github.com/dantegd) - Improvements to raft-ann-bench scripts, docs, and benchmarking implementations. ([#1769](https://github.com/rapidsai/raft/pull/1769)) [@cjnolet](https://github.com/cjnolet) - [REVIEW] Introducing host API for PCG ([#1767](https://github.com/rapidsai/raft/pull/1767)) [@vinaydes](https://github.com/vinaydes) - Unpin `dask` and `distributed` for `23.10` development ([#1760](https://github.com/rapidsai/raft/pull/1760)) [@galipremsagar](https://github.com/galipremsagar) - Add ivf-flat notebook ([#1758](https://github.com/rapidsai/raft/pull/1758)) [@tfeher](https://github.com/tfeher) - Update CAGRA serialization ([#1755](https://github.com/rapidsai/raft/pull/1755)) [@benfred](https://github.com/benfred) - Remove block size template parameter from CAGRA search ([#1740](https://github.com/rapidsai/raft/pull/1740)) [@enp1s0](https://github.com/enp1s0) - Add NVTX ranges for cagra search/serialize functions ([#1737](https://github.com/rapidsai/raft/pull/1737)) [@benfred](https://github.com/benfred) - Improvements to ANN Benchmark Python scripts and docs ([#1734](https://github.com/rapidsai/raft/pull/1734)) [@divyegala](https://github.com/divyegala) - Fixing forward merger for 23.08 -&gt; 23.10 ([#1731](https://github.com/rapidsai/raft/pull/1731)) [@cjnolet](https://github.com/cjnolet) - [FEA] Use CAGRA in C++ template ([#1730](https://github.com/rapidsai/raft/pull/1730)) [@lowener](https://github.com/lowener) - fixed box around raft image ([#1710](https://github.com/rapidsai/raft/pull/1710)) [@nwstephens](https://github.com/nwstephens) - Enable CUTLASS-based distance kernels on CTK 12 ([#1702](https://github.com/rapidsai/raft/pull/1702)) [@ahendriksen](https://github.com/ahendriksen) - Update bench-ann configuration ([#1696](https://github.com/rapidsai/raft/pull/1696)) [@lowener](https://github.com/lowener) - Update to Cython 3.0.0 ([#1688](https://github.com/rapidsai/raft/pull/1688)) [@vyasr](https://github.com/vyasr) - Update CMake version ([#1677](https://github.com/rapidsai/raft/pull/1677)) [@vyasr](https://github.com/vyasr) - Branch 23.10 merge 23.08 ([#1672](https://github.com/rapidsai/raft/pull/1672)) [@vyasr](https://github.com/vyasr) - ANN-benchmarks: switch to use gbench ([#1661](https://github.com/rapidsai/raft/pull/1661)) [@achirkin](https://github.com/achirkin) # raft 23.08.00 (9 Aug 2023) ## 🚨 Breaking Changes - Separate CAGRA index type from internal idx type ([#1664](https://github.com/rapidsai/raft/pull/1664)) [@tfeher](https://github.com/tfeher) - Stop using setup.py in build.sh ([#1645](https://github.com/rapidsai/raft/pull/1645)) [@vyasr](https://github.com/vyasr) - CAGRA max_queries auto configuration ([#1613](https://github.com/rapidsai/raft/pull/1613)) [@enp1s0](https://github.com/enp1s0) - Rename the CAGRA prune function to optimize ([#1588](https://github.com/rapidsai/raft/pull/1588)) [@enp1s0](https://github.com/enp1s0) - CAGRA pad dataset for 128bit vectorized load ([#1505](https://github.com/rapidsai/raft/pull/1505)) [@tfeher](https://github.com/tfeher) - Sparse Pairwise Distances API Updates ([#1502](https://github.com/rapidsai/raft/pull/1502)) [@divyegala](https://github.com/divyegala) - Cagra index construction without copying device mdarrays ([#1494](https://github.com/rapidsai/raft/pull/1494)) [@tfeher](https://github.com/tfeher) - [FEA] Masked NN for connect_components ([#1445](https://github.com/rapidsai/raft/pull/1445)) [@tarang-jain](https://github.com/tarang-jain) - Limiting workspace memory resource ([#1356](https://github.com/rapidsai/raft/pull/1356)) [@achirkin](https://github.com/achirkin) ## 🐛 Bug Fixes - Remove push condition on docs-build ([#1693](https://github.com/rapidsai/raft/pull/1693)) [@raydouglass](https://github.com/raydouglass) - IVF-PQ: Fix illegal memory access with large max_samples ([#1685](https://github.com/rapidsai/raft/pull/1685)) [@achirkin](https://github.com/achirkin) - Fix missing parameter for select_k ([#1682](https://github.com/rapidsai/raft/pull/1682)) [@ucassjy](https://github.com/ucassjy) - Separate CAGRA index type from internal idx type ([#1664](https://github.com/rapidsai/raft/pull/1664)) [@tfeher](https://github.com/tfeher) - Add rmm to pylibraft run dependencies, since it is used by Cython. ([#1656](https://github.com/rapidsai/raft/pull/1656)) [@bdice](https://github.com/bdice) - Hotfix: wrong constant in IVF-PQ fp_8bit2half ([#1654](https://github.com/rapidsai/raft/pull/1654)) [@achirkin](https://github.com/achirkin) - Fix sparse KNN for large batches ([#1640](https://github.com/rapidsai/raft/pull/1640)) [@viclafargue](https://github.com/viclafargue) - Fix uploading of RAFT nightly packages ([#1638](https://github.com/rapidsai/raft/pull/1638)) [@dantegd](https://github.com/dantegd) - Fix cagra multi CTA bug ([#1628](https://github.com/rapidsai/raft/pull/1628)) [@enp1s0](https://github.com/enp1s0) - pass correct stream to cutlass kernel launch of L2/cosine pairwise distance kernels ([#1597](https://github.com/rapidsai/raft/pull/1597)) [@mdoijade](https://github.com/mdoijade) - Fix launchconfig y-gridsize too large in epilogue kernel ([#1586](https://github.com/rapidsai/raft/pull/1586)) [@mfoerste4](https://github.com/mfoerste4) - Fix update version and pinnings for 23.08. ([#1556](https://github.com/rapidsai/raft/pull/1556)) [@bdice](https://github.com/bdice) - Fix for function exposing KNN merge ([#1418](https://github.com/rapidsai/raft/pull/1418)) [@viclafargue](https://github.com/viclafargue) ## 📖 Documentation - Critical doc fixes and updates for 23.08 ([#1705](https://github.com/rapidsai/raft/pull/1705)) [@cjnolet](https://github.com/cjnolet) - Fix the documentation about changing the logging level ([#1596](https://github.com/rapidsai/raft/pull/1596)) [@enp1s0](https://github.com/enp1s0) - Fix raft::bitonic_sort small usage example ([#1580](https://github.com/rapidsai/raft/pull/1580)) [@enp1s0](https://github.com/enp1s0) ## 🚀 New Features - Use rapids-cmake new parallel testing feature ([#1623](https://github.com/rapidsai/raft/pull/1623)) [@robertmaynard](https://github.com/robertmaynard) - Add support for row-major slice ([#1591](https://github.com/rapidsai/raft/pull/1591)) [@lowener](https://github.com/lowener) - IVF-PQ tutorial notebook ([#1544](https://github.com/rapidsai/raft/pull/1544)) [@achirkin](https://github.com/achirkin) - [FEA] Masked NN for connect_components ([#1445](https://github.com/rapidsai/raft/pull/1445)) [@tarang-jain](https://github.com/tarang-jain) - raft: Build CUDA 12 packages ([#1388](https://github.com/rapidsai/raft/pull/1388)) [@vyasr](https://github.com/vyasr) - Limiting workspace memory resource ([#1356](https://github.com/rapidsai/raft/pull/1356)) [@achirkin](https://github.com/achirkin) ## 🛠️ Improvements - Pin `dask` and `distributed` for `23.08` release ([#1711](https://github.com/rapidsai/raft/pull/1711)) [@galipremsagar](https://github.com/galipremsagar) - Add algo parameter for CAGRA ANN bench ([#1687](https://github.com/rapidsai/raft/pull/1687)) [@tfeher](https://github.com/tfeher) - ANN benchmarks python wrapper for splitting billion-scale dataset groundtruth ([#1679](https://github.com/rapidsai/raft/pull/1679)) [@divyegala](https://github.com/divyegala) - Rename CAGRA parameter num_parents to search_width ([#1676](https://github.com/rapidsai/raft/pull/1676)) [@tfeher](https://github.com/tfeher) - Renaming namespaces to promote CAGRA from experimental ([#1666](https://github.com/rapidsai/raft/pull/1666)) [@cjnolet](https://github.com/cjnolet) - CAGRA Python wrappers ([#1665](https://github.com/rapidsai/raft/pull/1665)) [@dantegd](https://github.com/dantegd) - Add notebook for Vector Search - Question Retrieval ([#1662](https://github.com/rapidsai/raft/pull/1662)) [@lowener](https://github.com/lowener) - Fix CMake CUDA support for pylibraft when raft is found. ([#1659](https://github.com/rapidsai/raft/pull/1659)) [@bdice](https://github.com/bdice) - Cagra ANN benchmark improvements ([#1658](https://github.com/rapidsai/raft/pull/1658)) [@tfeher](https://github.com/tfeher) - ANN-benchmarks: avoid using the dataset during search when possible ([#1657](https://github.com/rapidsai/raft/pull/1657)) [@achirkin](https://github.com/achirkin) - Revert CUDA 12.0 CI workflows to branch-23.08. ([#1652](https://github.com/rapidsai/raft/pull/1652)) [@bdice](https://github.com/bdice) - ANN: Optimize host-side refine ([#1651](https://github.com/rapidsai/raft/pull/1651)) [@achirkin](https://github.com/achirkin) - Cagra template instantiations ([#1650](https://github.com/rapidsai/raft/pull/1650)) [@tfeher](https://github.com/tfeher) - Modify comm_split to avoid ucp ([#1649](https://github.com/rapidsai/raft/pull/1649)) [@ChuckHastings](https://github.com/ChuckHastings) - Stop using setup.py in build.sh ([#1645](https://github.com/rapidsai/raft/pull/1645)) [@vyasr](https://github.com/vyasr) - IVF-PQ: Add a (faster) direct conversion fp8-&gt;half ([#1644](https://github.com/rapidsai/raft/pull/1644)) [@achirkin](https://github.com/achirkin) - Simplify `bench/ann` scripts to Python based module ([#1642](https://github.com/rapidsai/raft/pull/1642)) [@divyegala](https://github.com/divyegala) - Further removal of uses-setup-env-vars ([#1639](https://github.com/rapidsai/raft/pull/1639)) [@dantegd](https://github.com/dantegd) - Drop blank line in `raft-dask/meta.yaml` ([#1637](https://github.com/rapidsai/raft/pull/1637)) [@jakirkham](https://github.com/jakirkham) - Enable conservative memory allocations for RAFT IVF-Flat benchmarks. ([#1634](https://github.com/rapidsai/raft/pull/1634)) [@tfeher](https://github.com/tfeher) - [FEA] Codepacking for IVF-flat ([#1632](https://github.com/rapidsai/raft/pull/1632)) [@tarang-jain](https://github.com/tarang-jain) - Fixing ann bench cmake (and docs) ([#1630](https://github.com/rapidsai/raft/pull/1630)) [@cjnolet](https://github.com/cjnolet) - [WIP] Test CI issues ([#1626](https://github.com/rapidsai/raft/pull/1626)) [@VibhuJawa](https://github.com/VibhuJawa) - Set pool memory resource for raft IVF ANN benchmarks ([#1625](https://github.com/rapidsai/raft/pull/1625)) [@tfeher](https://github.com/tfeher) - Adding sort option to matrix::select_k api ([#1615](https://github.com/rapidsai/raft/pull/1615)) [@cjnolet](https://github.com/cjnolet) - CAGRA max_queries auto configuration ([#1613](https://github.com/rapidsai/raft/pull/1613)) [@enp1s0](https://github.com/enp1s0) - Use exceptions instead of `exit(-1)` ([#1594](https://github.com/rapidsai/raft/pull/1594)) [@benfred](https://github.com/benfred) - [REVIEW] Add scheduler_file argument to support MNMG setup ([#1593](https://github.com/rapidsai/raft/pull/1593)) [@VibhuJawa](https://github.com/VibhuJawa) - Rename the CAGRA prune function to optimize ([#1588](https://github.com/rapidsai/raft/pull/1588)) [@enp1s0](https://github.com/enp1s0) - This PR adds support to __half and nb_bfloat16 to myAtomicReduce ([#1585](https://github.com/rapidsai/raft/pull/1585)) [@Kh4ster](https://github.com/Kh4ster) - [IMP] move core CUDA RT macros to cuda_rt_essentials.hpp ([#1584](https://github.com/rapidsai/raft/pull/1584)) [@MatthiasKohl](https://github.com/MatthiasKohl) - preprocessor syntax fix ([#1582](https://github.com/rapidsai/raft/pull/1582)) [@AyodeAwe](https://github.com/AyodeAwe) - use rapids-upload-docs script ([#1578](https://github.com/rapidsai/raft/pull/1578)) [@AyodeAwe](https://github.com/AyodeAwe) - Unpin `dask` and `distributed` for development and fix `merge_labels` test ([#1574](https://github.com/rapidsai/raft/pull/1574)) [@galipremsagar](https://github.com/galipremsagar) - Remove documentation build scripts for Jenkins ([#1570](https://github.com/rapidsai/raft/pull/1570)) [@ajschmidt8](https://github.com/ajschmidt8) - Add support to __half and nv_bfloat16 to most math functions ([#1554](https://github.com/rapidsai/raft/pull/1554)) [@Kh4ster](https://github.com/Kh4ster) - Add RAFT ANN benchmark for CAGRA ([#1552](https://github.com/rapidsai/raft/pull/1552)) [@enp1s0](https://github.com/enp1s0) - Update CAGRA knn_graph_sort to use Raft::bitonic_sort ([#1550](https://github.com/rapidsai/raft/pull/1550)) [@enp1s0](https://github.com/enp1s0) - Add identity matrix function ([#1548](https://github.com/rapidsai/raft/pull/1548)) [@lowener](https://github.com/lowener) - Unpin scikit-build upper bound ([#1547](https://github.com/rapidsai/raft/pull/1547)) [@vyasr](https://github.com/vyasr) - Migrate wheel workflow scripts locally ([#1546](https://github.com/rapidsai/raft/pull/1546)) [@divyegala](https://github.com/divyegala) - Add sample filtering for ivf_flat. Filtering code refactoring and cleanup ([#1541](https://github.com/rapidsai/raft/pull/1541)) [@alexanderguzhva](https://github.com/alexanderguzhva) - CAGRA pad dataset for 128bit vectorized load ([#1505](https://github.com/rapidsai/raft/pull/1505)) [@tfeher](https://github.com/tfeher) - Sparse Pairwise Distances API Updates ([#1502](https://github.com/rapidsai/raft/pull/1502)) [@divyegala](https://github.com/divyegala) - Add CAGRA gbench ([#1496](https://github.com/rapidsai/raft/pull/1496)) [@tfeher](https://github.com/tfeher) - Cagra index construction without copying device mdarrays ([#1494](https://github.com/rapidsai/raft/pull/1494)) [@tfeher](https://github.com/tfeher) # raft 23.06.00 (7 Jun 2023) ## 🚨 Breaking Changes - ivf-pq::search: fix the indexing type of the query-related mdspan arguments ([#1539](https://github.com/rapidsai/raft/pull/1539)) [@achirkin](https://github.com/achirkin) - Dropping Python 3.8 ([#1454](https://github.com/rapidsai/raft/pull/1454)) [@divyegala](https://github.com/divyegala) ## 🐛 Bug Fixes - [HOTFIX] Fix distance metrics L2/cosine/correlation when X &amp; Y are same buffer but with different shape and add unit test for such case. ([#1571](https://github.com/rapidsai/raft/pull/1571)) [@mdoijade](https://github.com/mdoijade) - Using raft::resources in rsvd ([#1543](https://github.com/rapidsai/raft/pull/1543)) [@cjnolet](https://github.com/cjnolet) - ivf-pq::search: fix the indexing type of the query-related mdspan arguments ([#1539](https://github.com/rapidsai/raft/pull/1539)) [@achirkin](https://github.com/achirkin) - Check python brute-force knn inputs ([#1537](https://github.com/rapidsai/raft/pull/1537)) [@benfred](https://github.com/benfred) - Fix failing TiledKNNTest unittest ([#1533](https://github.com/rapidsai/raft/pull/1533)) [@benfred](https://github.com/benfred) - ivf-flat: fix incorrect recomputed size of the index ([#1525](https://github.com/rapidsai/raft/pull/1525)) [@achirkin](https://github.com/achirkin) - ivf-flat: limit the workspace size of the search via batching ([#1515](https://github.com/rapidsai/raft/pull/1515)) [@achirkin](https://github.com/achirkin) - Support uint64_t in CAGRA index data type ([#1514](https://github.com/rapidsai/raft/pull/1514)) [@enp1s0](https://github.com/enp1s0) - Workaround for cuda 12 issue in cusparse ([#1508](https://github.com/rapidsai/raft/pull/1508)) [@cjnolet](https://github.com/cjnolet) - Un-scale output distances ([#1499](https://github.com/rapidsai/raft/pull/1499)) [@achirkin](https://github.com/achirkin) - Inline get_cache_idx ([#1492](https://github.com/rapidsai/raft/pull/1492)) [@ahendriksen](https://github.com/ahendriksen) - Pin to scikit-build&lt;17.2 ([#1487](https://github.com/rapidsai/raft/pull/1487)) [@vyasr](https://github.com/vyasr) - Remove pool_size() calls from debug printouts ([#1484](https://github.com/rapidsai/raft/pull/1484)) [@tfeher](https://github.com/tfeher) - Add missing ext declaration for log detail::format ([#1482](https://github.com/rapidsai/raft/pull/1482)) [@tfeher](https://github.com/tfeher) - Remove include statements from inside namespace ([#1467](https://github.com/rapidsai/raft/pull/1467)) [@robertmaynard](https://github.com/robertmaynard) - Use pin_compatible to ensure that lower CTKs can be used ([#1462](https://github.com/rapidsai/raft/pull/1462)) [@vyasr](https://github.com/vyasr) - fix ivf_pq n_probes ([#1456](https://github.com/rapidsai/raft/pull/1456)) [@benfred](https://github.com/benfred) - The glog project root CMakeLists.txt is where we should build from ([#1442](https://github.com/rapidsai/raft/pull/1442)) [@robertmaynard](https://github.com/robertmaynard) - Add missing resource factory virtual destructor ([#1433](https://github.com/rapidsai/raft/pull/1433)) [@cjnolet](https://github.com/cjnolet) - Removing cuda stream view include from mdarray ([#1429](https://github.com/rapidsai/raft/pull/1429)) [@cjnolet](https://github.com/cjnolet) - Fix dim param for IVF-PQ wrapper in ANN bench ([#1427](https://github.com/rapidsai/raft/pull/1427)) [@tfeher](https://github.com/tfeher) - Remove MetricProcessor code from brute_force::knn ([#1426](https://github.com/rapidsai/raft/pull/1426)) [@benfred](https://github.com/benfred) - Fix is_min_close ([#1419](https://github.com/rapidsai/raft/pull/1419)) [@benfred](https://github.com/benfred) - Have consistent compile lines between BUILD_TESTS enabled or not ([#1401](https://github.com/rapidsai/raft/pull/1401)) [@robertmaynard](https://github.com/robertmaynard) - Fix ucx-py pin in raft-dask recipe ([#1396](https://github.com/rapidsai/raft/pull/1396)) [@vyasr](https://github.com/vyasr) ## 📖 Documentation - Various updates to the docs for 23.06 release ([#1538](https://github.com/rapidsai/raft/pull/1538)) [@cjnolet](https://github.com/cjnolet) - Rename kernel arch finding function for dispatch ([#1536](https://github.com/rapidsai/raft/pull/1536)) [@mdoijade](https://github.com/mdoijade) - Adding bfknn and ivf-pq python api to docs ([#1507](https://github.com/rapidsai/raft/pull/1507)) [@cjnolet](https://github.com/cjnolet) - Add RAPIDS cuDF as a library that supports cuda_array_interface ([#1444](https://github.com/rapidsai/raft/pull/1444)) [@miguelusque](https://github.com/miguelusque) ## 🚀 New Features - IVF-PQ: manipulating individual lists ([#1298](https://github.com/rapidsai/raft/pull/1298)) [@achirkin](https://github.com/achirkin) - Gram matrix support for sparse input ([#1296](https://github.com/rapidsai/raft/pull/1296)) [@mfoerste4](https://github.com/mfoerste4) - [FEA] Add randomized svd from cusolver ([#1000](https://github.com/rapidsai/raft/pull/1000)) [@lowener](https://github.com/lowener) ## 🛠️ Improvements - Require Numba 0.57.0+ ([#1559](https://github.com/rapidsai/raft/pull/1559)) [@jakirkham](https://github.com/jakirkham) - remove device_resources include from linalg::map ([#1540](https://github.com/rapidsai/raft/pull/1540)) [@benfred](https://github.com/benfred) - Learn heuristic to pick fastest select_k algorithm ([#1523](https://github.com/rapidsai/raft/pull/1523)) [@benfred](https://github.com/benfred) - [REVIEW] make raft::cache::Cache protected to allow overrides ([#1522](https://github.com/rapidsai/raft/pull/1522)) [@mfoerste4](https://github.com/mfoerste4) - [REVIEW] Fix padding assertion in sparse Gram evaluation ([#1521](https://github.com/rapidsai/raft/pull/1521)) [@mfoerste4](https://github.com/mfoerste4) - run docs nightly too ([#1520](https://github.com/rapidsai/raft/pull/1520)) [@AyodeAwe](https://github.com/AyodeAwe) - Switch back to using primary shared-action-workflows branch ([#1519](https://github.com/rapidsai/raft/pull/1519)) [@vyasr](https://github.com/vyasr) - Python API for IVF-Flat serialization ([#1516](https://github.com/rapidsai/raft/pull/1516)) [@tfeher](https://github.com/tfeher) - Introduce sample filtering to IVFPQ index search ([#1513](https://github.com/rapidsai/raft/pull/1513)) [@alexanderguzhva](https://github.com/alexanderguzhva) - Migrate from raft::device_resources -&gt; raft::resources ([#1510](https://github.com/rapidsai/raft/pull/1510)) [@benfred](https://github.com/benfred) - Use rmm allocator in CAGRA prune ([#1503](https://github.com/rapidsai/raft/pull/1503)) [@enp1s0](https://github.com/enp1s0) - Update recipes to GTest version &gt;=1.13.0 ([#1501](https://github.com/rapidsai/raft/pull/1501)) [@bdice](https://github.com/bdice) - Remove raft/matrix/matrix.cuh includes ([#1498](https://github.com/rapidsai/raft/pull/1498)) [@benfred](https://github.com/benfred) - Generate dataset of select_k times ([#1497](https://github.com/rapidsai/raft/pull/1497)) [@benfred](https://github.com/benfred) - Re-use memory pool between benchmark runs ([#1495](https://github.com/rapidsai/raft/pull/1495)) [@benfred](https://github.com/benfred) - Support CUDA 12.0 for pip wheels ([#1489](https://github.com/rapidsai/raft/pull/1489)) [@divyegala](https://github.com/divyegala) - Update cupy dependency ([#1488](https://github.com/rapidsai/raft/pull/1488)) [@vyasr](https://github.com/vyasr) - Enable sccache hits from local builds ([#1478](https://github.com/rapidsai/raft/pull/1478)) [@AyodeAwe](https://github.com/AyodeAwe) - Build wheels using new single image workflow ([#1477](https://github.com/rapidsai/raft/pull/1477)) [@vyasr](https://github.com/vyasr) - Revert shared-action-workflows pin ([#1475](https://github.com/rapidsai/raft/pull/1475)) [@divyegala](https://github.com/divyegala) - CAGRA: Separate graph index sorting functionality from prune function ([#1471](https://github.com/rapidsai/raft/pull/1471)) [@enp1s0](https://github.com/enp1s0) - Add generic reduction functions and separate reductions/warp_primitives ([#1470](https://github.com/rapidsai/raft/pull/1470)) [@akifcorduk](https://github.com/akifcorduk) - [ENH] [FINAL] Header structure: combine all PRs into one ([#1469](https://github.com/rapidsai/raft/pull/1469)) [@ahendriksen](https://github.com/ahendriksen) - use `matrix::select_k` in brute_force::knn call ([#1463](https://github.com/rapidsai/raft/pull/1463)) [@benfred](https://github.com/benfred) - Dropping Python 3.8 ([#1454](https://github.com/rapidsai/raft/pull/1454)) [@divyegala](https://github.com/divyegala) - Fix linalg::map to work with non-power-of-2-sized types again ([#1453](https://github.com/rapidsai/raft/pull/1453)) [@ahendriksen](https://github.com/ahendriksen) - [ENH] Enable building with clang (limit strict error checking to GCC) ([#1452](https://github.com/rapidsai/raft/pull/1452)) [@ahendriksen](https://github.com/ahendriksen) - Remove usage of rapids-get-rapids-version-from-git ([#1436](https://github.com/rapidsai/raft/pull/1436)) [@jjacobelli](https://github.com/jjacobelli) - Minor Updates to Sparse Structures ([#1432](https://github.com/rapidsai/raft/pull/1432)) [@divyegala](https://github.com/divyegala) - Use nvtx3 includes. ([#1431](https://github.com/rapidsai/raft/pull/1431)) [@bdice](https://github.com/bdice) - Remove wheel pytest verbosity ([#1424](https://github.com/rapidsai/raft/pull/1424)) [@sevagh](https://github.com/sevagh) - Add python bindings for matrix::select_k ([#1422](https://github.com/rapidsai/raft/pull/1422)) [@benfred](https://github.com/benfred) - Using `raft::resources` across `raft::random` ([#1420](https://github.com/rapidsai/raft/pull/1420)) [@cjnolet](https://github.com/cjnolet) - Generate build metrics report for test and benchmarks ([#1414](https://github.com/rapidsai/raft/pull/1414)) [@divyegala](https://github.com/divyegala) - Update clang-format to 16.0.1. ([#1412](https://github.com/rapidsai/raft/pull/1412)) [@bdice](https://github.com/bdice) - Use ARC V2 self-hosted runners for GPU jobs ([#1410](https://github.com/rapidsai/raft/pull/1410)) [@jjacobelli](https://github.com/jjacobelli) - Remove uses-setup-env-vars ([#1406](https://github.com/rapidsai/raft/pull/1406)) [@vyasr](https://github.com/vyasr) - Resolve conflicts in auto-merger of `branch-23.06` and `branch-23.04` ([#1403](https://github.com/rapidsai/raft/pull/1403)) [@galipremsagar](https://github.com/galipremsagar) - Adding base header-only conda package without cuda math libs ([#1386](https://github.com/rapidsai/raft/pull/1386)) [@cjnolet](https://github.com/cjnolet) - Fix IVF-PQ API to use `device_vector_view` ([#1384](https://github.com/rapidsai/raft/pull/1384)) [@lowener](https://github.com/lowener) - Branch 23.06 merge 23.04 ([#1379](https://github.com/rapidsai/raft/pull/1379)) [@vyasr](https://github.com/vyasr) - Forward merge branch 23.04 into 23.06 ([#1350](https://github.com/rapidsai/raft/pull/1350)) [@cjnolet](https://github.com/cjnolet) - Fused L2 1-NN based on cutlass 3xTF32 / DMMA ([#1118](https://github.com/rapidsai/raft/pull/1118)) [@mdoijade](https://github.com/mdoijade) # raft 23.04.00 (6 Apr 2023) ## 🚨 Breaking Changes - Pin `dask` and `distributed` for release ([#1399](https://github.com/rapidsai/raft/pull/1399)) [@galipremsagar](https://github.com/galipremsagar) - Remove faiss_mr.hpp ([#1351](https://github.com/rapidsai/raft/pull/1351)) [@benfred](https://github.com/benfred) - Removing FAISS from build ([#1340](https://github.com/rapidsai/raft/pull/1340)) [@cjnolet](https://github.com/cjnolet) - Generic linalg::map ([#1337](https://github.com/rapidsai/raft/pull/1337)) [@achirkin](https://github.com/achirkin) - Consolidate pre-compiled specializations into single `libraft` binary ([#1333](https://github.com/rapidsai/raft/pull/1333)) [@cjnolet](https://github.com/cjnolet) - Generic linalg::map ([#1329](https://github.com/rapidsai/raft/pull/1329)) [@achirkin](https://github.com/achirkin) - Update and standardize IVF indexes API ([#1328](https://github.com/rapidsai/raft/pull/1328)) [@viclafargue](https://github.com/viclafargue) - IVF-Flat index splitting ([#1271](https://github.com/rapidsai/raft/pull/1271)) [@lowener](https://github.com/lowener) - IVF-PQ: store cluster data in individual lists and reduce templates ([#1249](https://github.com/rapidsai/raft/pull/1249)) [@achirkin](https://github.com/achirkin) - Fix for svd API ([#1190](https://github.com/rapidsai/raft/pull/1190)) [@lowener](https://github.com/lowener) - Remove deprecated headers ([#1145](https://github.com/rapidsai/raft/pull/1145)) [@lowener](https://github.com/lowener) ## 🐛 Bug Fixes - Fix primitives benchmarks ([#1389](https://github.com/rapidsai/raft/pull/1389)) [@ahendriksen](https://github.com/ahendriksen) - Fixing index-url link on pip install docs ([#1378](https://github.com/rapidsai/raft/pull/1378)) [@cjnolet](https://github.com/cjnolet) - Adding some functions back in that seem to be a copy/paste error ([#1373](https://github.com/rapidsai/raft/pull/1373)) [@cjnolet](https://github.com/cjnolet) - Remove usage of Dask&#39;s `get_worker` ([#1365](https://github.com/rapidsai/raft/pull/1365)) [@pentschev](https://github.com/pentschev) - Remove MANIFEST.in use auto-generated one for sdists and package_data for wheels ([#1348](https://github.com/rapidsai/raft/pull/1348)) [@vyasr](https://github.com/vyasr) - Revert &quot;Generic linalg::map ([#1329)&quot; (#1336](https://github.com/rapidsai/raft/pull/1329)&quot; (#1336)) [@cjnolet](https://github.com/cjnolet) - Small follow-up to specializations cleanup ([#1332](https://github.com/rapidsai/raft/pull/1332)) [@cjnolet](https://github.com/cjnolet) - Fixing select_k specializations ([#1330](https://github.com/rapidsai/raft/pull/1330)) [@cjnolet](https://github.com/cjnolet) - Fixing remaining bug in ann_quantized ([#1327](https://github.com/rapidsai/raft/pull/1327)) [@cjnolet](https://github.com/cjnolet) - Fixign a couple small kmeans bugs ([#1274](https://github.com/rapidsai/raft/pull/1274)) [@cjnolet](https://github.com/cjnolet) - Remove no longer instantiated templates from list of extern template declarations ([#1272](https://github.com/rapidsai/raft/pull/1272)) [@vyasr](https://github.com/vyasr) - Bump pinned deps to 23.4 ([#1266](https://github.com/rapidsai/raft/pull/1266)) [@vyasr](https://github.com/vyasr) - Fix the destruction of interruptible token registry ([#1229](https://github.com/rapidsai/raft/pull/1229)) [@achirkin](https://github.com/achirkin) - Expose raft::handle_t in the public header ([#1192](https://github.com/rapidsai/raft/pull/1192)) [@vyasr](https://github.com/vyasr) - Fix for svd API ([#1190](https://github.com/rapidsai/raft/pull/1190)) [@lowener](https://github.com/lowener) ## 📖 Documentation - Adding architecture diagram to README.md ([#1370](https://github.com/rapidsai/raft/pull/1370)) [@cjnolet](https://github.com/cjnolet) - Adding small readme image ([#1354](https://github.com/rapidsai/raft/pull/1354)) [@cjnolet](https://github.com/cjnolet) - Fix serialize documentation of ivf_flat ([#1347](https://github.com/rapidsai/raft/pull/1347)) [@lowener](https://github.com/lowener) - Small updates to docs ([#1339](https://github.com/rapidsai/raft/pull/1339)) [@cjnolet](https://github.com/cjnolet) ## 🚀 New Features - Add Options to Generate Build Metrics Report ([#1369](https://github.com/rapidsai/raft/pull/1369)) [@divyegala](https://github.com/divyegala) - Generic linalg::map ([#1337](https://github.com/rapidsai/raft/pull/1337)) [@achirkin](https://github.com/achirkin) - Generic linalg::map ([#1329](https://github.com/rapidsai/raft/pull/1329)) [@achirkin](https://github.com/achirkin) - matrix::select_k specializations ([#1268](https://github.com/rapidsai/raft/pull/1268)) [@achirkin](https://github.com/achirkin) - Use rapids-cmake new COMPONENT exporting feature ([#1154](https://github.com/rapidsai/raft/pull/1154)) [@robertmaynard](https://github.com/robertmaynard) ## 🛠️ Improvements - Pin `dask` and `distributed` for release ([#1399](https://github.com/rapidsai/raft/pull/1399)) [@galipremsagar](https://github.com/galipremsagar) - Pin cupy in wheel tests to supported versions ([#1383](https://github.com/rapidsai/raft/pull/1383)) [@vyasr](https://github.com/vyasr) - CAGRA ([#1375](https://github.com/rapidsai/raft/pull/1375)) [@tfeher](https://github.com/tfeher) - add a distance epilogue function to the bfknn call ([#1371](https://github.com/rapidsai/raft/pull/1371)) [@benfred](https://github.com/benfred) - Relax UCX pin to allow 1.14 ([#1366](https://github.com/rapidsai/raft/pull/1366)) [@pentschev](https://github.com/pentschev) - Generate pyproject dependencies with dfg ([#1364](https://github.com/rapidsai/raft/pull/1364)) [@vyasr](https://github.com/vyasr) - Add nccl to dependencies.yaml ([#1361](https://github.com/rapidsai/raft/pull/1361)) [@benfred](https://github.com/benfred) - Add extern template for ivfflat_interleaved_scan ([#1360](https://github.com/rapidsai/raft/pull/1360)) [@ahendriksen](https://github.com/ahendriksen) - Stop setting package version attribute in wheels ([#1359](https://github.com/rapidsai/raft/pull/1359)) [@vyasr](https://github.com/vyasr) - Fix ivf flat specialization header IdxT from uint64_t -&gt; int64_t ([#1358](https://github.com/rapidsai/raft/pull/1358)) [@ahendriksen](https://github.com/ahendriksen) - Remove faiss_mr.hpp ([#1351](https://github.com/rapidsai/raft/pull/1351)) [@benfred](https://github.com/benfred) - Rename optional helper function ([#1345](https://github.com/rapidsai/raft/pull/1345)) [@viclafargue](https://github.com/viclafargue) - Pass minimum target compile options through `raft::raft` ([#1341](https://github.com/rapidsai/raft/pull/1341)) [@cjnolet](https://github.com/cjnolet) - Removing FAISS from build ([#1340](https://github.com/rapidsai/raft/pull/1340)) [@cjnolet](https://github.com/cjnolet) - Add dispatch based on compute architecture ([#1335](https://github.com/rapidsai/raft/pull/1335)) [@ahendriksen](https://github.com/ahendriksen) - Consolidate pre-compiled specializations into single `libraft` binary ([#1333](https://github.com/rapidsai/raft/pull/1333)) [@cjnolet](https://github.com/cjnolet) - Update and standardize IVF indexes API ([#1328](https://github.com/rapidsai/raft/pull/1328)) [@viclafargue](https://github.com/viclafargue) - Using int64_t specializations for `ivf_pq` and `refine` ([#1325](https://github.com/rapidsai/raft/pull/1325)) [@cjnolet](https://github.com/cjnolet) - Migrate as much as possible to pyproject.toml ([#1324](https://github.com/rapidsai/raft/pull/1324)) [@vyasr](https://github.com/vyasr) - Pass `AWS_SESSION_TOKEN` and `SCCACHE_S3_USE_SSL` vars to conda build ([#1321](https://github.com/rapidsai/raft/pull/1321)) [@ajschmidt8](https://github.com/ajschmidt8) - Numerical stability fixes for l2 pairwise distance ([#1319](https://github.com/rapidsai/raft/pull/1319)) [@benfred](https://github.com/benfred) - Consolidate linter configuration into pyproject.toml ([#1317](https://github.com/rapidsai/raft/pull/1317)) [@vyasr](https://github.com/vyasr) - IVF-Flat Python wrappers ([#1316](https://github.com/rapidsai/raft/pull/1316)) [@tfeher](https://github.com/tfeher) - Add stream overloads to `ivf_pq` serialize/deserialize methods ([#1315](https://github.com/rapidsai/raft/pull/1315)) [@divyegala](https://github.com/divyegala) - Temporary buffer to view host or device memory in device ([#1313](https://github.com/rapidsai/raft/pull/1313)) [@divyegala](https://github.com/divyegala) - RAFT skeleton project template ([#1312](https://github.com/rapidsai/raft/pull/1312)) [@cjnolet](https://github.com/cjnolet) - Fix docs build to be `pydata-sphinx-theme=0.13.0` compatible ([#1311](https://github.com/rapidsai/raft/pull/1311)) [@galipremsagar](https://github.com/galipremsagar) - Update to GCC 11 ([#1309](https://github.com/rapidsai/raft/pull/1309)) [@bdice](https://github.com/bdice) - Reduce compile times of distance specializations ([#1307](https://github.com/rapidsai/raft/pull/1307)) [@ahendriksen](https://github.com/ahendriksen) - Fix docs upload path ([#1305](https://github.com/rapidsai/raft/pull/1305)) [@AyodeAwe](https://github.com/AyodeAwe) - Add end-to-end CUDA ann-benchmarks to raft ([#1304](https://github.com/rapidsai/raft/pull/1304)) [@cjnolet](https://github.com/cjnolet) - Make docs builds less verbose ([#1302](https://github.com/rapidsai/raft/pull/1302)) [@AyodeAwe](https://github.com/AyodeAwe) - Stop using versioneer to manage versions ([#1301](https://github.com/rapidsai/raft/pull/1301)) [@vyasr](https://github.com/vyasr) - Adding util to get the device id for a pointer address ([#1297](https://github.com/rapidsai/raft/pull/1297)) [@cjnolet](https://github.com/cjnolet) - Enable dfg in pre-commit. ([#1293](https://github.com/rapidsai/raft/pull/1293)) [@vyasr](https://github.com/vyasr) - Python API for brute-force KNN ([#1292](https://github.com/rapidsai/raft/pull/1292)) [@cjnolet](https://github.com/cjnolet) - support k up to 2048 in faiss select ([#1287](https://github.com/rapidsai/raft/pull/1287)) [@benfred](https://github.com/benfred) - CI: Remove specification of manual stage for check_style.sh script. ([#1283](https://github.com/rapidsai/raft/pull/1283)) [@csadorf](https://github.com/csadorf) - New Sparse Matrix APIs ([#1279](https://github.com/rapidsai/raft/pull/1279)) [@cjnolet](https://github.com/cjnolet) - fix build on cuda 11.5 ([#1277](https://github.com/rapidsai/raft/pull/1277)) [@benfred](https://github.com/benfred) - IVF-Flat index splitting ([#1271](https://github.com/rapidsai/raft/pull/1271)) [@lowener](https://github.com/lowener) - Remove duplicate `librmm` runtime dependency ([#1264](https://github.com/rapidsai/raft/pull/1264)) [@ajschmidt8](https://github.com/ajschmidt8) - build.sh: Add option to log nvcc compile times ([#1262](https://github.com/rapidsai/raft/pull/1262)) [@ahendriksen](https://github.com/ahendriksen) - Reduce error handling verbosity in CI tests scripts ([#1259](https://github.com/rapidsai/raft/pull/1259)) [@AjayThorve](https://github.com/AjayThorve) - Update shared workflow branches ([#1256](https://github.com/rapidsai/raft/pull/1256)) [@ajschmidt8](https://github.com/ajschmidt8) - Keeping only compute similarity specializations for uint64_t for now ([#1255](https://github.com/rapidsai/raft/pull/1255)) [@cjnolet](https://github.com/cjnolet) - Fix compile time explosion for minkowski distance ([#1254](https://github.com/rapidsai/raft/pull/1254)) [@ahendriksen](https://github.com/ahendriksen) - Unpin `dask` and `distributed` for development ([#1253](https://github.com/rapidsai/raft/pull/1253)) [@galipremsagar](https://github.com/galipremsagar) - Remove gpuCI scripts. ([#1252](https://github.com/rapidsai/raft/pull/1252)) [@bdice](https://github.com/bdice) - IVF-PQ: store cluster data in individual lists and reduce templates ([#1249](https://github.com/rapidsai/raft/pull/1249)) [@achirkin](https://github.com/achirkin) - Fix inconsistency between the building doc and CMakeLists.txt ([#1248](https://github.com/rapidsai/raft/pull/1248)) [@yong-wang](https://github.com/yong-wang) - Consolidating ANN benchmarks and tests ([#1243](https://github.com/rapidsai/raft/pull/1243)) [@cjnolet](https://github.com/cjnolet) - mdspan view for IVF-PQ API ([#1236](https://github.com/rapidsai/raft/pull/1236)) [@viclafargue](https://github.com/viclafargue) - Remove uint32 distance idx specializations ([#1235](https://github.com/rapidsai/raft/pull/1235)) [@cjnolet](https://github.com/cjnolet) - Add innerproduct to the pairwise distance api ([#1226](https://github.com/rapidsai/raft/pull/1226)) [@benfred](https://github.com/benfred) - Move date to build string in `conda` recipe ([#1223](https://github.com/rapidsai/raft/pull/1223)) [@ajschmidt8](https://github.com/ajschmidt8) - Replace faiss bfKnn ([#1202](https://github.com/rapidsai/raft/pull/1202)) [@benfred](https://github.com/benfred) - Expose KMeans `init_plus_plus` in pylibraft ([#1198](https://github.com/rapidsai/raft/pull/1198)) [@betatim](https://github.com/betatim) - Fix `ucx-py` version ([#1184](https://github.com/rapidsai/raft/pull/1184)) [@ajschmidt8](https://github.com/ajschmidt8) - Improve the performance of radix top-k ([#1175](https://github.com/rapidsai/raft/pull/1175)) [@yong-wang](https://github.com/yong-wang) - Add docs build job ([#1168](https://github.com/rapidsai/raft/pull/1168)) [@AyodeAwe](https://github.com/AyodeAwe) - Remove deprecated headers ([#1145](https://github.com/rapidsai/raft/pull/1145)) [@lowener](https://github.com/lowener) - Simplify distance/detail to make is easier to dispatch to different kernel implementations ([#1142](https://github.com/rapidsai/raft/pull/1142)) [@ahendriksen](https://github.com/ahendriksen) - Initial port of auto-find-k ([#1070](https://github.com/rapidsai/raft/pull/1070)) [@cjnolet](https://github.com/cjnolet) # raft 23.02.00 (9 Feb 2023) ## 🚨 Breaking Changes - Remove faiss ANN code from knnIndex ([#1121](https://github.com/rapidsai/raft/pull/1121)) [@benfred](https://github.com/benfred) - Use `GenPC` (Permuted Congruential) as the default random number generator everywhere ([#1099](https://github.com/rapidsai/raft/pull/1099)) [@Nyrio](https://github.com/Nyrio) ## 🐛 Bug Fixes - Reverting a few commits from 23.02 and speeding up end-to-end build time ([#1232](https://github.com/rapidsai/raft/pull/1232)) [@cjnolet](https://github.com/cjnolet) - Update README.md: fix a missing word ([#1185](https://github.com/rapidsai/raft/pull/1185)) [@achirkin](https://github.com/achirkin) - balanced-k-means: fix a too large initial memory pool size ([#1148](https://github.com/rapidsai/raft/pull/1148)) [@achirkin](https://github.com/achirkin) - Catch signal handler change error ([#1147](https://github.com/rapidsai/raft/pull/1147)) [@tfeher](https://github.com/tfeher) - Squared norm fix follow-up (change was lost in merge conflict) ([#1144](https://github.com/rapidsai/raft/pull/1144)) [@Nyrio](https://github.com/Nyrio) - IVF-Flat bug fix: the *squared* norm is required for expanded distance calculations ([#1141](https://github.com/rapidsai/raft/pull/1141)) [@Nyrio](https://github.com/Nyrio) - build.sh switch to use `RAPIDS` magic value ([#1132](https://github.com/rapidsai/raft/pull/1132)) [@robertmaynard](https://github.com/robertmaynard) - Fix `euclidean_dist` in IVF-Flat search ([#1122](https://github.com/rapidsai/raft/pull/1122)) [@Nyrio](https://github.com/Nyrio) - Update handle docstring ([#1103](https://github.com/rapidsai/raft/pull/1103)) [@dantegd](https://github.com/dantegd) - Pin libcusparse and libcusolver to avoid CUDA 12 ([#1095](https://github.com/rapidsai/raft/pull/1095)) [@wphicks](https://github.com/wphicks) - Fix race condition in `raft::random::discrete` ([#1094](https://github.com/rapidsai/raft/pull/1094)) [@Nyrio](https://github.com/Nyrio) - Fixing libraft conda recipes ([#1084](https://github.com/rapidsai/raft/pull/1084)) [@cjnolet](https://github.com/cjnolet) - Ensure that we get the cuda version of faiss. ([#1078](https://github.com/rapidsai/raft/pull/1078)) [@vyasr](https://github.com/vyasr) - Fix double definition error in ANN refinement header ([#1067](https://github.com/rapidsai/raft/pull/1067)) [@tfeher](https://github.com/tfeher) - Specify correct global targets names to raft_export ([#1054](https://github.com/rapidsai/raft/pull/1054)) [@robertmaynard](https://github.com/robertmaynard) - Fix concurrency issues in k-means++ initialization ([#1048](https://github.com/rapidsai/raft/pull/1048)) [@Nyrio](https://github.com/Nyrio) ## 📖 Documentation - Adding small comms tutorial to docs ([#1204](https://github.com/rapidsai/raft/pull/1204)) [@cjnolet](https://github.com/cjnolet) - Separating more namespaces into easier-to-consume sections ([#1091](https://github.com/rapidsai/raft/pull/1091)) [@cjnolet](https://github.com/cjnolet) - Paying down some tech debt on docs, runtime API, and cython ([#1055](https://github.com/rapidsai/raft/pull/1055)) [@cjnolet](https://github.com/cjnolet) ## 🚀 New Features - Add function to convert mdspan to a const view ([#1188](https://github.com/rapidsai/raft/pull/1188)) [@lowener](https://github.com/lowener) - Internal library to share headers between test and bench ([#1162](https://github.com/rapidsai/raft/pull/1162)) [@achirkin](https://github.com/achirkin) - Add public API and tests for hierarchical balanced k-means ([#1113](https://github.com/rapidsai/raft/pull/1113)) [@Nyrio](https://github.com/Nyrio) - Export NCCL dependency as part of raft::distributed. ([#1077](https://github.com/rapidsai/raft/pull/1077)) [@vyasr](https://github.com/vyasr) - Serialization of IVF Flat and IVF PQ ([#919](https://github.com/rapidsai/raft/pull/919)) [@tfeher](https://github.com/tfeher) ## 🛠️ Improvements - Pin `dask` and `distributed` for release ([#1242](https://github.com/rapidsai/raft/pull/1242)) [@galipremsagar](https://github.com/galipremsagar) - Update shared workflow branches ([#1241](https://github.com/rapidsai/raft/pull/1241)) [@ajschmidt8](https://github.com/ajschmidt8) - Removing interruptible from basic handle sync. ([#1224](https://github.com/rapidsai/raft/pull/1224)) [@cjnolet](https://github.com/cjnolet) - pre-commit: Update isort version to 5.12.0 ([#1215](https://github.com/rapidsai/raft/pull/1215)) [@wence-](https://github.com/wence-) - Pin wheel dependencies to same RAPIDS release ([#1200](https://github.com/rapidsai/raft/pull/1200)) [@sevagh](https://github.com/sevagh) - Serializer for mdspans ([#1173](https://github.com/rapidsai/raft/pull/1173)) [@hcho3](https://github.com/hcho3) - Use CTK 118/cp310 branch of wheel workflows ([#1169](https://github.com/rapidsai/raft/pull/1169)) [@sevagh](https://github.com/sevagh) - Enable shallow copy of `handle_t`&#39;s resources with different workspace_resource ([#1165](https://github.com/rapidsai/raft/pull/1165)) [@cjnolet](https://github.com/cjnolet) - Protect balanced k-means out-of-memory in some cases ([#1161](https://github.com/rapidsai/raft/pull/1161)) [@achirkin](https://github.com/achirkin) - Use squeuclidean for metric name in ivf_pq python bindings ([#1160](https://github.com/rapidsai/raft/pull/1160)) [@benfred](https://github.com/benfred) - ANN tests: make the min_recall check strict ([#1156](https://github.com/rapidsai/raft/pull/1156)) [@achirkin](https://github.com/achirkin) - Make cutlass use static ctk ([#1155](https://github.com/rapidsai/raft/pull/1155)) [@sevagh](https://github.com/sevagh) - Fix various build errors ([#1152](https://github.com/rapidsai/raft/pull/1152)) [@hcho3](https://github.com/hcho3) - Remove faiss bfKnn call from fused_l2_knn unittest ([#1150](https://github.com/rapidsai/raft/pull/1150)) [@benfred](https://github.com/benfred) - Fix `unary_op` docs and add `map_offset` as an improved version of `write_only_unary_op` ([#1149](https://github.com/rapidsai/raft/pull/1149)) [@Nyrio](https://github.com/Nyrio) - Improvement of the math API wrappers ([#1146](https://github.com/rapidsai/raft/pull/1146)) [@Nyrio](https://github.com/Nyrio) - Changing handle_t to device_resources everywhere ([#1140](https://github.com/rapidsai/raft/pull/1140)) [@cjnolet](https://github.com/cjnolet) - Add L2SqrtExpanded support to ivf_pq ([#1138](https://github.com/rapidsai/raft/pull/1138)) [@benfred](https://github.com/benfred) - Adding workspace resource ([#1137](https://github.com/rapidsai/raft/pull/1137)) [@cjnolet](https://github.com/cjnolet) - Add raft::void_op functor ([#1136](https://github.com/rapidsai/raft/pull/1136)) [@ahendriksen](https://github.com/ahendriksen) - IVF-PQ: tighten the test criteria ([#1135](https://github.com/rapidsai/raft/pull/1135)) [@achirkin](https://github.com/achirkin) - Fix documentation author ([#1134](https://github.com/rapidsai/raft/pull/1134)) [@bdice](https://github.com/bdice) - Add L2SqrtExpanded support to ivf_flat ANN indices ([#1133](https://github.com/rapidsai/raft/pull/1133)) [@benfred](https://github.com/benfred) - Improvements in `matrix::gather`: test coverage, compilation errors, performance ([#1126](https://github.com/rapidsai/raft/pull/1126)) [@Nyrio](https://github.com/Nyrio) - Adding ability to use an existing stream in the pylibraft Handle ([#1125](https://github.com/rapidsai/raft/pull/1125)) [@cjnolet](https://github.com/cjnolet) - Remove faiss ANN code from knnIndex ([#1121](https://github.com/rapidsai/raft/pull/1121)) [@benfred](https://github.com/benfred) - Update builds for CUDA `11.8` and Python `3.10` ([#1120](https://github.com/rapidsai/raft/pull/1120)) [@ajschmidt8](https://github.com/ajschmidt8) - Update workflows for nightly tests ([#1119](https://github.com/rapidsai/raft/pull/1119)) [@ajschmidt8](https://github.com/ajschmidt8) - Enable `Recently Updated` Check ([#1117](https://github.com/rapidsai/raft/pull/1117)) [@ajschmidt8](https://github.com/ajschmidt8) - Build wheels alongside conda CI ([#1116](https://github.com/rapidsai/raft/pull/1116)) [@sevagh](https://github.com/sevagh) - Allow host dataset for IVF-PQ ([#1114](https://github.com/rapidsai/raft/pull/1114)) [@tfeher](https://github.com/tfeher) - Decoupling raft handle from underlying resources ([#1111](https://github.com/rapidsai/raft/pull/1111)) [@cjnolet](https://github.com/cjnolet) - Fixing an index error introduced in PR #1109 ([#1110](https://github.com/rapidsai/raft/pull/1110)) [@vinaydes](https://github.com/vinaydes) - Fixing the sample-without-replacement test failures ([#1109](https://github.com/rapidsai/raft/pull/1109)) [@vinaydes](https://github.com/vinaydes) - Remove faiss dependency from fused_l2_knn.cuh, selection_faiss.cuh, ball_cover.cuh and haversine_distance.cuh ([#1108](https://github.com/rapidsai/raft/pull/1108)) [@benfred](https://github.com/benfred) - Remove redundant operators in sparse/distance and move others to raft/core ([#1105](https://github.com/rapidsai/raft/pull/1105)) [@Nyrio](https://github.com/Nyrio) - Speedup `make_blobs` by up to 2x by fixing inefficient kernel launch configuration ([#1100](https://github.com/rapidsai/raft/pull/1100)) [@Nyrio](https://github.com/Nyrio) - Use `GenPC` (Permuted Congruential) as the default random number generator everywhere ([#1099](https://github.com/rapidsai/raft/pull/1099)) [@Nyrio](https://github.com/Nyrio) - Cleanup faiss includes ([#1098](https://github.com/rapidsai/raft/pull/1098)) [@benfred](https://github.com/benfred) - matrix::select_k: move selection and warp-sort primitives ([#1085](https://github.com/rapidsai/raft/pull/1085)) [@achirkin](https://github.com/achirkin) - Exclude changelog from pre-commit spellcheck ([#1083](https://github.com/rapidsai/raft/pull/1083)) [@benfred](https://github.com/benfred) - Add GitHub Actions Workflows. ([#1076](https://github.com/rapidsai/raft/pull/1076)) [@bdice](https://github.com/bdice) - Adding uninstall option to build.sh ([#1075](https://github.com/rapidsai/raft/pull/1075)) [@cjnolet](https://github.com/cjnolet) - Use doctest for testing python example docstrings ([#1073](https://github.com/rapidsai/raft/pull/1073)) [@benfred](https://github.com/benfred) - Minor cython fixes / cleanup ([#1072](https://github.com/rapidsai/raft/pull/1072)) [@benfred](https://github.com/benfred) - IVF-PQ: tweak launch configuration ([#1069](https://github.com/rapidsai/raft/pull/1069)) [@achirkin](https://github.com/achirkin) - Unpin `dask` and `distributed` for development ([#1068](https://github.com/rapidsai/raft/pull/1068)) [@galipremsagar](https://github.com/galipremsagar) - Bifurcate Dependency Lists ([#1065](https://github.com/rapidsai/raft/pull/1065)) [@ajschmidt8](https://github.com/ajschmidt8) - Add support for 64bit svdeig ([#1060](https://github.com/rapidsai/raft/pull/1060)) [@lowener](https://github.com/lowener) - switch mma instruction shape to 1684 from current 1688 for 3xTF32 L2/cosine kernel ([#1057](https://github.com/rapidsai/raft/pull/1057)) [@mdoijade](https://github.com/mdoijade) - Make IVF-PQ build index in batches when necessary ([#1056](https://github.com/rapidsai/raft/pull/1056)) [@achirkin](https://github.com/achirkin) - Remove unused setuputils modules ([#1053](https://github.com/rapidsai/raft/pull/1053)) [@vyasr](https://github.com/vyasr) - Branch 23.02 merge 22.12 ([#1051](https://github.com/rapidsai/raft/pull/1051)) [@benfred](https://github.com/benfred) - Shared-memory-cached kernel for `reduce_cols_by_key` to limit atomic conflicts ([#1050](https://github.com/rapidsai/raft/pull/1050)) [@Nyrio](https://github.com/Nyrio) - Unify use of common functors ([#1049](https://github.com/rapidsai/raft/pull/1049)) [@Nyrio](https://github.com/Nyrio) - Replace k-means++ CPU bottleneck with a `random::discrete` prim ([#1039](https://github.com/rapidsai/raft/pull/1039)) [@Nyrio](https://github.com/Nyrio) - Add python bindings for kmeans fit ([#1016](https://github.com/rapidsai/raft/pull/1016)) [@benfred](https://github.com/benfred) - Add MaskedL2NN ([#838](https://github.com/rapidsai/raft/pull/838)) [@ahendriksen](https://github.com/ahendriksen) - Move contractions tiling logic outside of Contractions_NT ([#837](https://github.com/rapidsai/raft/pull/837)) [@ahendriksen](https://github.com/ahendriksen) # raft 22.12.00 (8 Dec 2022) ## 🚨 Breaking Changes - Make ucx linkage explicit and add a new CMake target for it ([#1032](https://github.com/rapidsai/raft/pull/1032)) [@vyasr](https://github.com/vyasr) - IVF-Flat: make adaptive-centers behavior optional ([#1019](https://github.com/rapidsai/raft/pull/1019)) [@achirkin](https://github.com/achirkin) - Remove make_mdspan template for memory_type enum ([#1005](https://github.com/rapidsai/raft/pull/1005)) [@wphicks](https://github.com/wphicks) - ivf-pq performance tweaks ([#926](https://github.com/rapidsai/raft/pull/926)) [@achirkin](https://github.com/achirkin) ## 🐛 Bug Fixes - fusedL2NN: Add input alignment checks ([#1045](https://github.com/rapidsai/raft/pull/1045)) [@achirkin](https://github.com/achirkin) - Fix fusedL2NN bug that can happen when the same point appears in both x and y ([#1040](https://github.com/rapidsai/raft/pull/1040)) [@Nyrio](https://github.com/Nyrio) - Fix trivial deprecated header includes ([#1034](https://github.com/rapidsai/raft/pull/1034)) [@achirkin](https://github.com/achirkin) - Suppress ptxas stack size warning in Debug mode ([#1033](https://github.com/rapidsai/raft/pull/1033)) [@tfeher](https://github.com/tfeher) - Don&#39;t use CMake 3.25.0 as it has a FindCUDAToolkit show stopping bug ([#1029](https://github.com/rapidsai/raft/pull/1029)) [@robertmaynard](https://github.com/robertmaynard) - Fix for gemmi deprecation ([#1020](https://github.com/rapidsai/raft/pull/1020)) [@lowener](https://github.com/lowener) - Remove make_mdspan template for memory_type enum ([#1005](https://github.com/rapidsai/raft/pull/1005)) [@wphicks](https://github.com/wphicks) - Add `except +` to cython extern cdef declarations ([#1001](https://github.com/rapidsai/raft/pull/1001)) [@benfred](https://github.com/benfred) - Changing Overloads for GCC 11/12 bug ([#995](https://github.com/rapidsai/raft/pull/995)) [@divyegala](https://github.com/divyegala) - Changing Overloads for GCC 11/12 bugs ([#992](https://github.com/rapidsai/raft/pull/992)) [@divyegala](https://github.com/divyegala) - Fix pylibraft docstring example code ([#980](https://github.com/rapidsai/raft/pull/980)) [@benfred](https://github.com/benfred) - Update raft tests to compile with C++17 features enabled ([#973](https://github.com/rapidsai/raft/pull/973)) [@robertmaynard](https://github.com/robertmaynard) - Making ivf flat gtest invoke mdspanified APIs ([#955](https://github.com/rapidsai/raft/pull/955)) [@cjnolet](https://github.com/cjnolet) - Updates to kmeans public API to fix cuml ([#932](https://github.com/rapidsai/raft/pull/932)) [@cjnolet](https://github.com/cjnolet) - Fix logger (vsnprintf consumes args) ([#917](https://github.com/rapidsai/raft/pull/917)) [@Nyrio](https://github.com/Nyrio) - Adding missing include for device mdspan in `mean_squared_error.cuh` ([#906](https://github.com/rapidsai/raft/pull/906)) [@cjnolet](https://github.com/cjnolet) ## 📖 Documentation - Add links to the docs site in the README ([#1042](https://github.com/rapidsai/raft/pull/1042)) [@benfred](https://github.com/benfred) - Moving contributing and developer guides to main docs ([#1006](https://github.com/rapidsai/raft/pull/1006)) [@cjnolet](https://github.com/cjnolet) - Update compiler flags in build docs ([#999](https://github.com/rapidsai/raft/pull/999)) [@cjnolet](https://github.com/cjnolet) - Updating minimum required gcc version ([#993](https://github.com/rapidsai/raft/pull/993)) [@cjnolet](https://github.com/cjnolet) - important doc updates for core, cluster, and neighbors ([#933](https://github.com/rapidsai/raft/pull/933)) [@cjnolet](https://github.com/cjnolet) ## 🚀 New Features - ANN refinement Python wrapper ([#1052](https://github.com/rapidsai/raft/pull/1052)) [@tfeher](https://github.com/tfeher) - Add ANN refinement method ([#1038](https://github.com/rapidsai/raft/pull/1038)) [@tfeher](https://github.com/tfeher) - IVF-Flat: make adaptive-centers behavior optional ([#1019](https://github.com/rapidsai/raft/pull/1019)) [@achirkin](https://github.com/achirkin) - Add wheel builds ([#1013](https://github.com/rapidsai/raft/pull/1013)) [@vyasr](https://github.com/vyasr) - Update cuSparse wrappers to avoid deprecated functions ([#989](https://github.com/rapidsai/raft/pull/989)) [@wphicks](https://github.com/wphicks) - Provide memory_type enum ([#984](https://github.com/rapidsai/raft/pull/984)) [@wphicks](https://github.com/wphicks) - Add Tests for kmeans API ([#982](https://github.com/rapidsai/raft/pull/982)) [@lowener](https://github.com/lowener) - mdspanifying `weighted_mean` and add `raft::stats` tests ([#910](https://github.com/rapidsai/raft/pull/910)) [@lowener](https://github.com/lowener) - Implement `raft::stats` API with mdspan ([#802](https://github.com/rapidsai/raft/pull/802)) [@lowener](https://github.com/lowener) ## 🛠️ Improvements - Pin `dask` and `distributed` for release ([#1062](https://github.com/rapidsai/raft/pull/1062)) [@galipremsagar](https://github.com/galipremsagar) - IVF-PQ: use device properties helper ([#1035](https://github.com/rapidsai/raft/pull/1035)) [@achirkin](https://github.com/achirkin) - Make ucx linkage explicit and add a new CMake target for it ([#1032](https://github.com/rapidsai/raft/pull/1032)) [@vyasr](https://github.com/vyasr) - Fixing broken doc functions and improving coverage ([#1030](https://github.com/rapidsai/raft/pull/1030)) [@cjnolet](https://github.com/cjnolet) - Expose cluster_cost to python ([#1028](https://github.com/rapidsai/raft/pull/1028)) [@benfred](https://github.com/benfred) - Adding lightweight cai_wrapper to reduce boilerplate ([#1027](https://github.com/rapidsai/raft/pull/1027)) [@cjnolet](https://github.com/cjnolet) - Change `raft` docs theme to `pydata-sphinx-theme` ([#1026](https://github.com/rapidsai/raft/pull/1026)) [@galipremsagar](https://github.com/galipremsagar) - Revert &quot; Pin `dask` and `distributed` for release&quot; ([#1023](https://github.com/rapidsai/raft/pull/1023)) [@galipremsagar](https://github.com/galipremsagar) - Pin `dask` and `distributed` for release ([#1022](https://github.com/rapidsai/raft/pull/1022)) [@galipremsagar](https://github.com/galipremsagar) - Replace `dots_along_rows` with `rowNorm` and improve `coalescedReduction` performance ([#1011](https://github.com/rapidsai/raft/pull/1011)) [@Nyrio](https://github.com/Nyrio) - Moving TestDeviceBuffer to `pylibraft.common.device_ndarray` ([#1008](https://github.com/rapidsai/raft/pull/1008)) [@cjnolet](https://github.com/cjnolet) - Add codespell as a linter ([#1007](https://github.com/rapidsai/raft/pull/1007)) [@benfred](https://github.com/benfred) - Fix environment channels ([#996](https://github.com/rapidsai/raft/pull/996)) [@bdice](https://github.com/bdice) - Automatically sync handle when not passed to pylibraft functions ([#987](https://github.com/rapidsai/raft/pull/987)) [@benfred](https://github.com/benfred) - Replace `normalize_rows` in `ann_utils.cuh` by a new `rowNormalize` prim and improve performance for thin matrices (small `n_cols`) ([#979](https://github.com/rapidsai/raft/pull/979)) [@Nyrio](https://github.com/Nyrio) - Forward merge 22.10 into 22.12 ([#978](https://github.com/rapidsai/raft/pull/978)) [@vyasr](https://github.com/vyasr) - Use new rapids-cmake functionality for rpath handling. ([#976](https://github.com/rapidsai/raft/pull/976)) [@vyasr](https://github.com/vyasr) - Update cuda-python dependency to 11.7.1 ([#975](https://github.com/rapidsai/raft/pull/975)) [@galipremsagar](https://github.com/galipremsagar) - IVF-PQ Python wrappers ([#970](https://github.com/rapidsai/raft/pull/970)) [@tfeher](https://github.com/tfeher) - Remove unnecessary requirements for raft-dask. ([#969](https://github.com/rapidsai/raft/pull/969)) [@vyasr](https://github.com/vyasr) - Expose `linalg::dot` in public API ([#968](https://github.com/rapidsai/raft/pull/968)) [@benfred](https://github.com/benfred) - Fix kmeans cluster templates ([#966](https://github.com/rapidsai/raft/pull/966)) [@lowener](https://github.com/lowener) - Run linters using pre-commit ([#965](https://github.com/rapidsai/raft/pull/965)) [@benfred](https://github.com/benfred) - linewiseop padded span test ([#964](https://github.com/rapidsai/raft/pull/964)) [@mfoerste4](https://github.com/mfoerste4) - Add unittest for `linalg::mean_squared_error` ([#961](https://github.com/rapidsai/raft/pull/961)) [@benfred](https://github.com/benfred) - Exposing fused l2 knn to public APIs ([#959](https://github.com/rapidsai/raft/pull/959)) [@cjnolet](https://github.com/cjnolet) - Remove a left over print statement from pylibraft ([#958](https://github.com/rapidsai/raft/pull/958)) [@betatim](https://github.com/betatim) - Switch to using rapids-cmake for gbench. ([#954](https://github.com/rapidsai/raft/pull/954)) [@vyasr](https://github.com/vyasr) - Some cleanup of k-means internals ([#953](https://github.com/rapidsai/raft/pull/953)) [@cjnolet](https://github.com/cjnolet) - Remove stale labeler ([#951](https://github.com/rapidsai/raft/pull/951)) [@raydouglass](https://github.com/raydouglass) - Adding optional handle to each public API function (along with example) ([#947](https://github.com/rapidsai/raft/pull/947)) [@cjnolet](https://github.com/cjnolet) - Improving documentation across the board. Adding quick-start to breathe docs. ([#943](https://github.com/rapidsai/raft/pull/943)) [@cjnolet](https://github.com/cjnolet) - Add unittest for `linalg::axpy` ([#942](https://github.com/rapidsai/raft/pull/942)) [@benfred](https://github.com/benfred) - Add cutlass 3xTF32,DMMA based L2/cosine distance kernels for SM 8.0 or higher ([#939](https://github.com/rapidsai/raft/pull/939)) [@mdoijade](https://github.com/mdoijade) - Calculate max cluster size correctly for IVF-PQ ([#938](https://github.com/rapidsai/raft/pull/938)) [@tfeher](https://github.com/tfeher) - Add tests for `raft::matrix` ([#937](https://github.com/rapidsai/raft/pull/937)) [@lowener](https://github.com/lowener) - Add fusedL2NN benchmark ([#936](https://github.com/rapidsai/raft/pull/936)) [@Nyrio](https://github.com/Nyrio) - ivf-pq performance tweaks ([#926](https://github.com/rapidsai/raft/pull/926)) [@achirkin](https://github.com/achirkin) - Adding `fused_l2_nn_argmin` wrapper to Pylibraft ([#924](https://github.com/rapidsai/raft/pull/924)) [@cjnolet](https://github.com/cjnolet) - Moving kernel gramm primitives to `raft::distance::kernels` ([#920](https://github.com/rapidsai/raft/pull/920)) [@cjnolet](https://github.com/cjnolet) - kmeans improvements: random initialization on GPU, NVTX markers, no batching when using fusedL2NN ([#918](https://github.com/rapidsai/raft/pull/918)) [@Nyrio](https://github.com/Nyrio) - Moving `raft::spatial::knn` -&gt; `raft::neighbors` ([#914](https://github.com/rapidsai/raft/pull/914)) [@cjnolet](https://github.com/cjnolet) - Create cub-based argmin primitive and replace `argmin_along_rows` in ANN kmeans ([#912](https://github.com/rapidsai/raft/pull/912)) [@Nyrio](https://github.com/Nyrio) - Replace `map_along_rows` with `matrixVectorOp` ([#911](https://github.com/rapidsai/raft/pull/911)) [@Nyrio](https://github.com/Nyrio) - Integrate `accumulate_into_selected` from ANN utils into `linalg::reduce_rows_by_keys` ([#909](https://github.com/rapidsai/raft/pull/909)) [@Nyrio](https://github.com/Nyrio) - Re-enabling Fused L2 NN specializations and renaming `cub::KeyValuePair` -&gt; `raft::KeyValuePair` ([#905](https://github.com/rapidsai/raft/pull/905)) [@cjnolet](https://github.com/cjnolet) - Unpin `dask` and `distributed` for development ([#886](https://github.com/rapidsai/raft/pull/886)) [@galipremsagar](https://github.com/galipremsagar) - Adding padded layout &#39;layout_padded_general&#39; ([#725](https://github.com/rapidsai/raft/pull/725)) [@mfoerste4](https://github.com/mfoerste4) # raft 22.10.00 (12 Oct 2022) ## 🚨 Breaking Changes - Separating mdspan/mdarray infra into host_* and device_* variants ([#810](https://github.com/rapidsai/raft/pull/810)) [@cjnolet](https://github.com/cjnolet) - Remove type punning from TxN_t ([#781](https://github.com/rapidsai/raft/pull/781)) [@wphicks](https://github.com/wphicks) - ivf_flat::index: hide implementation details ([#747](https://github.com/rapidsai/raft/pull/747)) [@achirkin](https://github.com/achirkin) ## 🐛 Bug Fixes - ivf-pq integration: hotfixes ([#891](https://github.com/rapidsai/raft/pull/891)) [@achirkin](https://github.com/achirkin) - Removing cub symbol from libraft-distance instantiation. ([#887](https://github.com/rapidsai/raft/pull/887)) [@cjnolet](https://github.com/cjnolet) - ivf-pq post integration hotfixes ([#878](https://github.com/rapidsai/raft/pull/878)) [@achirkin](https://github.com/achirkin) - Fixing a few compile errors in new APIs ([#874](https://github.com/rapidsai/raft/pull/874)) [@cjnolet](https://github.com/cjnolet) - Include knn.cuh in knn.cu benchmark source for finding brute_force_knn ([#855](https://github.com/rapidsai/raft/pull/855)) [@teju85](https://github.com/teju85) - Do not use strcpy to copy 2 char ([#848](https://github.com/rapidsai/raft/pull/848)) [@mhoemmen](https://github.com/mhoemmen) - rng_state not including necessary cstdint ([#839](https://github.com/rapidsai/raft/pull/839)) [@MatthiasKohl](https://github.com/MatthiasKohl) - Fix integer overflow in ANN kmeans ([#835](https://github.com/rapidsai/raft/pull/835)) [@Nyrio](https://github.com/Nyrio) - Add alignment to the TxN_t vectorized type ([#792](https://github.com/rapidsai/raft/pull/792)) [@achirkin](https://github.com/achirkin) - Fix adj_to_csr_kernel ([#785](https://github.com/rapidsai/raft/pull/785)) [@ahendriksen](https://github.com/ahendriksen) - Use rapids-cmake 22.10 best practice for RAPIDS.cmake location ([#784](https://github.com/rapidsai/raft/pull/784)) [@robertmaynard](https://github.com/robertmaynard) - Remove type punning from TxN_t ([#781](https://github.com/rapidsai/raft/pull/781)) [@wphicks](https://github.com/wphicks) - Various fixes for build.sh ([#771](https://github.com/rapidsai/raft/pull/771)) [@vyasr](https://github.com/vyasr) ## 📖 Documentation - Fix target names in build.sh help text ([#879](https://github.com/rapidsai/raft/pull/879)) [@Nyrio](https://github.com/Nyrio) - Document that minimum required CMake version is now 3.23.1 ([#841](https://github.com/rapidsai/raft/pull/841)) [@robertmaynard](https://github.com/robertmaynard) ## 🚀 New Features - mdspanify raft::random functions uniformInt, normalTable, fill, bernoulli, and scaled_bernoulli ([#897](https://github.com/rapidsai/raft/pull/897)) [@mhoemmen](https://github.com/mhoemmen) - mdspan-ify several raft::random rng functions ([#857](https://github.com/rapidsai/raft/pull/857)) [@mhoemmen](https://github.com/mhoemmen) - Develop new mdspan-ified multi_variable_gaussian interface ([#845](https://github.com/rapidsai/raft/pull/845)) [@mhoemmen](https://github.com/mhoemmen) - Mdspanify permute ([#834](https://github.com/rapidsai/raft/pull/834)) [@mhoemmen](https://github.com/mhoemmen) - mdspan-ify rmat_rectangular_gen ([#833](https://github.com/rapidsai/raft/pull/833)) [@mhoemmen](https://github.com/mhoemmen) - mdspanify sampleWithoutReplacement ([#830](https://github.com/rapidsai/raft/pull/830)) [@mhoemmen](https://github.com/mhoemmen) - mdspan-ify make_regression ([#811](https://github.com/rapidsai/raft/pull/811)) [@mhoemmen](https://github.com/mhoemmen) - Updating `raft::linalg` APIs to use `mdspan` ([#809](https://github.com/rapidsai/raft/pull/809)) [@divyegala](https://github.com/divyegala) - Integrate KNN implementation: ivf-pq ([#789](https://github.com/rapidsai/raft/pull/789)) [@achirkin](https://github.com/achirkin) ## 🛠️ Improvements - Some fixes for build.sh ([#901](https://github.com/rapidsai/raft/pull/901)) [@cjnolet](https://github.com/cjnolet) - Revert recent fused l2 nn instantiations ([#899](https://github.com/rapidsai/raft/pull/899)) [@cjnolet](https://github.com/cjnolet) - Update Python build instructions ([#898](https://github.com/rapidsai/raft/pull/898)) [@betatim](https://github.com/betatim) - Adding ninja and cxx compilers to conda dev dependencies ([#893](https://github.com/rapidsai/raft/pull/893)) [@cjnolet](https://github.com/cjnolet) - Output non-normalized distances in IVF-PQ and brute-force KNN ([#892](https://github.com/rapidsai/raft/pull/892)) [@Nyrio](https://github.com/Nyrio) - Readme updates for 22.10 ([#884](https://github.com/rapidsai/raft/pull/884)) [@cjnolet](https://github.com/cjnolet) - Breaking apart benchmarks into individual binaries ([#883](https://github.com/rapidsai/raft/pull/883)) [@cjnolet](https://github.com/cjnolet) - Pin `dask` and `distributed` for release ([#858](https://github.com/rapidsai/raft/pull/858)) [@galipremsagar](https://github.com/galipremsagar) - Mdspanifying (currently tested) `raft::matrix` ([#846](https://github.com/rapidsai/raft/pull/846)) [@cjnolet](https://github.com/cjnolet) - Separating _RAFT_HOST and _RAFT_DEVICE macros ([#836](https://github.com/rapidsai/raft/pull/836)) [@cjnolet](https://github.com/cjnolet) - Updating cpu job in hopes it speeds up python cpu builds ([#828](https://github.com/rapidsai/raft/pull/828)) [@cjnolet](https://github.com/cjnolet) - Mdspan-ifying `raft::spatial` ([#827](https://github.com/rapidsai/raft/pull/827)) [@cjnolet](https://github.com/cjnolet) - Fixing __init__.py for handle and stream ([#826](https://github.com/rapidsai/raft/pull/826)) [@cjnolet](https://github.com/cjnolet) - Moving a few more things around ([#822](https://github.com/rapidsai/raft/pull/822)) [@cjnolet](https://github.com/cjnolet) - Use fusedL2NN in ANN kmeans ([#821](https://github.com/rapidsai/raft/pull/821)) [@Nyrio](https://github.com/Nyrio) - Separating test executables ([#820](https://github.com/rapidsai/raft/pull/820)) [@cjnolet](https://github.com/cjnolet) - Separating mdspan/mdarray infra into host_* and device_* variants ([#810](https://github.com/rapidsai/raft/pull/810)) [@cjnolet](https://github.com/cjnolet) - Fix malloc/delete mismatch ([#808](https://github.com/rapidsai/raft/pull/808)) [@mhoemmen](https://github.com/mhoemmen) - Renaming `pyraft` -&gt; `raft-dask` ([#801](https://github.com/rapidsai/raft/pull/801)) [@cjnolet](https://github.com/cjnolet) - Branch 22.10 merge 22.08 ([#800](https://github.com/rapidsai/raft/pull/800)) [@cjnolet](https://github.com/cjnolet) - Statically link all CUDA toolkit libraries ([#797](https://github.com/rapidsai/raft/pull/797)) [@trxcllnt](https://github.com/trxcllnt) - Minor follow-up fixes for ivf-flat ([#796](https://github.com/rapidsai/raft/pull/796)) [@achirkin](https://github.com/achirkin) - KMeans benchmarks (cuML + ANN implementations) and fix for IndexT=int64_t ([#795](https://github.com/rapidsai/raft/pull/795)) [@Nyrio](https://github.com/Nyrio) - Optimize fusedL2NN when data is skinny ([#794](https://github.com/rapidsai/raft/pull/794)) [@ahendriksen](https://github.com/ahendriksen) - Complete the deprecation of duplicated hpp headers ([#793](https://github.com/rapidsai/raft/pull/793)) [@ahendriksen](https://github.com/ahendriksen) - Prepare parts of the balanced kmeans for ivf-pq ([#788](https://github.com/rapidsai/raft/pull/788)) [@achirkin](https://github.com/achirkin) - Unpin `dask` and `distributed` for development ([#783](https://github.com/rapidsai/raft/pull/783)) [@galipremsagar](https://github.com/galipremsagar) - Exposing python wrapper for the RMAT generator logic ([#778](https://github.com/rapidsai/raft/pull/778)) [@teju85](https://github.com/teju85) - Device, Host, Managed Accessor Types for `mdspan` ([#776](https://github.com/rapidsai/raft/pull/776)) [@divyegala](https://github.com/divyegala) - Fix Forward-Merger Conflicts ([#768](https://github.com/rapidsai/raft/pull/768)) [@ajschmidt8](https://github.com/ajschmidt8) - Fea 2208 kmeans use specializations ([#760](https://github.com/rapidsai/raft/pull/760)) [@cjnolet](https://github.com/cjnolet) - ivf_flat::index: hide implementation details ([#747](https://github.com/rapidsai/raft/pull/747)) [@achirkin](https://github.com/achirkin) # raft 22.08.00 (17 Aug 2022) ## 🚨 Breaking Changes - Update `mdspan` to account for changes to `extents` ([#751](https://github.com/rapidsai/raft/pull/751)) [@divyegala](https://github.com/divyegala) - Replace csr_adj_graph functions with faster equivalent ([#746](https://github.com/rapidsai/raft/pull/746)) [@ahendriksen](https://github.com/ahendriksen) - Integrate KNN implementation: ivf-flat ([#652](https://github.com/rapidsai/raft/pull/652)) [@achirkin](https://github.com/achirkin) - Moving kmeans from cuml to Raft ([#605](https://github.com/rapidsai/raft/pull/605)) [@lowener](https://github.com/lowener) ## 🐛 Bug Fixes - Relax ivf-flat test recall thresholds ([#766](https://github.com/rapidsai/raft/pull/766)) [@achirkin](https://github.com/achirkin) - Restrict the use of `]` to CXX 20 only. ([#764](https://github.com/rapidsai/raft/pull/764)) [@trivialfis](https://github.com/trivialfis) - Update rapids-cmake version for pyraft in update-version.sh ([#749](https://github.com/rapidsai/raft/pull/749)) [@vyasr](https://github.com/vyasr) ## 📖 Documentation - Use documented header template for doxygen ([#773](https://github.com/rapidsai/raft/pull/773)) [@galipremsagar](https://github.com/galipremsagar) - Switch `language` from `None` to `&quot;en&quot;` in docs build ([#721](https://github.com/rapidsai/raft/pull/721)) [@galipremsagar](https://github.com/galipremsagar) ## 🚀 New Features - Update `mdspan` to account for changes to `extents` ([#751](https://github.com/rapidsai/raft/pull/751)) [@divyegala](https://github.com/divyegala) - Implement matrix transpose with mdspan. ([#739](https://github.com/rapidsai/raft/pull/739)) [@trivialfis](https://github.com/trivialfis) - Implement unravel_index for row-major array. ([#723](https://github.com/rapidsai/raft/pull/723)) [@trivialfis](https://github.com/trivialfis) - Integrate KNN implementation: ivf-flat ([#652](https://github.com/rapidsai/raft/pull/652)) [@achirkin](https://github.com/achirkin) ## 🛠️ Improvements - Use common `js` and `css` code ([#779](https://github.com/rapidsai/raft/pull/779)) [@galipremsagar](https://github.com/galipremsagar) - Pin `dask` &amp; `distributed` for release ([#772](https://github.com/rapidsai/raft/pull/772)) [@galipremsagar](https://github.com/galipremsagar) - Move cmake to the build section. ([#763](https://github.com/rapidsai/raft/pull/763)) [@vyasr](https://github.com/vyasr) - Adding old kmeans impl back in (as kmeans_deprecated) ([#761](https://github.com/rapidsai/raft/pull/761)) [@cjnolet](https://github.com/cjnolet) - Fix for KMeans raw pointers API ([#758](https://github.com/rapidsai/raft/pull/758)) [@lowener](https://github.com/lowener) - Fix KMeans ([#756](https://github.com/rapidsai/raft/pull/756)) [@divyegala](https://github.com/divyegala) - Add inline to nccl_sync_stream() ([#750](https://github.com/rapidsai/raft/pull/750)) [@seunghwak](https://github.com/seunghwak) - Replace csr_adj_graph functions with faster equivalent ([#746](https://github.com/rapidsai/raft/pull/746)) [@ahendriksen](https://github.com/ahendriksen) - Add wrapper functions for ncclGroupStart() and ncclGroupEnd() ([#742](https://github.com/rapidsai/raft/pull/742)) [@seunghwak](https://github.com/seunghwak) - Fix variadic template type check for mdarrays ([#741](https://github.com/rapidsai/raft/pull/741)) [@hlinsen](https://github.com/hlinsen) - RMAT rectangular graph generator ([#738](https://github.com/rapidsai/raft/pull/738)) [@teju85](https://github.com/teju85) - Update conda recipes to UCX 1.13.0 ([#736](https://github.com/rapidsai/raft/pull/736)) [@pentschev](https://github.com/pentschev) - Add warp-aggregated atomic increment ([#735](https://github.com/rapidsai/raft/pull/735)) [@ahendriksen](https://github.com/ahendriksen) - fix logic bug in include_checker.py utility ([#734](https://github.com/rapidsai/raft/pull/734)) [@grlee77](https://github.com/grlee77) - Support 32bit and unsigned indices in bruteforce KNN ([#730](https://github.com/rapidsai/raft/pull/730)) [@achirkin](https://github.com/achirkin) - Ability to use ccache to speedup local builds ([#729](https://github.com/rapidsai/raft/pull/729)) [@teju85](https://github.com/teju85) - Pin max version of `cuda-python` to `11.7.0` ([#728](https://github.com/rapidsai/raft/pull/728)) [@Ethyling](https://github.com/Ethyling) - Always add `raft::raft_nn_lib` and `raft::raft_distance_lib` aliases ([#727](https://github.com/rapidsai/raft/pull/727)) [@trxcllnt](https://github.com/trxcllnt) - Add several type aliases and helpers for creating mdarrays ([#726](https://github.com/rapidsai/raft/pull/726)) [@achirkin](https://github.com/achirkin) - fix nans in naive kl divergence kernel introduced by div by 0. ([#724](https://github.com/rapidsai/raft/pull/724)) [@mdoijade](https://github.com/mdoijade) - Use rapids-cmake for cuco ([#722](https://github.com/rapidsai/raft/pull/722)) [@vyasr](https://github.com/vyasr) - Update Python classifiers. ([#719](https://github.com/rapidsai/raft/pull/719)) [@bdice](https://github.com/bdice) - Fix sccache ([#718](https://github.com/rapidsai/raft/pull/718)) [@Ethyling](https://github.com/Ethyling) - Introducing raft::mdspan as an alias ([#715](https://github.com/rapidsai/raft/pull/715)) [@divyegala](https://github.com/divyegala) - Update cuco version ([#714](https://github.com/rapidsai/raft/pull/714)) [@vyasr](https://github.com/vyasr) - Update conda environment pinnings and update-versions.sh. ([#713](https://github.com/rapidsai/raft/pull/713)) [@bdice](https://github.com/bdice) - Branch 22.08 merge branch 22.06 ([#712](https://github.com/rapidsai/raft/pull/712)) [@cjnolet](https://github.com/cjnolet) - Testing conda compilers ([#705](https://github.com/rapidsai/raft/pull/705)) [@cjnolet](https://github.com/cjnolet) - Unpin `dask` &amp; `distributed` for development ([#704](https://github.com/rapidsai/raft/pull/704)) [@galipremsagar](https://github.com/galipremsagar) - Avoid shadowing CMAKE_ARGS variable in build.sh ([#701](https://github.com/rapidsai/raft/pull/701)) [@vyasr](https://github.com/vyasr) - Use unique ptr in `print_device_vector` ([#695](https://github.com/rapidsai/raft/pull/695)) [@lowener](https://github.com/lowener) - Add missing Thrust includes ([#678](https://github.com/rapidsai/raft/pull/678)) [@bdice](https://github.com/bdice) - Consolidate C++ conda recipes and add libraft-tests package ([#641](https://github.com/rapidsai/raft/pull/641)) [@Ethyling](https://github.com/Ethyling) - Moving kmeans from cuml to Raft ([#605](https://github.com/rapidsai/raft/pull/605)) [@lowener](https://github.com/lowener) # raft 22.06.00 (7 Jun 2022) ## 🚨 Breaking Changes - Rng: removed cyclic dependency creating hard-to-debug compiler errors ([#639](https://github.com/rapidsai/raft/pull/639)) [@MatthiasKohl](https://github.com/MatthiasKohl) - Allow enabling NVTX markers by downstream projects after install ([#610](https://github.com/rapidsai/raft/pull/610)) [@achirkin](https://github.com/achirkin) - Rng: expose host-rng-state in host-only API ([#609](https://github.com/rapidsai/raft/pull/609)) [@MatthiasKohl](https://github.com/MatthiasKohl) ## 🐛 Bug Fixes - For fixing the cuGraph test failures with PCG ([#690](https://github.com/rapidsai/raft/pull/690)) [@vinaydes](https://github.com/vinaydes) - Fix excessive memory used in selection test ([#689](https://github.com/rapidsai/raft/pull/689)) [@achirkin](https://github.com/achirkin) - Revert print vector changes because of std::vector&lt;bool&gt; ([#681](https://github.com/rapidsai/raft/pull/681)) [@lowener](https://github.com/lowener) - fix race in fusedL2knn smem read/write by adding a syncwarp ([#679](https://github.com/rapidsai/raft/pull/679)) [@mdoijade](https://github.com/mdoijade) - gemm: fix parameter C mistakenly set as const ([#664](https://github.com/rapidsai/raft/pull/664)) [@achirkin](https://github.com/achirkin) - Fix SelectionTest: allow different indices when keys are equal. ([#659](https://github.com/rapidsai/raft/pull/659)) [@achirkin](https://github.com/achirkin) - Revert recent cmake updates ([#657](https://github.com/rapidsai/raft/pull/657)) [@cjnolet](https://github.com/cjnolet) - Don&#39;t install component dependency files in raft-header only mode ([#655](https://github.com/rapidsai/raft/pull/655)) [@robertmaynard](https://github.com/robertmaynard) - Rng: removed cyclic dependency creating hard-to-debug compiler errors ([#639](https://github.com/rapidsai/raft/pull/639)) [@MatthiasKohl](https://github.com/MatthiasKohl) - Fixing raft compile bug w/ RNG changes ([#634](https://github.com/rapidsai/raft/pull/634)) [@cjnolet](https://github.com/cjnolet) - Get `libcudacxx` from `cuco` ([#632](https://github.com/rapidsai/raft/pull/632)) [@trxcllnt](https://github.com/trxcllnt) - RNG API fixes ([#630](https://github.com/rapidsai/raft/pull/630)) [@MatthiasKohl](https://github.com/MatthiasKohl) - Fix mdspan accessor mixin offset policy. ([#628](https://github.com/rapidsai/raft/pull/628)) [@trivialfis](https://github.com/trivialfis) - Branch 22.06 merge 22.04 ([#625](https://github.com/rapidsai/raft/pull/625)) [@cjnolet](https://github.com/cjnolet) - fix issue in fusedL2knn which happens when rows are multiple of 256 ([#604](https://github.com/rapidsai/raft/pull/604)) [@mdoijade](https://github.com/mdoijade) ## 🚀 New Features - Restore changes from #653 and #655 and correct cmake component dependencies ([#686](https://github.com/rapidsai/raft/pull/686)) [@robertmaynard](https://github.com/robertmaynard) - Adding handle and stream to pylibraft ([#683](https://github.com/rapidsai/raft/pull/683)) [@cjnolet](https://github.com/cjnolet) - Map CMake install components to conda library packages ([#653](https://github.com/rapidsai/raft/pull/653)) [@robertmaynard](https://github.com/robertmaynard) - Rng: expose host-rng-state in host-only API ([#609](https://github.com/rapidsai/raft/pull/609)) [@MatthiasKohl](https://github.com/MatthiasKohl) - mdspan/mdarray template functions and utilities ([#601](https://github.com/rapidsai/raft/pull/601)) [@divyegala](https://github.com/divyegala) ## 🛠️ Improvements - Change build.sh to find C++ library by default ([#697](https://github.com/rapidsai/raft/pull/697)) [@vyasr](https://github.com/vyasr) - Pin `dask` and `distributed` for release ([#693](https://github.com/rapidsai/raft/pull/693)) [@galipremsagar](https://github.com/galipremsagar) - Pin `dask` &amp; `distributed` for release ([#680](https://github.com/rapidsai/raft/pull/680)) [@galipremsagar](https://github.com/galipremsagar) - Improve logging ([#673](https://github.com/rapidsai/raft/pull/673)) [@achirkin](https://github.com/achirkin) - Fix minor errors in CMake configuration ([#662](https://github.com/rapidsai/raft/pull/662)) [@vyasr](https://github.com/vyasr) - Pulling mdspan fork (from official rapids repo) into raft to remove dependency ([#649](https://github.com/rapidsai/raft/pull/649)) [@cjnolet](https://github.com/cjnolet) - Fixing the unit test issue(s) in RAFT ([#646](https://github.com/rapidsai/raft/pull/646)) [@vinaydes](https://github.com/vinaydes) - Build pyraft with scikit-build ([#644](https://github.com/rapidsai/raft/pull/644)) [@vyasr](https://github.com/vyasr) - Some fixes to pairwise distances for cupy integration ([#643](https://github.com/rapidsai/raft/pull/643)) [@cjnolet](https://github.com/cjnolet) - Require UCX 1.12.1+ ([#638](https://github.com/rapidsai/raft/pull/638)) [@jakirkham](https://github.com/jakirkham) - Updating raft rng host public API and adding docs ([#636](https://github.com/rapidsai/raft/pull/636)) [@cjnolet](https://github.com/cjnolet) - Build pylibraft with scikit-build ([#633](https://github.com/rapidsai/raft/pull/633)) [@vyasr](https://github.com/vyasr) - Add `cuda_lib_dir` to `library_dirs`, allow changing `UCX`/`RMM`/`Thrust`/`spdlog` locations via envvars in `setup.py` ([#624](https://github.com/rapidsai/raft/pull/624)) [@trxcllnt](https://github.com/trxcllnt) - Remove perf prints from MST ([#623](https://github.com/rapidsai/raft/pull/623)) [@divyegala](https://github.com/divyegala) - Enable components installation using CMake ([#621](https://github.com/rapidsai/raft/pull/621)) [@Ethyling](https://github.com/Ethyling) - Allow nullptr as input-indices argument of select_k ([#618](https://github.com/rapidsai/raft/pull/618)) [@achirkin](https://github.com/achirkin) - Update CMake pinning to allow newer CMake versions ([#617](https://github.com/rapidsai/raft/pull/617)) [@vyasr](https://github.com/vyasr) - Unpin `dask` &amp; `distributed` for development ([#616](https://github.com/rapidsai/raft/pull/616)) [@galipremsagar](https://github.com/galipremsagar) - Improve performance of select-top-k RADIX implementation ([#615](https://github.com/rapidsai/raft/pull/615)) [@achirkin](https://github.com/achirkin) - Moving more prims benchmarks to RAFT ([#613](https://github.com/rapidsai/raft/pull/613)) [@cjnolet](https://github.com/cjnolet) - Allow enabling NVTX markers by downstream projects after install ([#610](https://github.com/rapidsai/raft/pull/610)) [@achirkin](https://github.com/achirkin) - Improve performance of select-top-k WARP_SORT implementation ([#606](https://github.com/rapidsai/raft/pull/606)) [@achirkin](https://github.com/achirkin) - Enable building static libs ([#602](https://github.com/rapidsai/raft/pull/602)) [@trxcllnt](https://github.com/trxcllnt) - Update `ucx-py` version ([#596](https://github.com/rapidsai/raft/pull/596)) [@ajschmidt8](https://github.com/ajschmidt8) - Fix merge conflicts ([#587](https://github.com/rapidsai/raft/pull/587)) [@ajschmidt8](https://github.com/ajschmidt8) - Making cuco, thrust, and mdspan optional dependencies. ([#585](https://github.com/rapidsai/raft/pull/585)) [@cjnolet](https://github.com/cjnolet) - Some RBC3D fixes ([#530](https://github.com/rapidsai/raft/pull/530)) [@cjnolet](https://github.com/cjnolet) # raft 22.04.00 (6 Apr 2022) ## 🚨 Breaking Changes - Moving some of the remaining linalg prims from cuml ([#502](https://github.com/rapidsai/raft/pull/502)) [@cjnolet](https://github.com/cjnolet) - Fix badly merged cublas wrappers ([#492](https://github.com/rapidsai/raft/pull/492)) [@achirkin](https://github.com/achirkin) - Hiding implementation details for lap, clustering, spectral, and label ([#477](https://github.com/rapidsai/raft/pull/477)) [@cjnolet](https://github.com/cjnolet) - Adding destructor for std comms and using nccl allreduce for barrier in mpi comms ([#473](https://github.com/rapidsai/raft/pull/473)) [@cjnolet](https://github.com/cjnolet) - Cleaning up cusparse_wrappers ([#441](https://github.com/rapidsai/raft/pull/441)) [@cjnolet](https://github.com/cjnolet) - Improvents to RNG ([#434](https://github.com/rapidsai/raft/pull/434)) [@vinaydes](https://github.com/vinaydes) - Remove RAFT memory management ([#400](https://github.com/rapidsai/raft/pull/400)) [@viclafargue](https://github.com/viclafargue) - LinAlg impl in detail ([#383](https://github.com/rapidsai/raft/pull/383)) [@divyegala](https://github.com/divyegala) ## 🐛 Bug Fixes - Pin cmake in conda recipe to &lt;3.23 ([#600](https://github.com/rapidsai/raft/pull/600)) [@dantegd](https://github.com/dantegd) - Fix make_device_vector_view ([#595](https://github.com/rapidsai/raft/pull/595)) [@lowener](https://github.com/lowener) - Update cuco version. ([#592](https://github.com/rapidsai/raft/pull/592)) [@vyasr](https://github.com/vyasr) - Fixing raft headers dir ([#574](https://github.com/rapidsai/raft/pull/574)) [@cjnolet](https://github.com/cjnolet) - Update update-version.sh ([#560](https://github.com/rapidsai/raft/pull/560)) [@raydouglass](https://github.com/raydouglass) - find_package(raft) can now be called multiple times safely ([#532](https://github.com/rapidsai/raft/pull/532)) [@robertmaynard](https://github.com/robertmaynard) - Allocate sufficient memory for Hungarian if number of batches &gt; 1 ([#531](https://github.com/rapidsai/raft/pull/531)) [@ChuckHastings](https://github.com/ChuckHastings) - Adding lap.hpp back (with deprecation) ([#529](https://github.com/rapidsai/raft/pull/529)) [@cjnolet](https://github.com/cjnolet) - raft-config is idempotent no matter RAFT_COMPILE_LIBRARIES value ([#516](https://github.com/rapidsai/raft/pull/516)) [@robertmaynard](https://github.com/robertmaynard) - Call initialize() in mpi_comms_t constructor. ([#506](https://github.com/rapidsai/raft/pull/506)) [@seunghwak](https://github.com/seunghwak) - Improve row-major meanvar kernel via minimizing atomicCAS locks ([#489](https://github.com/rapidsai/raft/pull/489)) [@achirkin](https://github.com/achirkin) - Adding destructor for std comms and using nccl allreduce for barrier in mpi comms ([#473](https://github.com/rapidsai/raft/pull/473)) [@cjnolet](https://github.com/cjnolet) ## 📖 Documentation - Updating docs for 22.04 ([#566](https://github.com/rapidsai/raft/pull/566)) [@cjnolet](https://github.com/cjnolet) ## 🚀 New Features - Add benchmarks ([#549](https://github.com/rapidsai/raft/pull/549)) [@achirkin](https://github.com/achirkin) - Unify weighted mean code ([#514](https://github.com/rapidsai/raft/pull/514)) [@lowener](https://github.com/lowener) - single-pass raft::stats::meanvar ([#472](https://github.com/rapidsai/raft/pull/472)) [@achirkin](https://github.com/achirkin) - Move `random` package of cuML to RAFT ([#449](https://github.com/rapidsai/raft/pull/449)) [@divyegala](https://github.com/divyegala) - mdspan integration. ([#437](https://github.com/rapidsai/raft/pull/437)) [@trivialfis](https://github.com/trivialfis) - Interruptible execution ([#433](https://github.com/rapidsai/raft/pull/433)) [@achirkin](https://github.com/achirkin) - make raft sources compilable with clang ([#424](https://github.com/rapidsai/raft/pull/424)) [@MatthiasKohl](https://github.com/MatthiasKohl) - Span implementation. ([#399](https://github.com/rapidsai/raft/pull/399)) [@trivialfis](https://github.com/trivialfis) ## 🛠️ Improvements - Adding build script for docs ([#589](https://github.com/rapidsai/raft/pull/589)) [@cjnolet](https://github.com/cjnolet) - Temporarily disable new `ops-bot` functionality ([#586](https://github.com/rapidsai/raft/pull/586)) [@ajschmidt8](https://github.com/ajschmidt8) - Fix commands to get conda output files ([#584](https://github.com/rapidsai/raft/pull/584)) [@Ethyling](https://github.com/Ethyling) - Link to `cuco` and add faiss `EXCLUDE_FROM_ALL` option ([#583](https://github.com/rapidsai/raft/pull/583)) [@trxcllnt](https://github.com/trxcllnt) - exposing faiss::faiss ([#582](https://github.com/rapidsai/raft/pull/582)) [@cjnolet](https://github.com/cjnolet) - Pin `dask` and `distributed` version ([#581](https://github.com/rapidsai/raft/pull/581)) [@galipremsagar](https://github.com/galipremsagar) - removing exclude_from_all from cuco ([#580](https://github.com/rapidsai/raft/pull/580)) [@cjnolet](https://github.com/cjnolet) - Adding INSTALL_EXPORT_SET for cuco, rmm, thrust ([#579](https://github.com/rapidsai/raft/pull/579)) [@cjnolet](https://github.com/cjnolet) - Thrust package name case ([#576](https://github.com/rapidsai/raft/pull/576)) [@trxcllnt](https://github.com/trxcllnt) - Add missing thrust includes to transpose.cuh ([#575](https://github.com/rapidsai/raft/pull/575)) [@zbjornson](https://github.com/zbjornson) - Use unanchored clang-format version check ([#573](https://github.com/rapidsai/raft/pull/573)) [@zbjornson](https://github.com/zbjornson) - Fixing accidental removal of thrust target from cmakelists ([#571](https://github.com/rapidsai/raft/pull/571)) [@cjnolet](https://github.com/cjnolet) - Don&#39;t add gtest to build export set or generate a gtest-config.cmake ([#565](https://github.com/rapidsai/raft/pull/565)) [@trxcllnt](https://github.com/trxcllnt) - Set `main` label by default ([#559](https://github.com/rapidsai/raft/pull/559)) [@galipremsagar](https://github.com/galipremsagar) - Add local conda channel while looking for conda outputs ([#558](https://github.com/rapidsai/raft/pull/558)) [@Ethyling](https://github.com/Ethyling) - Updated dask and distributed to &gt;=2022.02.1 ([#557](https://github.com/rapidsai/raft/pull/557)) [@rlratzel](https://github.com/rlratzel) - Upload packages using testing label for nightlies ([#556](https://github.com/rapidsai/raft/pull/556)) [@Ethyling](https://github.com/Ethyling) - Add `.github/ops-bot.yaml` config file ([#554](https://github.com/rapidsai/raft/pull/554)) [@ajschmidt8](https://github.com/ajschmidt8) - Disabling benchmarks building by default. ([#553](https://github.com/rapidsai/raft/pull/553)) [@cjnolet](https://github.com/cjnolet) - KNN select-top-k variants ([#551](https://github.com/rapidsai/raft/pull/551)) [@achirkin](https://github.com/achirkin) - Adding logger ([#550](https://github.com/rapidsai/raft/pull/550)) [@cjnolet](https://github.com/cjnolet) - clang-tidy support: improved clang run scripts with latest changes (see cugraph-ops) ([#548](https://github.com/rapidsai/raft/pull/548)) [@MatthiasKohl](https://github.com/MatthiasKohl) - Pylibraft for pairwise distances ([#540](https://github.com/rapidsai/raft/pull/540)) [@cjnolet](https://github.com/cjnolet) - mdspan PoC for distance make_blobs ([#538](https://github.com/rapidsai/raft/pull/538)) [@cjnolet](https://github.com/cjnolet) - Include thrust/sort.h in ball_cover.cuh ([#526](https://github.com/rapidsai/raft/pull/526)) [@akifcorduk](https://github.com/akifcorduk) - Increase parallelism in allgatherv ([#525](https://github.com/rapidsai/raft/pull/525)) [@seunghwak](https://github.com/seunghwak) - Moving device functions to cuh files and deprecating hpp ([#524](https://github.com/rapidsai/raft/pull/524)) [@cjnolet](https://github.com/cjnolet) - Use `dynamic_extent` from `stdex`. ([#523](https://github.com/rapidsai/raft/pull/523)) [@trivialfis](https://github.com/trivialfis) - Updating some of the ci check scripts ([#522](https://github.com/rapidsai/raft/pull/522)) [@cjnolet](https://github.com/cjnolet) - Use shfl_xor in warpReduce for broadcast ([#521](https://github.com/rapidsai/raft/pull/521)) [@akifcorduk](https://github.com/akifcorduk) - Fixing Python conda package and installation ([#520](https://github.com/rapidsai/raft/pull/520)) [@cjnolet](https://github.com/cjnolet) - Adding instructions to install from conda and build using CPM ([#519](https://github.com/rapidsai/raft/pull/519)) [@cjnolet](https://github.com/cjnolet) - Implement span storage optimization. ([#515](https://github.com/rapidsai/raft/pull/515)) [@trivialfis](https://github.com/trivialfis) - RNG test fixes and improvements ([#513](https://github.com/rapidsai/raft/pull/513)) [@vinaydes](https://github.com/vinaydes) - Moving scores and metrics over to raft::stats ([#512](https://github.com/rapidsai/raft/pull/512)) [@cjnolet](https://github.com/cjnolet) - Random ball cover in 3d ([#510](https://github.com/rapidsai/raft/pull/510)) [@cjnolet](https://github.com/cjnolet) - Initializing memory in RBC ([#509](https://github.com/rapidsai/raft/pull/509)) [@cjnolet](https://github.com/cjnolet) - Adjusting conda packaging to remove duplicate dependencies ([#508](https://github.com/rapidsai/raft/pull/508)) [@cjnolet](https://github.com/cjnolet) - Moving remaining stats prims from cuml ([#507](https://github.com/rapidsai/raft/pull/507)) [@cjnolet](https://github.com/cjnolet) - Correcting the namespace ([#505](https://github.com/rapidsai/raft/pull/505)) [@vinaydes](https://github.com/vinaydes) - Passing stream through commsplit ([#503](https://github.com/rapidsai/raft/pull/503)) [@cjnolet](https://github.com/cjnolet) - Moving some of the remaining linalg prims from cuml ([#502](https://github.com/rapidsai/raft/pull/502)) [@cjnolet](https://github.com/cjnolet) - Fixing spectral APIs ([#496](https://github.com/rapidsai/raft/pull/496)) [@cjnolet](https://github.com/cjnolet) - Fix badly merged cublas wrappers ([#492](https://github.com/rapidsai/raft/pull/492)) [@achirkin](https://github.com/achirkin) - Fix integer overflow in distances ([#490](https://github.com/rapidsai/raft/pull/490)) [@RAMitchell](https://github.com/RAMitchell) - Reusing shared libs in gpu ci builds ([#487](https://github.com/rapidsai/raft/pull/487)) [@cjnolet](https://github.com/cjnolet) - Adding fatbin to shared libs and fixing conda paths in cpu build ([#485](https://github.com/rapidsai/raft/pull/485)) [@cjnolet](https://github.com/cjnolet) - Add CMake `install` rule for tests ([#483](https://github.com/rapidsai/raft/pull/483)) [@ajschmidt8](https://github.com/ajschmidt8) - Adding cpu ci for conda build ([#482](https://github.com/rapidsai/raft/pull/482)) [@cjnolet](https://github.com/cjnolet) - iUpdating codeowners to use new raft codeowners ([#480](https://github.com/rapidsai/raft/pull/480)) [@cjnolet](https://github.com/cjnolet) - Hiding implementation details for lap, clustering, spectral, and label ([#477](https://github.com/rapidsai/raft/pull/477)) [@cjnolet](https://github.com/cjnolet) - Define PTDS via `-D` to fix cache misses in sccache ([#476](https://github.com/rapidsai/raft/pull/476)) [@trxcllnt](https://github.com/trxcllnt) - Unpin dask and distributed ([#474](https://github.com/rapidsai/raft/pull/474)) [@galipremsagar](https://github.com/galipremsagar) - Replace `ccache` with `sccache` ([#471](https://github.com/rapidsai/raft/pull/471)) [@ajschmidt8](https://github.com/ajschmidt8) - More README updates ([#467](https://github.com/rapidsai/raft/pull/467)) [@cjnolet](https://github.com/cjnolet) - CUBLAS wrappers with switchable host/device pointer mode ([#453](https://github.com/rapidsai/raft/pull/453)) [@achirkin](https://github.com/achirkin) - Cleaning up cusparse_wrappers ([#441](https://github.com/rapidsai/raft/pull/441)) [@cjnolet](https://github.com/cjnolet) - Adding conda packaging for libraft and pyraft ([#439](https://github.com/rapidsai/raft/pull/439)) [@cjnolet](https://github.com/cjnolet) - Improvents to RNG ([#434](https://github.com/rapidsai/raft/pull/434)) [@vinaydes](https://github.com/vinaydes) - Hiding implementation details for comms ([#409](https://github.com/rapidsai/raft/pull/409)) [@cjnolet](https://github.com/cjnolet) - Remove RAFT memory management ([#400](https://github.com/rapidsai/raft/pull/400)) [@viclafargue](https://github.com/viclafargue) - LinAlg impl in detail ([#383](https://github.com/rapidsai/raft/pull/383)) [@divyegala](https://github.com/divyegala) # raft 22.02.00 (2 Feb 2022) ## 🚨 Breaking Changes - Simplify raft component CMake logic, and allow compilation without FAISS ([#428](https://github.com/rapidsai/raft/pull/428)) [@robertmaynard](https://github.com/robertmaynard) - One cudaStream_t instance per raft::handle_t ([#291](https://github.com/rapidsai/raft/pull/291)) [@divyegala](https://github.com/divyegala) ## 🐛 Bug Fixes - Removing extra logging from faiss mr ([#463](https://github.com/rapidsai/raft/pull/463)) [@cjnolet](https://github.com/cjnolet) - Pin `dask` &amp; `distributed` versions ([#455](https://github.com/rapidsai/raft/pull/455)) [@galipremsagar](https://github.com/galipremsagar) - Replace RMM CUDA Python bindings with those provided by CUDA-Python ([#451](https://github.com/rapidsai/raft/pull/451)) [@shwina](https://github.com/shwina) - Fix comms memory leak ([#436](https://github.com/rapidsai/raft/pull/436)) [@seunghwak](https://github.com/seunghwak) - Fix C++ doxygen documentation ([#426](https://github.com/rapidsai/raft/pull/426)) [@achirkin](https://github.com/achirkin) - Fix clang-format style errors ([#425](https://github.com/rapidsai/raft/pull/425)) [@achirkin](https://github.com/achirkin) - Fix using incorrect macro RAFT_CHECK_CUDA in place of RAFT_CUDA_TRY ([#415](https://github.com/rapidsai/raft/pull/415)) [@achirkin](https://github.com/achirkin) - Fix CUDA_CHECK_NO_THROW compatibility define ([#414](https://github.com/rapidsai/raft/pull/414)) [@zbjornson](https://github.com/zbjornson) - Disabling fused l2 knn from bfknn ([#407](https://github.com/rapidsai/raft/pull/407)) [@cjnolet](https://github.com/cjnolet) - Disabling expanded fused l2 knn to unblock cuml CI ([#404](https://github.com/rapidsai/raft/pull/404)) [@cjnolet](https://github.com/cjnolet) - Reverting default knn distance to L2Unexpanded for now. ([#403](https://github.com/rapidsai/raft/pull/403)) [@cjnolet](https://github.com/cjnolet) ## 📖 Documentation - README and build fixes before release ([#459](https://github.com/rapidsai/raft/pull/459)) [@cjnolet](https://github.com/cjnolet) - Updates to Python and C++ Docs ([#442](https://github.com/rapidsai/raft/pull/442)) [@cjnolet](https://github.com/cjnolet) ## 🚀 New Features - error macros: determining buffer size instead of fixed 2048 chars ([#420](https://github.com/rapidsai/raft/pull/420)) [@MatthiasKohl](https://github.com/MatthiasKohl) - NVTX range helpers ([#416](https://github.com/rapidsai/raft/pull/416)) [@achirkin](https://github.com/achirkin) ## 🛠️ Improvements - Splitting fused l2 knn specializations ([#461](https://github.com/rapidsai/raft/pull/461)) [@cjnolet](https://github.com/cjnolet) - Update cuCollection git tag ([#447](https://github.com/rapidsai/raft/pull/447)) [@seunghwak](https://github.com/seunghwak) - Remove libcudacxx patch needed for nvcc 11.4 ([#446](https://github.com/rapidsai/raft/pull/446)) [@robertmaynard](https://github.com/robertmaynard) - Unpin `dask` and `distributed` ([#440](https://github.com/rapidsai/raft/pull/440)) [@galipremsagar](https://github.com/galipremsagar) - Public apis for remainder of matrix and stats ([#438](https://github.com/rapidsai/raft/pull/438)) [@divyegala](https://github.com/divyegala) - Fix bug in producer-consumer buffer exchange which occurs in UMAP test on GV100 ([#429](https://github.com/rapidsai/raft/pull/429)) [@mdoijade](https://github.com/mdoijade) - Simplify raft component CMake logic, and allow compilation without FAISS ([#428](https://github.com/rapidsai/raft/pull/428)) [@robertmaynard](https://github.com/robertmaynard) - Update ucx-py version on release using rvc ([#422](https://github.com/rapidsai/raft/pull/422)) [@Ethyling](https://github.com/Ethyling) - Disabling fused l2 knn again. Not sure how this got added back. ([#421](https://github.com/rapidsai/raft/pull/421)) [@cjnolet](https://github.com/cjnolet) - Adding no throw macro variants ([#417](https://github.com/rapidsai/raft/pull/417)) [@cjnolet](https://github.com/cjnolet) - Remove `IncludeCategories` from `.clang-format` ([#412](https://github.com/rapidsai/raft/pull/412)) [@codereport](https://github.com/codereport) - fix nan issues in L2 expanded sqrt KNN distances ([#411](https://github.com/rapidsai/raft/pull/411)) [@mdoijade](https://github.com/mdoijade) - Consistent renaming of CHECK_CUDA and *_TRY macros ([#410](https://github.com/rapidsai/raft/pull/410)) [@cjnolet](https://github.com/cjnolet) - Faster matrix-vector-ops ([#401](https://github.com/rapidsai/raft/pull/401)) [@achirkin](https://github.com/achirkin) - Adding dev conda environment files. ([#397](https://github.com/rapidsai/raft/pull/397)) [@cjnolet](https://github.com/cjnolet) - Update to UCX-Py 0.24 ([#392](https://github.com/rapidsai/raft/pull/392)) [@pentschev](https://github.com/pentschev) - Branch 21.12 merge 22.02 ([#386](https://github.com/rapidsai/raft/pull/386)) [@cjnolet](https://github.com/cjnolet) - Hiding implementation details for sparse API ([#381](https://github.com/rapidsai/raft/pull/381)) [@cjnolet](https://github.com/cjnolet) - Adding distance specializations ([#376](https://github.com/rapidsai/raft/pull/376)) [@cjnolet](https://github.com/cjnolet) - Use FAISS with RMM ([#363](https://github.com/rapidsai/raft/pull/363)) [@viclafargue](https://github.com/viclafargue) - Add Fused L2 Expanded KNN kernel ([#339](https://github.com/rapidsai/raft/pull/339)) [@mdoijade](https://github.com/mdoijade) - Update `.clang-format` to be consistent with all other RAPIDS repos ([#300](https://github.com/rapidsai/raft/pull/300)) [@codereport](https://github.com/codereport) - One cudaStream_t instance per raft::handle_t ([#291](https://github.com/rapidsai/raft/pull/291)) [@divyegala](https://github.com/divyegala) # raft 21.12.00 (9 Dec 2021) ## 🚨 Breaking Changes - Use 64 bit CuSolver API for Eigen decomposition ([#349](https://github.com/rapidsai/raft/pull/349)) [@lowener](https://github.com/lowener) ## 🐛 Bug Fixes - Fixing bad host-&gt;device copy ([#375](https://github.com/rapidsai/raft/pull/375)) [@cjnolet](https://github.com/cjnolet) - Fix coalesced access checks in matrix_vector_op ([#372](https://github.com/rapidsai/raft/pull/372)) [@achirkin](https://github.com/achirkin) - Port libcudacxx patch from cudf ([#370](https://github.com/rapidsai/raft/pull/370)) [@dantegd](https://github.com/dantegd) - Fixing overflow in expanded distances ([#365](https://github.com/rapidsai/raft/pull/365)) [@cjnolet](https://github.com/cjnolet) ## 📖 Documentation - Getting doxygen to run ([#371](https://github.com/rapidsai/raft/pull/371)) [@cjnolet](https://github.com/cjnolet) ## 🛠️ Improvements - Upgrade `clang` to `11.1.0` ([#394](https://github.com/rapidsai/raft/pull/394)) [@galipremsagar](https://github.com/galipremsagar) - Fix Changelog Merge Conflicts for `branch-21.12` ([#390](https://github.com/rapidsai/raft/pull/390)) [@ajschmidt8](https://github.com/ajschmidt8) - Pin max `dask` &amp; `distributed` ([#388](https://github.com/rapidsai/raft/pull/388)) [@galipremsagar](https://github.com/galipremsagar) - Removing conflict w/ CUDA_CHECK ([#378](https://github.com/rapidsai/raft/pull/378)) [@cjnolet](https://github.com/cjnolet) - Update RAFT test directory ([#359](https://github.com/rapidsai/raft/pull/359)) [@viclafargue](https://github.com/viclafargue) - Update to UCX-Py 0.23 ([#358](https://github.com/rapidsai/raft/pull/358)) [@pentschev](https://github.com/pentschev) - Hiding implementation details for random, stats, and matrix ([#356](https://github.com/rapidsai/raft/pull/356)) [@divyegala](https://github.com/divyegala) - README updates ([#351](https://github.com/rapidsai/raft/pull/351)) [@cjnolet](https://github.com/cjnolet) - Use 64 bit CuSolver API for Eigen decomposition ([#349](https://github.com/rapidsai/raft/pull/349)) [@lowener](https://github.com/lowener) - Hiding implementation details for distance primitives (dense + sparse) ([#344](https://github.com/rapidsai/raft/pull/344)) [@cjnolet](https://github.com/cjnolet) - Unpin `dask` &amp; `distributed` in CI ([#338](https://github.com/rapidsai/raft/pull/338)) [@galipremsagar](https://github.com/galipremsagar) # raft 21.10.00 (7 Oct 2021) ## 🚨 Breaking Changes - Miscellaneous tech debts/cleanups ([#286](https://github.com/rapidsai/raft/pull/286)) [@viclafargue](https://github.com/viclafargue) ## 🐛 Bug Fixes - Accounting for rmm::cuda_stream_pool not having a constructor for 0 streams ([#329](https://github.com/rapidsai/raft/pull/329)) [@divyegala](https://github.com/divyegala) - Fix wrong lda parameter in gemv ([#327](https://github.com/rapidsai/raft/pull/327)) [@achirkin](https://github.com/achirkin) - Fix `matrixVectorOp` to verify promoted pointer type is still aligned to vectorized load boundary ([#325](https://github.com/rapidsai/raft/pull/325)) [@viclafargue](https://github.com/viclafargue) - Pin rmm to branch-21.10 and remove warnings from kmeans.hpp ([#322](https://github.com/rapidsai/raft/pull/322)) [@dantegd](https://github.com/dantegd) - Temporarily pin RMM while refactor removes deprecated calls ([#315](https://github.com/rapidsai/raft/pull/315)) [@dantegd](https://github.com/dantegd) - Fix more warnings ([#311](https://github.com/rapidsai/raft/pull/311)) [@harrism](https://github.com/harrism) ## 📖 Documentation - Fix build doc ([#316](https://github.com/rapidsai/raft/pull/316)) [@lowener](https://github.com/lowener) ## 🚀 New Features - Add Hamming, Jensen-Shannon, KL-Divergence, Russell rao and Correlation distance metrics support ([#306](https://github.com/rapidsai/raft/pull/306)) [@mdoijade](https://github.com/mdoijade) ## 🛠️ Improvements - Pin max `dask` and `distributed` versions to `2021.09.1` ([#334](https://github.com/rapidsai/raft/pull/334)) [@galipremsagar](https://github.com/galipremsagar) - Make sure we keep the rapids-cmake and raft cal version in sync ([#331](https://github.com/rapidsai/raft/pull/331)) [@robertmaynard](https://github.com/robertmaynard) - Add broadcast with const input iterator ([#328](https://github.com/rapidsai/raft/pull/328)) [@seunghwak](https://github.com/seunghwak) - Fused L2 (unexpanded) kNN kernel for NN &lt;= 64, without using temporary gmem to store intermediate distances ([#324](https://github.com/rapidsai/raft/pull/324)) [@mdoijade](https://github.com/mdoijade) - Update with rapids cmake new features ([#320](https://github.com/rapidsai/raft/pull/320)) [@robertmaynard](https://github.com/robertmaynard) - Update to UCX-Py 0.22 ([#319](https://github.com/rapidsai/raft/pull/319)) [@pentschev](https://github.com/pentschev) - Fix Forward-Merge Conflicts ([#318](https://github.com/rapidsai/raft/pull/318)) [@ajschmidt8](https://github.com/ajschmidt8) - Enable CUDA device code warnings as errors ([#307](https://github.com/rapidsai/raft/pull/307)) [@harrism](https://github.com/harrism) - Remove max version pin for dask &amp; distributed on development branch ([#303](https://github.com/rapidsai/raft/pull/303)) [@galipremsagar](https://github.com/galipremsagar) - Warnings are errors ([#299](https://github.com/rapidsai/raft/pull/299)) [@harrism](https://github.com/harrism) - Use the new RAPIDS.cmake to fetch rapids-cmake ([#298](https://github.com/rapidsai/raft/pull/298)) [@robertmaynard](https://github.com/robertmaynard) - ENH Replace gpuci_conda_retry with gpuci_mamba_retry ([#295](https://github.com/rapidsai/raft/pull/295)) [@dillon-cullinan](https://github.com/dillon-cullinan) - Miscellaneous tech debts/cleanups ([#286](https://github.com/rapidsai/raft/pull/286)) [@viclafargue](https://github.com/viclafargue) - Random Ball Cover Algorithm for 2D Haversine/Euclidean ([#213](https://github.com/rapidsai/raft/pull/213)) [@cjnolet](https://github.com/cjnolet) # raft 21.08.00 (4 Aug 2021) ## 🚨 Breaking Changes - expose epsilon parameter to allow precision to to be specified ([#275](https://github.com/rapidsai/raft/pull/275)) [@ChuckHastings](https://github.com/ChuckHastings) ## 🐛 Bug Fixes - Fix support for different input and output types in linalg::reduce ([#296](https://github.com/rapidsai/raft/pull/296)) [@Nyrio](https://github.com/Nyrio) - Const raft handle in sparse bfknn ([#280](https://github.com/rapidsai/raft/pull/280)) [@cjnolet](https://github.com/cjnolet) - Add `cuco::cuco` to list of linked libraries ([#279](https://github.com/rapidsai/raft/pull/279)) [@trxcllnt](https://github.com/trxcllnt) - Use nested include in destination of install headers to avoid docker permission issues ([#263](https://github.com/rapidsai/raft/pull/263)) [@dantegd](https://github.com/dantegd) - Update UCX-Py version to 0.21 ([#255](https://github.com/rapidsai/raft/pull/255)) [@pentschev](https://github.com/pentschev) - Fix mst knn test build failure due to RMM device_buffer change ([#253](https://github.com/rapidsai/raft/pull/253)) [@mdoijade](https://github.com/mdoijade) ## 🚀 New Features - Add chebyshev, canberra, minkowksi and hellinger distance metrics ([#276](https://github.com/rapidsai/raft/pull/276)) [@mdoijade](https://github.com/mdoijade) - Move FAISS ANN wrappers to RAFT ([#265](https://github.com/rapidsai/raft/pull/265)) [@cjnolet](https://github.com/cjnolet) - Remaining sparse semiring distances ([#261](https://github.com/rapidsai/raft/pull/261)) [@cjnolet](https://github.com/cjnolet) - removing divye from codeowners ([#257](https://github.com/rapidsai/raft/pull/257)) [@divyegala](https://github.com/divyegala) ## 🛠️ Improvements - Pinning cuco to a specific commit hash for release ([#304](https://github.com/rapidsai/raft/pull/304)) [@rlratzel](https://github.com/rlratzel) - Pin max `dask` &amp; `distributed` versions ([#301](https://github.com/rapidsai/raft/pull/301)) [@galipremsagar](https://github.com/galipremsagar) - Overlap epilog compute with ldg of next grid stride in pairwise distance &amp; fusedL2NN kernels ([#292](https://github.com/rapidsai/raft/pull/292)) [@mdoijade](https://github.com/mdoijade) - Always add faiss library alias if it&#39;s missing ([#287](https://github.com/rapidsai/raft/pull/287)) [@trxcllnt](https://github.com/trxcllnt) - Use `NVIDIA/cuCollections` repo again ([#284](https://github.com/rapidsai/raft/pull/284)) [@trxcllnt](https://github.com/trxcllnt) - Use the 21.08 branch of rapids-cmake as rmm requires it ([#278](https://github.com/rapidsai/raft/pull/278)) [@robertmaynard](https://github.com/robertmaynard) - expose epsilon parameter to allow precision to to be specified ([#275](https://github.com/rapidsai/raft/pull/275)) [@ChuckHastings](https://github.com/ChuckHastings) - Fix `21.08` forward-merge conflicts ([#274](https://github.com/rapidsai/raft/pull/274)) [@ajschmidt8](https://github.com/ajschmidt8) - Add lds and sts inline ptx instructions to force vector instruction generation ([#273](https://github.com/rapidsai/raft/pull/273)) [@mdoijade](https://github.com/mdoijade) - Move ANN to RAFT (additional updates) ([#270](https://github.com/rapidsai/raft/pull/270)) [@cjnolet](https://github.com/cjnolet) - Sparse semirings cleanup + hash table &amp; batching strategies ([#269](https://github.com/rapidsai/raft/pull/269)) [@divyegala](https://github.com/divyegala) - Revert &quot;pin dask versions in CI ([#260)&quot; (#264](https://github.com/rapidsai/raft/pull/260)&quot; (#264)) [@ajschmidt8](https://github.com/ajschmidt8) - Pass stream to device_scalar::value() calls. ([#259](https://github.com/rapidsai/raft/pull/259)) [@harrism](https://github.com/harrism) - Update get_rmm.cmake to better support CalVer ([#258](https://github.com/rapidsai/raft/pull/258)) [@harrism](https://github.com/harrism) - Add Grid stride pairwise dist and fused L2 NN kernels ([#250](https://github.com/rapidsai/raft/pull/250)) [@mdoijade](https://github.com/mdoijade) - Fix merge conflicts ([#236](https://github.com/rapidsai/raft/pull/236)) [@ajschmidt8](https://github.com/ajschmidt8) # raft 21.06.00 (9 Jun 2021) ## 🐛 Bug Fixes - Update UCX-Py version to 0.20 ([#254](https://github.com/rapidsai/raft/pull/254)) [@pentschev](https://github.com/pentschev) - cuco git tag update (again) ([#248](https://github.com/rapidsai/raft/pull/248)) [@seunghwak](https://github.com/seunghwak) - Revert PR #232 for 21.06 release ([#246](https://github.com/rapidsai/raft/pull/246)) [@dantegd](https://github.com/dantegd) - Python comms to hold onto server endpoints ([#241](https://github.com/rapidsai/raft/pull/241)) [@cjnolet](https://github.com/cjnolet) - Fix Thrust 1.12 compile errors ([#231](https://github.com/rapidsai/raft/pull/231)) [@trxcllnt](https://github.com/trxcllnt) - Make sure we use CalVer when checking out rapids-cmake ([#230](https://github.com/rapidsai/raft/pull/230)) [@robertmaynard](https://github.com/robertmaynard) - Loss of Precision in MST weight alteration ([#223](https://github.com/rapidsai/raft/pull/223)) [@divyegala](https://github.com/divyegala) ## 🛠️ Improvements - cuco git tag update ([#243](https://github.com/rapidsai/raft/pull/243)) [@seunghwak](https://github.com/seunghwak) - Update `CHANGELOG.md` links for calver ([#233](https://github.com/rapidsai/raft/pull/233)) [@ajschmidt8](https://github.com/ajschmidt8) - Add Grid stride pairwise dist and fused L2 NN kernels ([#232](https://github.com/rapidsai/raft/pull/232)) [@mdoijade](https://github.com/mdoijade) - Updates to enable HDBSCAN ([#208](https://github.com/rapidsai/raft/pull/208)) [@cjnolet](https://github.com/cjnolet) # raft 0.19.0 (21 Apr 2021) ## 🐛 Bug Fixes - Exposing spectral random seed property ([#193](https://github.com//rapidsai/raft/pull/193)) [@cjnolet](https://github.com/cjnolet) - Fix pointer arithmetic in spmv smem kernel ([#183](https://github.com//rapidsai/raft/pull/183)) [@lowener](https://github.com/lowener) - Modify default value for rowMajorIndex and rowMajorQuery in bf-knn ([#173](https://github.com//rapidsai/raft/pull/173)) [@viclafargue](https://github.com/viclafargue) - Remove setCudaMallocWarning() call for libfaiss[@v1.7.0 ([#167](https://github.com//rapidsai/raft/pull/167)) @trxcllnt](https://github.com/v1.7.0 ([#167](https://github.com//rapidsai/raft/pull/167)) @trxcllnt) - Add const to KNN handle ([#157](https://github.com//rapidsai/raft/pull/157)) [@hlinsen](https://github.com/hlinsen) ## 🚀 New Features - Moving optimized L2 1-nearest neighbors implementation from cuml ([#158](https://github.com//rapidsai/raft/pull/158)) [@cjnolet](https://github.com/cjnolet) ## 🛠️ Improvements - Fixing codeowners ([#194](https://github.com//rapidsai/raft/pull/194)) [@cjnolet](https://github.com/cjnolet) - Adjust Hellinger pairwise distance to vaoid NaNs ([#189](https://github.com//rapidsai/raft/pull/189)) [@lowener](https://github.com/lowener) - Add column major input support in contractions_nt kernels with new kernel policy for it ([#188](https://github.com//rapidsai/raft/pull/188)) [@mdoijade](https://github.com/mdoijade) - Dice formula correction ([#186](https://github.com//rapidsai/raft/pull/186)) [@lowener](https://github.com/lowener) - Scaling knn graph fix connectivities algorithm ([#181](https://github.com//rapidsai/raft/pull/181)) [@cjnolet](https://github.com/cjnolet) - Fixing RAFT CI &amp; a few small updates for SLHC Python wrapper ([#178](https://github.com//rapidsai/raft/pull/178)) [@cjnolet](https://github.com/cjnolet) - Add Precomputed to the DistanceType enum (for cuML DBSCAN) ([#177](https://github.com//rapidsai/raft/pull/177)) [@Nyrio](https://github.com/Nyrio) - Enable matrix::copyRows for row major input ([#176](https://github.com//rapidsai/raft/pull/176)) [@tfeher](https://github.com/tfeher) - Add Dice distance to distancetype enum ([#174](https://github.com//rapidsai/raft/pull/174)) [@lowener](https://github.com/lowener) - Porting over recent updates to distance prim from cuml ([#172](https://github.com//rapidsai/raft/pull/172)) [@cjnolet](https://github.com/cjnolet) - Update KNN ([#171](https://github.com//rapidsai/raft/pull/171)) [@viclafargue](https://github.com/viclafargue) - Adding translations parameter to brute_force_knn ([#170](https://github.com//rapidsai/raft/pull/170)) [@viclafargue](https://github.com/viclafargue) - Update Changelog Link ([#169](https://github.com//rapidsai/raft/pull/169)) [@ajschmidt8](https://github.com/ajschmidt8) - Map operation ([#168](https://github.com//rapidsai/raft/pull/168)) [@viclafargue](https://github.com/viclafargue) - Updating sparse prims based on recent changes ([#166](https://github.com//rapidsai/raft/pull/166)) [@cjnolet](https://github.com/cjnolet) - Prepare Changelog for Automation ([#164](https://github.com//rapidsai/raft/pull/164)) [@ajschmidt8](https://github.com/ajschmidt8) - Update 0.18 changelog entry ([#163](https://github.com//rapidsai/raft/pull/163)) [@ajschmidt8](https://github.com/ajschmidt8) - MST symmetric/non-symmetric output for SLHC ([#162](https://github.com//rapidsai/raft/pull/162)) [@divyegala](https://github.com/divyegala) - Pass pre-computed colors to MST ([#154](https://github.com//rapidsai/raft/pull/154)) [@divyegala](https://github.com/divyegala) - Streams upgrade in RAFT handle (RMM backend + create handle from parent&#39;s pool) ([#148](https://github.com//rapidsai/raft/pull/148)) [@afender](https://github.com/afender) - Merge branch-0.18 into 0.19 ([#146](https://github.com//rapidsai/raft/pull/146)) [@dantegd](https://github.com/dantegd) - Add device_send, device_recv, device_sendrecv, device_multicast_sendrecv ([#144](https://github.com//rapidsai/raft/pull/144)) [@seunghwak](https://github.com/seunghwak) - Adding SLHC prims. ([#140](https://github.com//rapidsai/raft/pull/140)) [@cjnolet](https://github.com/cjnolet) - Moving cuml sparse prims to raft ([#139](https://github.com//rapidsai/raft/pull/139)) [@cjnolet](https://github.com/cjnolet) # raft 0.18.0 (24 Feb 2021) ## Breaking Changes 🚨 - Make NCCL root initialization configurable. (#120) @drobison00 ## Bug Fixes 🐛 - Add idx_t template parameter to matrix helper routines (#131) @tfeher - Eliminate CUDA 10.2 as valid for large svd solving (#129) @wphicks - Update check to allow svd solver on CUDA&gt;=10.2 (#125) @wphicks - Updating gpu build.sh and debugging threads CI issue (#123) @dantegd ## New Features 🚀 - Adding additional distances (#116) @cjnolet ## Improvements 🛠️ - Update stale GHA with exemptions &amp; new labels (#152) @mike-wendt - Add GHA to mark issues/prs as stale/rotten (#150) @Ethyling - Prepare Changelog for Automation (#135) @ajschmidt8 - Adding Jensen-Shannon and BrayCurtis to DistanceType for Nearest Neighbors (#132) @lowener - Add brute force KNN (#126) @hlinsen - Make NCCL root initialization configurable. (#120) @drobison00 - Auto-label PRs based on their content (#117) @jolorunyomi - Add gather &amp; gatherv to raft::comms::comms_t (#114) @seunghwak - Adding canberra and chebyshev to distance types (#99) @cjnolet - Gpuciscripts clean and update (#92) @msadang # RAFT 0.17.0 (10 Dec 2020) ## New Features - PR #65: Adding cuml prims that break circular dependency between cuml and cumlprims projects - PR #101: MST core solver - PR #93: Incorporate Date/Nagi implementation of Hungarian Algorithm - PR #94: Allow generic reductions for the map then reduce op - PR #95: Cholesky rank one update prim ## Improvements - PR #108: Remove unused old-gpubuild.sh - PR #73: Move DistanceType enum from cuML to RAFT - pr #92: Cleanup gpuCI scripts - PR #98: Adding InnerProduct to DistanceType - PR #103: Epsilon parameter for Cholesky rank one update - PR #100: Add divyegala as codeowner - PR #111: Cleanup gpuCI scripts - PR #120: Update NCCL init process to support root node placement. ## Bug Fixes - PR #106: Specify dependency branches to avoid pip resolver failure - PR #77: Fixing CUB include for CUDA < 11 - PR #86: Missing headers for newly moved prims - PR #102: Check alignment before binaryOp dispatch - PR #104: Fix update-version.sh - PR #109: Fixing Incorrect Deallocation Size and Count Bugs # RAFT 0.16.0 (Date TBD) ## New Features - PR #63: Adding MPI comms implementation - PR #70: Adding CUB to RAFT cmake ## Improvements - PR #59: Adding csrgemm2 to cusparse_wrappers.h - PR #61: Add cusparsecsr2dense to cusparse_wrappers.h - PR #62: Adding `get_device_allocator` to `handle.pxd` - PR #67: Remove dependence on run-time type info ## Bug Fixes - PR #56: Fix compiler warnings. - PR #64: Remove `cublas_try` from `cusolver_wrappers.h` - PR #66: Fixing typo `get_stream` to `getStream` in `handle.pyx` - PR #68: Change the type of recvcounts & displs in allgatherv from size_t[] to size_t* and int[] to size_t*, respectively. - PR #69: Updates for RMM being header only - PR #74: Fix std_comms::comm_split bug - PR #79: remove debug print statements - PR #81: temporarily expose internal NCCL communicator # RAFT 0.15.0 (Date TBD) ## New Features - PR #12: Spectral clustering. - PR #7: Migrating cuml comms -> raft comms_t - PR #18: Adding commsplit to cuml communicator - PR #15: add exception based error handling macros - PR #29: Add ceildiv functionality - PR #44: Add get_subcomm and set_subcomm to handle_t ## Improvements - PR #13: Add RMM_INCLUDE and RMM_LIBRARY options to allow linking to non-conda RMM - PR #22: Preserve order in comms workers for rank initialization - PR #38: Remove #include <cudar_utils.h> from `raft/mr/` - PR #39: Adding a virtual destructor to `raft::handle_t` and `raft::comms::comms_t` - PR #37: Clean-up CUDA related utilities - PR #41: Upgrade to `cusparseSpMV()`, alg selection, and rectangular matrices. - PR #45: Add Ampere target to cuda11 cmake - PR #47: Use gtest conda package in CMake/build.sh by default ## Bug Fixes - PR #17: Make destructor inline to avoid redeclaration error - PR #25: Fix bug in handle_t::get_internal_streams - PR #26: Fix bug in RAFT_EXPECTS (add parentheses surrounding cond) - PR #34: Fix issue with incorrect docker image being used in local build script - PR #35: Remove #include <nccl.h> from `raft/error.hpp` - PR #40: Preemptively fixed future CUDA 11 related errors. - PR #43: Fixed CUDA version selection mechanism for SpMV. - PR #46: Fix for cpp file extension issue (nvcc-enforced). - PR #48: Fix gtest target names in cmake build gtest option. - PR #49: Skip raft comms test if raft module doesn't exist # RAFT 0.14.0 (Date TBD) ## New Features - Initial RAFT version - PR #3: defining raft::handle_t, device_buffer, host_buffer, allocator classes ## Bug Fixes - PR #5: Small build.sh fixes
0
rapidsai_public_repos
rapidsai_public_repos/raft/build.sh
#!/bin/bash # Copyright (c) 2020-2023, NVIDIA CORPORATION. # raft build scripts # This script is used to build the component(s) in this repo from # source, and can be called with various options to customize the # build as needed (see the help output for details) # Abort script on first error set -e NUMARGS=$# ARGS=$* # NOTE: ensure all dir changes are relative to the location of this # scripts, and that this script resides in the repo dir! REPODIR=$(cd $(dirname $0); pwd) VALIDARGS="clean libraft pylibraft raft-dask docs tests template bench-prims bench-ann clean --uninstall -v -g -n --compile-lib --compile-static-lib --allgpuarch --no-nvtx --cpu-only --show_depr_warn --incl-cache-stats --time -h" HELP="$0 [<target> ...] [<flag> ...] [--cmake-args=\"<args>\"] [--cache-tool=<tool>] [--limit-tests=<targets>] [--limit-bench-prims=<targets>] [--limit-bench-ann=<targets>] [--build-metrics=<filename>] where <target> is: clean - remove all existing build artifacts and configuration (start over) libraft - build the raft C++ code only. Also builds the C-wrapper library around the C++ code. pylibraft - build the pylibraft Python package raft-dask - build the raft-dask Python package. this also requires pylibraft. docs - build the documentation tests - build the tests bench-prims - build micro-benchmarks for primitives bench-ann - build end-to-end ann benchmarks template - build the example RAFT application template and <flag> is: -v - verbose build mode -g - build for debug -n - no install step --uninstall - uninstall files for specified targets which were built and installed prior --compile-lib - compile shared library for all components --compile-static-lib - compile static library for all components --cpu-only - build CPU only components without CUDA. Applies to bench-ann only currently. --limit-tests - semicolon-separated list of test executables to compile (e.g. NEIGHBORS_TEST;CLUSTER_TEST) --limit-bench-prims - semicolon-separated list of prims benchmark executables to compute (e.g. NEIGHBORS_PRIMS_BENCH;CLUSTER_PRIMS_BENCH) --limit-bench-ann - semicolon-separated list of ann benchmark executables to compute (e.g. HNSWLIB_ANN_BENCH;RAFT_IVF_PQ_ANN_BENCH) --allgpuarch - build for all supported GPU architectures --no-nvtx - disable nvtx (profiling markers), but allow enabling it in downstream projects --show_depr_warn - show cmake deprecation warnings --build-metrics - filename for generating build metrics report for libraft --incl-cache-stats - include cache statistics in build metrics report --cmake-args=\\\"<args>\\\" - pass arbitrary list of CMake configuration options (escape all quotes in argument) --cache-tool=<tool> - pass the build cache tool (eg: ccache, sccache, distcc) that will be used to speedup the build process. --time - Enable nvcc compilation time logging into cpp/build/nvcc_compile_log.csv. Results can be interpreted with cpp/scripts/analyze_nvcc_log.py -h - print this text default action (no args) is to build libraft, tests, pylibraft and raft-dask targets " LIBRAFT_BUILD_DIR=${LIBRAFT_BUILD_DIR:=${REPODIR}/cpp/build} SPHINX_BUILD_DIR=${REPODIR}/docs DOXYGEN_BUILD_DIR=${REPODIR}/cpp/doxygen RAFT_DASK_BUILD_DIR=${REPODIR}/python/raft-dask/_skbuild PYLIBRAFT_BUILD_DIR=${REPODIR}/python/pylibraft/_skbuild BUILD_DIRS="${LIBRAFT_BUILD_DIR} ${PYLIBRAFT_BUILD_DIR} ${RAFT_DASK_BUILD_DIR}" # Set defaults for vars modified by flags to this script CMAKE_LOG_LEVEL="" VERBOSE_FLAG="" BUILD_ALL_GPU_ARCH=0 BUILD_TESTS=OFF BUILD_TYPE=Release BUILD_PRIMS_BENCH=OFF BUILD_ANN_BENCH=OFF BUILD_CPU_ONLY=OFF COMPILE_LIBRARY=OFF INSTALL_TARGET=install BUILD_REPORT_METRICS="" BUILD_REPORT_INCL_CACHE_STATS=OFF TEST_TARGETS="CLUSTER_TEST;CORE_TEST;DISTANCE_TEST;LABEL_TEST;LINALG_TEST;MATRIX_TEST;NEIGHBORS_TEST;NEIGHBORS_ANN_CAGRA_TEST;NEIGHBORS_ANN_NN_DESCENT_TEST;NEIGHBORS_ANN_IVF_TEST;RANDOM_TEST;SOLVERS_TEST;SPARSE_TEST;SPARSE_DIST_TEST;SPARSE_NEIGHBORS_TEST;STATS_TEST;UTILS_TEST" BENCH_TARGETS="CLUSTER_BENCH;CORE_BENCH;NEIGHBORS_BENCH;DISTANCE_BENCH;LINALG_BENCH;MATRIX_BENCH;SPARSE_BENCH;RANDOM_BENCH" CACHE_ARGS="" NVTX=ON LOG_COMPILE_TIME=OFF CLEAN=0 UNINSTALL=0 DISABLE_DEPRECATION_WARNINGS=ON CMAKE_TARGET="" # Set defaults for vars that may not have been defined externally INSTALL_PREFIX=${INSTALL_PREFIX:=${PREFIX:=${CONDA_PREFIX:=$LIBRAFT_BUILD_DIR/install}}} PARALLEL_LEVEL=${PARALLEL_LEVEL:=`nproc`} BUILD_ABI=${BUILD_ABI:=ON} # Default to Ninja if generator is not specified export CMAKE_GENERATOR="${CMAKE_GENERATOR:=Ninja}" function hasArg { (( ${NUMARGS} != 0 )) && (echo " ${ARGS} " | grep -q " $1 ") } function cmakeArgs { # Check for multiple cmake args options if [[ $(echo $ARGS | { grep -Eo "\-\-cmake\-args" || true; } | wc -l ) -gt 1 ]]; then echo "Multiple --cmake-args options were provided, please provide only one: ${ARGS}" exit 1 fi # Check for cmake args option if [[ -n $(echo $ARGS | { grep -E "\-\-cmake\-args" || true; } ) ]]; then # There are possible weird edge cases that may cause this regex filter to output nothing and fail silently # the true pipe will catch any weird edge cases that may happen and will cause the program to fall back # on the invalid option error EXTRA_CMAKE_ARGS=$(echo $ARGS | { grep -Eo "\-\-cmake\-args=\".+\"" || true; }) if [[ -n ${EXTRA_CMAKE_ARGS} ]]; then # Remove the full EXTRA_CMAKE_ARGS argument from list of args so that it passes validArgs function ARGS=${ARGS//$EXTRA_CMAKE_ARGS/} # Filter the full argument down to just the extra string that will be added to cmake call EXTRA_CMAKE_ARGS=$(echo $EXTRA_CMAKE_ARGS | grep -Eo "\".+\"" | sed -e 's/^"//' -e 's/"$//') fi fi } function cacheTool { # Check for multiple cache options if [[ $(echo $ARGS | { grep -Eo "\-\-cache\-tool" || true; } | wc -l ) -gt 1 ]]; then echo "Multiple --cache-tool options were provided, please provide only one: ${ARGS}" exit 1 fi # Check for cache tool option if [[ -n $(echo $ARGS | { grep -E "\-\-cache\-tool" || true; } ) ]]; then # There are possible weird edge cases that may cause this regex filter to output nothing and fail silently # the true pipe will catch any weird edge cases that may happen and will cause the program to fall back # on the invalid option error CACHE_TOOL=$(echo $ARGS | sed -e 's/.*--cache-tool=//' -e 's/ .*//') if [[ -n ${CACHE_TOOL} ]]; then # Remove the full CACHE_TOOL argument from list of args so that it passes validArgs function ARGS=${ARGS//--cache-tool=$CACHE_TOOL/} CACHE_ARGS="-DCMAKE_CUDA_COMPILER_LAUNCHER=${CACHE_TOOL} -DCMAKE_C_COMPILER_LAUNCHER=${CACHE_TOOL} -DCMAKE_CXX_COMPILER_LAUNCHER=${CACHE_TOOL}" fi fi } function limitTests { # Check for option to limit the set of test binaries to build if [[ -n $(echo $ARGS | { grep -E "\-\-limit\-tests" || true; } ) ]]; then # There are possible weird edge cases that may cause this regex filter to output nothing and fail silently # the true pipe will catch any weird edge cases that may happen and will cause the program to fall back # on the invalid option error LIMIT_TEST_TARGETS=$(echo $ARGS | sed -e 's/.*--limit-tests=//' -e 's/ .*//') if [[ -n ${LIMIT_TEST_TARGETS} ]]; then # Remove the full LIMIT_TEST_TARGETS argument from list of args so that it passes validArgs function ARGS=${ARGS//--limit-tests=$LIMIT_TEST_TARGETS/} TEST_TARGETS=${LIMIT_TEST_TARGETS} echo "Limiting tests to $TEST_TARGETS" fi fi } function limitBench { # Check for option to limit the set of test binaries to build if [[ -n $(echo $ARGS | { grep -E "\-\-limit\-bench-prims" || true; } ) ]]; then # There are possible weird edge cases that may cause this regex filter to output nothing and fail silently # the true pipe will catch any weird edge cases that may happen and will cause the program to fall back # on the invalid option error LIMIT_PRIMS_BENCH_TARGETS=$(echo $ARGS | sed -e 's/.*--limit-bench-prims=//' -e 's/ .*//') if [[ -n ${LIMIT_PRIMS_BENCH_TARGETS} ]]; then # Remove the full LIMIT_PRIMS_BENCH_TARGETS argument from list of args so that it passes validArgs function ARGS=${ARGS//--limit-bench-prims=$LIMIT_PRIMS_BENCH_TARGETS/} PRIMS_BENCH_TARGETS=${LIMIT_PRIMS_BENCH_TARGETS} fi fi } function limitAnnBench { # Check for option to limit the set of test binaries to build if [[ -n $(echo $ARGS | { grep -E "\-\-limit\-bench-ann" || true; } ) ]]; then # There are possible weird edge cases that may cause this regex filter to output nothing and fail silently # the true pipe will catch any weird edge cases that may happen and will cause the program to fall back # on the invalid option error LIMIT_ANN_BENCH_TARGETS=$(echo $ARGS | sed -e 's/.*--limit-bench-ann=//' -e 's/ .*//') if [[ -n ${LIMIT_ANN_BENCH_TARGETS} ]]; then # Remove the full LIMIT_TEST_TARGETS argument from list of args so that it passes validArgs function ARGS=${ARGS//--limit-bench-ann=$LIMIT_ANN_BENCH_TARGETS/} ANN_BENCH_TARGETS=${LIMIT_ANN_BENCH_TARGETS} fi fi } function buildMetrics { # Check for multiple build-metrics options if [[ $(echo $ARGS | { grep -Eo "\-\-build\-metrics" || true; } | wc -l ) -gt 1 ]]; then echo "Multiple --build-metrics options were provided, please provide only one: ${ARGS}" exit 1 fi # Check for build-metrics option if [[ -n $(echo $ARGS | { grep -E "\-\-build\-metrics" || true; } ) ]]; then # There are possible weird edge cases that may cause this regex filter to output nothing and fail silently # the true pipe will catch any weird edge cases that may happen and will cause the program to fall back # on the invalid option error BUILD_REPORT_METRICS=$(echo $ARGS | sed -e 's/.*--build-metrics=//' -e 's/ .*//') if [[ -n ${BUILD_REPORT_METRICS} ]]; then # Remove the full BUILD_REPORT_METRICS argument from list of args so that it passes validArgs function ARGS=${ARGS//--build-metrics=$BUILD_REPORT_METRICS/} fi fi } if hasArg -h || hasArg --help; then echo "${HELP}" exit 0 fi # Check for valid usage if (( ${NUMARGS} != 0 )); then cmakeArgs cacheTool limitTests limitBench limitAnnBench buildMetrics for a in ${ARGS}; do if ! (echo " ${VALIDARGS} " | grep -q " ${a} "); then echo "Invalid option: ${a}" exit 1 fi done fi # This should run before build/install if hasArg --uninstall; then UNINSTALL=1 if hasArg pylibraft || hasArg libraft || (( ${NUMARGS} == 1 )); then echo "Removing libraft files..." if [ -e ${LIBRAFT_BUILD_DIR}/install_manifest.txt ]; then xargs rm -fv < ${LIBRAFT_BUILD_DIR}/install_manifest.txt > /dev/null 2>&1 fi fi if hasArg pylibraft || (( ${NUMARGS} == 1 )); then echo "Uninstalling pylibraft package..." if [ -e ${PYLIBRAFT_BUILD_DIR}/install_manifest.txt ]; then xargs rm -fv < ${PYLIBRAFT_BUILD_DIR}/install_manifest.txt > /dev/null 2>&1 fi # Try to uninstall via pip if it is installed if [ -x "$(command -v pip)" ]; then echo "Using pip to uninstall pylibraft" pip uninstall -y pylibraft # Otherwise, try to uninstall through conda if that's where things are installed elif [ -x "$(command -v conda)" ] && [ "$INSTALL_PREFIX" == "$CONDA_PREFIX" ]; then echo "Using conda to uninstall pylibraft" conda uninstall -y pylibraft # Otherwise, fail else echo "Could not uninstall pylibraft from pip or conda. pylibraft package will need to be manually uninstalled" fi fi if hasArg raft-dask || (( ${NUMARGS} == 1 )); then echo "Uninstalling raft-dask package..." if [ -e ${RAFT_DASK_BUILD_DIR}/install_manifest.txt ]; then xargs rm -fv < ${RAFT_DASK_BUILD_DIR}/install_manifest.txt > /dev/null 2>&1 fi # Try to uninstall via pip if it is installed if [ -x "$(command -v pip)" ]; then echo "Using pip to uninstall raft-dask" pip uninstall -y raft-dask # Otherwise, try to uninstall through conda if that's where things are installed elif [ -x "$(command -v conda)" ] && [ "$INSTALL_PREFIX" == "$CONDA_PREFIX" ]; then echo "Using conda to uninstall raft-dask" conda uninstall -y raft-dask # Otherwise, fail else echo "Could not uninstall raft-dask from pip or conda. raft-dask package will need to be manually uninstalled." fi fi exit 0 fi # Process flags if hasArg -n; then INSTALL_TARGET="" fi if hasArg -v; then VERBOSE_FLAG="-v" CMAKE_LOG_LEVEL="VERBOSE" fi if hasArg -g; then BUILD_TYPE=Debug fi if hasArg --allgpuarch; then BUILD_ALL_GPU_ARCH=1 fi if hasArg --compile-lib || (( ${NUMARGS} == 0 )); then COMPILE_LIBRARY=ON CMAKE_TARGET="${CMAKE_TARGET};raft_lib" fi if hasArg --compile-static-lib || (( ${NUMARGS} == 0 )); then COMPILE_LIBRARY=ON CMAKE_TARGET="${CMAKE_TARGET};raft_lib_static" fi if hasArg tests || (( ${NUMARGS} == 0 )); then BUILD_TESTS=ON CMAKE_TARGET="${CMAKE_TARGET};${TEST_TARGETS}" # Force compile library when needed test targets are specified if [[ $CMAKE_TARGET == *"CLUSTER_TEST"* || \ $CMAKE_TARGET == *"DISTANCE_TEST"* || \ $CMAKE_TARGET == *"MATRIX_TEST"* || \ $CMAKE_TARGET == *"NEIGHBORS_ANN_CAGRA_TEST"* || \ $CMAKE_TARGET == *"NEIGHBORS_ANN_IVF_TEST"* || \ $CMAKE_TARGET == *"NEIGHBORS_ANN_NN_DESCENT_TEST"* || \ $CMAKE_TARGET == *"NEIGHBORS_TEST"* || \ $CMAKE_TARGET == *"SPARSE_DIST_TEST" || \ $CMAKE_TARGET == *"SPARSE_NEIGHBORS_TEST"* || \ $CMAKE_TARGET == *"STATS_TEST"* ]]; then echo "-- Enabling compiled lib for gtests" COMPILE_LIBRARY=ON fi fi if hasArg bench-prims || (( ${NUMARGS} == 0 )); then BUILD_PRIMS_BENCH=ON CMAKE_TARGET="${CMAKE_TARGET};${PRIMS_BENCH_TARGETS}" # Force compile library when needed benchmark targets are specified if [[ $CMAKE_TARGET == *"CLUSTER_PRIMS_BENCH"* || \ $CMAKE_TARGET == *"MATRIX_PRIMS_BENCH"* || \ $CMAKE_TARGET == *"NEIGHBORS_PRIMS_BENCH"* ]]; then echo "-- Enabling compiled lib for benchmarks" COMPILE_LIBRARY=ON fi fi if hasArg bench-ann || (( ${NUMARGS} == 0 )); then BUILD_ANN_BENCH=ON CMAKE_TARGET="${CMAKE_TARGET};${ANN_BENCH_TARGETS}" if hasArg --cpu-only; then COMPILE_LIBRARY=OFF BUILD_CPU_ONLY=ON NVTX=OFF else COMPILE_LIBRARY=ON fi fi if hasArg --no-nvtx; then NVTX=OFF fi if hasArg --time; then echo "-- Logging compile times to cpp/build/nvcc_compile_log.csv" LOG_COMPILE_TIME=ON fi if hasArg --show_depr_warn; then DISABLE_DEPRECATION_WARNINGS=OFF fi if hasArg clean; then CLEAN=1 fi if hasArg --incl-cache-stats; then BUILD_REPORT_INCL_CACHE_STATS=ON fi if [[ ${CMAKE_TARGET} == "" ]]; then CMAKE_TARGET="all" fi # Append `-DFIND_RAFT_CPP=ON` to EXTRA_CMAKE_ARGS unless a user specified the option. SKBUILD_EXTRA_CMAKE_ARGS="${EXTRA_CMAKE_ARGS}" if [[ "${EXTRA_CMAKE_ARGS}" != *"DFIND_RAFT_CPP"* ]]; then SKBUILD_EXTRA_CMAKE_ARGS="${SKBUILD_EXTRA_CMAKE_ARGS} -DFIND_RAFT_CPP=ON" fi # If clean given, run it prior to any other steps if (( ${CLEAN} == 1 )); then # If the dirs to clean are mounted dirs in a container, the # contents should be removed but the mounted dirs will remain. # The find removes all contents but leaves the dirs, the rmdir # attempts to remove the dirs but can fail safely. for bd in ${BUILD_DIRS}; do if [ -d ${bd} ]; then find ${bd} -mindepth 1 -delete rmdir ${bd} || true fi done fi ################################################################################ # Configure for building all C++ targets if (( ${NUMARGS} == 0 )) || hasArg libraft || hasArg docs || hasArg tests || hasArg bench-prims || hasArg bench-ann; then if (( ${BUILD_ALL_GPU_ARCH} == 0 )); then RAFT_CMAKE_CUDA_ARCHITECTURES="NATIVE" echo "Building for the architecture of the GPU in the system..." else RAFT_CMAKE_CUDA_ARCHITECTURES="RAPIDS" echo "Building for *ALL* supported GPU architectures..." fi # get the current count before the compile starts CACHE_TOOL=${CACHE_TOOL:-sccache} if [[ "$BUILD_REPORT_INCL_CACHE_STATS" == "ON" && -x "$(command -v ${CACHE_TOOL})" ]]; then "${CACHE_TOOL}" --zero-stats fi mkdir -p ${LIBRAFT_BUILD_DIR} cd ${LIBRAFT_BUILD_DIR} cmake -S ${REPODIR}/cpp -B ${LIBRAFT_BUILD_DIR} \ -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \ -DCMAKE_CUDA_ARCHITECTURES=${RAFT_CMAKE_CUDA_ARCHITECTURES} \ -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \ -DRAFT_COMPILE_LIBRARY=${COMPILE_LIBRARY} \ -DRAFT_NVTX=${NVTX} \ -DCUDA_LOG_COMPILE_TIME=${LOG_COMPILE_TIME} \ -DDISABLE_DEPRECATION_WARNINGS=${DISABLE_DEPRECATION_WARNINGS} \ -DBUILD_TESTS=${BUILD_TESTS} \ -DBUILD_PRIMS_BENCH=${BUILD_PRIMS_BENCH} \ -DBUILD_ANN_BENCH=${BUILD_ANN_BENCH} \ -DBUILD_CPU_ONLY=${BUILD_CPU_ONLY} \ -DCMAKE_MESSAGE_LOG_LEVEL=${CMAKE_LOG_LEVEL} \ ${CACHE_ARGS} \ ${EXTRA_CMAKE_ARGS} compile_start=$(date +%s) if [[ ${CMAKE_TARGET} != "" ]]; then echo "-- Compiling targets: ${CMAKE_TARGET}, verbose=${VERBOSE_FLAG}" if [[ ${INSTALL_TARGET} != "" ]]; then cmake --build "${LIBRAFT_BUILD_DIR}" ${VERBOSE_FLAG} -j${PARALLEL_LEVEL} --target ${CMAKE_TARGET} ${INSTALL_TARGET} else cmake --build "${LIBRAFT_BUILD_DIR}" ${VERBOSE_FLAG} -j${PARALLEL_LEVEL} --target ${CMAKE_TARGET} fi fi compile_end=$(date +%s) compile_total=$(( compile_end - compile_start )) if [[ -n "$BUILD_REPORT_METRICS" && -f "${LIBRAFT_BUILD_DIR}/.ninja_log" ]]; then if ! rapids-build-metrics-reporter.py 2> /dev/null && [ ! -f rapids-build-metrics-reporter.py ]; then echo "Downloading rapids-build-metrics-reporter.py" curl -sO https://raw.githubusercontent.com/rapidsai/build-metrics-reporter/v1/rapids-build-metrics-reporter.py fi echo "Formatting build metrics" MSG="" # get some sccache/ccache stats after the compile if [[ "$BUILD_REPORT_INCL_CACHE_STATS" == "ON" ]]; then if [[ ${CACHE_TOOL} == "sccache" && -x "$(command -v sccache)" ]]; then COMPILE_REQUESTS=$(sccache -s | grep "Compile requests \+ [0-9]\+$" | awk '{ print $NF }') CACHE_HITS=$(sccache -s | grep "Cache hits \+ [0-9]\+$" | awk '{ print $NF }') HIT_RATE=$(echo - | awk "{printf \"%.2f\n\", $CACHE_HITS / $COMPILE_REQUESTS * 100}") MSG="${MSG}<br/>cache hit rate ${HIT_RATE} %" elif [[ ${CACHE_TOOL} == "ccache" && -x "$(command -v ccache)" ]]; then CACHE_STATS_LINE=$(ccache -s | grep "Hits: \+ [0-9]\+ / [0-9]\+" | tail -n1) if [[ ! -z "$CACHE_STATS_LINE" ]]; then CACHE_HITS=$(echo "$CACHE_STATS_LINE" - | awk '{ print $2 }') COMPILE_REQUESTS=$(echo "$CACHE_STATS_LINE" - | awk '{ print $4 }') HIT_RATE=$(echo - | awk "{printf \"%.2f\n\", $CACHE_HITS / $COMPILE_REQUESTS * 100}") MSG="${MSG}<br/>cache hit rate ${HIT_RATE} %" fi fi fi MSG="${MSG}<br/>parallel setting: $PARALLEL_LEVEL" MSG="${MSG}<br/>parallel build time: $compile_total seconds" if [[ -f "${LIBRAFT_BUILD_DIR}/libraft.so" ]]; then LIBRAFT_FS=$(ls -lh ${LIBRAFT_BUILD_DIR}/libraft.so | awk '{print $5}') MSG="${MSG}<br/>libraft.so size: $LIBRAFT_FS" fi BMR_DIR=${RAPIDS_ARTIFACTS_DIR:-"${LIBRAFT_BUILD_DIR}"} echo "The HTML report can be found at [${BMR_DIR}/${BUILD_REPORT_METRICS}.html]. In CI, this report" echo "will also be uploaded to the appropriate subdirectory of https://downloads.rapids.ai/ci/raft/, and" echo "the entire URL can be found in \"conda-cpp-build\" runs under the task \"Upload additional artifacts\"" mkdir -p ${BMR_DIR} MSG_OUTFILE="$(mktemp)" echo "$MSG" > "${MSG_OUTFILE}" PATH=".:$PATH" python rapids-build-metrics-reporter.py ${LIBRAFT_BUILD_DIR}/.ninja_log --fmt html --msg "${MSG_OUTFILE}" > ${BMR_DIR}/${BUILD_REPORT_METRICS}.html cp ${LIBRAFT_BUILD_DIR}/.ninja_log ${BMR_DIR}/ninja.log fi fi # Build and (optionally) install the pylibraft Python package if (( ${NUMARGS} == 0 )) || hasArg pylibraft; then SKBUILD_CONFIGURE_OPTIONS="${SKBUILD_EXTRA_CMAKE_ARGS}" \ SKBUILD_BUILD_OPTIONS="-j${PARALLEL_LEVEL}" \ python -m pip install --no-build-isolation --no-deps ${REPODIR}/python/pylibraft fi # Build and (optionally) install the raft-dask Python package if (( ${NUMARGS} == 0 )) || hasArg raft-dask; then SKBUILD_CONFIGURE_OPTIONS="${SKBUILD_EXTRA_CMAKE_ARGS}" \ SKBUILD_BUILD_OPTIONS="-j${PARALLEL_LEVEL}" \ python -m pip install --no-build-isolation --no-deps ${REPODIR}/python/raft-dask fi # Build and (optionally) install the raft-ann-bench Python package if (( ${NUMARGS} == 0 )) || hasArg bench-ann; then python -m pip install --no-build-isolation --no-deps ${REPODIR}/python/raft-ann-bench -vvv fi if hasArg docs; then set -x cd ${DOXYGEN_BUILD_DIR} doxygen Doxyfile cd ${SPHINX_BUILD_DIR} sphinx-build -b html source _html fi ################################################################################ # Initiate build for example RAFT application template (if needed) if hasArg template; then pushd ${REPODIR}/cpp/template ./build.sh popd fi
0
rapidsai_public_repos
rapidsai_public_repos/raft/dependencies.yaml
# Dependency list for https://github.com/rapidsai/dependency-file-generator files: all: output: conda matrix: cuda: ["11.8", "12.0"] arch: [x86_64, aarch64] includes: - build - build_pylibraft - cudatoolkit - develop - checks - build_wheels - test_libraft - docs - run_raft_dask - run_pylibraft - test_python_common - test_pylibraft - cupy bench_ann: output: conda matrix: cuda: ["11.8", "12.0"] arch: [x86_64, aarch64] includes: - build - develop - cudatoolkit - nn_bench - nn_bench_python test_cpp: output: none includes: - cudatoolkit - test_libraft test_python: output: none includes: - cudatoolkit - py_version - test_python_common - test_pylibraft - cupy checks: output: none includes: - checks - py_version docs: output: none includes: - test_pylibraft - cupy - cudatoolkit - docs - py_version py_build_pylibraft: output: pyproject pyproject_dir: python/pylibraft extras: table: build-system includes: - build - build_pylibraft - build_wheels py_run_pylibraft: output: pyproject pyproject_dir: python/pylibraft extras: table: project includes: - run_pylibraft py_test_pylibraft: output: pyproject pyproject_dir: python/pylibraft extras: table: project.optional-dependencies key: test includes: - test_python_common - test_pylibraft - cupy py_build_raft_dask: output: pyproject pyproject_dir: python/raft-dask extras: table: build-system includes: - build - build_wheels py_run_raft_dask: output: pyproject pyproject_dir: python/raft-dask extras: table: project includes: - run_raft_dask py_test_raft_dask: output: pyproject pyproject_dir: python/raft-dask extras: table: project.optional-dependencies key: test includes: - test_python_common py_build_raft_ann_bench: output: pyproject pyproject_dir: python/raft-ann-bench extras: table: build-system includes: - build_wheels py_run_raft_ann_bench: output: pyproject pyproject_dir: python/raft-ann-bench extras: table: project includes: - nn_bench_python channels: - rapidsai - rapidsai-nightly - dask/label/dev - conda-forge - nvidia dependencies: build: common: - output_types: [conda, requirements, pyproject] packages: - &cmake_ver cmake>=3.26.4 - cython>=3.0.0 - ninja - scikit-build>=0.13.1 - output_types: [conda] packages: - c-compiler - cxx-compiler - nccl>=2.9.9 specific: - output_types: conda matrices: - matrix: arch: x86_64 packages: - gcc_linux-64=11.* - sysroot_linux-64==2.17 - matrix: arch: aarch64 packages: - gcc_linux-aarch64=11.* - sysroot_linux-aarch64==2.17 - output_types: conda matrices: - matrix: {cuda: "12.0"} packages: [cuda-version=12.0, cuda-nvcc] - matrix: {cuda: "11.8", arch: x86_64} packages: [nvcc_linux-64=11.8] - matrix: {cuda: "11.8", arch: aarch64} packages: [nvcc_linux-aarch64=11.8] - matrix: {cuda: "11.5", arch: x86_64} packages: [nvcc_linux-64=11.5] - matrix: {cuda: "11.5", arch: aarch64} packages: [nvcc_linux-aarch64=11.5] - matrix: {cuda: "11.4", arch: x86_64} packages: [nvcc_linux-64=11.4] - matrix: {cuda: "11.4", arch: aarch64} packages: [nvcc_linux-aarch64=11.4] - matrix: {cuda: "11.2", arch: x86_64} packages: [nvcc_linux-64=11.2] - matrix: {cuda: "11.2", arch: aarch64} packages: [nvcc_linux-aarch64=11.2] build_pylibraft: common: - output_types: [conda] packages: - &rmm_conda rmm==24.2.* - output_types: requirements packages: # pip recognizes the index as a global option for the requirements.txt file # This index is needed for rmm-cu{11,12}. - --extra-index-url=https://pypi.nvidia.com specific: - output_types: [conda, requirements, pyproject] matrices: - matrix: cuda: "12.0" packages: - &cuda_python12 cuda-python>=12.0,<13.0a0 - matrix: # All CUDA 11 versions packages: - &cuda_python11 cuda-python>=11.7.1,<12.0a0 - output_types: [requirements, pyproject] matrices: - matrix: {cuda: "12.2"} packages: &build_pylibraft_packages_cu12 - &rmm_cu12 rmm-cu12==24.2.* - {matrix: {cuda: "12.1"}, packages: *build_pylibraft_packages_cu12} - {matrix: {cuda: "12.0"}, packages: *build_pylibraft_packages_cu12} - matrix: {cuda: "11.8"} packages: &build_pylibraft_packages_cu11 - &rmm_cu11 rmm-cu11==24.2.* - {matrix: {cuda: "11.5"}, packages: *build_pylibraft_packages_cu11} - {matrix: {cuda: "11.4"}, packages: *build_pylibraft_packages_cu11} - {matrix: {cuda: "11.2"}, packages: *build_pylibraft_packages_cu11} - {matrix: null, packages: [*rmm_conda] } checks: common: - output_types: [conda, requirements] packages: - pre-commit develop: common: - output_types: conda packages: - clang==16.0.6 - clang-tools=16.0.6 nn_bench: common: - output_types: [conda, pyproject, requirements] packages: - hnswlib=0.7.0 - nlohmann_json>=3.11.2 - glog>=0.6.0 - h5py>=3.8.0 - benchmark>=1.8.2 - openblas - *rmm_conda nn_bench_python: common: - output_types: [conda] packages: - matplotlib - pandas - pyyaml - pandas cudatoolkit: specific: - output_types: conda matrices: - matrix: cuda: "12.0" packages: - cuda-version=12.0 - cuda-nvtx-dev - cuda-cudart-dev - cuda-profiler-api - libcublas-dev - libcurand-dev - libcusolver-dev - libcusparse-dev - matrix: cuda: "11.8" packages: - cuda-version=11.8 - cudatoolkit - cuda-nvtx=11.8 - cuda-profiler-api=11.8.86 - libcublas-dev=11.11.3.6 - libcublas=11.11.3.6 - libcurand-dev=10.3.0.86 - libcurand=10.3.0.86 - libcusolver-dev=11.4.1.48 - libcusolver=11.4.1.48 - libcusparse-dev=11.7.5.86 - libcusparse=11.7.5.86 - matrix: cuda: "11.5" packages: - cuda-version=11.5 - cudatoolkit - cuda-nvtx=11.5 - cuda-profiler-api>=11.4.240,<=11.8.86 # use any `11.x` version since pkg is missing several CUDA/arch packages - libcublas-dev>=11.7.3.1,<=11.7.4.6 - libcublas>=11.7.3.1,<=11.7.4.6 - libcurand-dev>=10.2.6.48,<=10.2.7.107 - libcurand>=10.2.6.48,<=10.2.7.107 - libcusolver-dev>=11.2.1.48,<=11.3.2.107 - libcusolver>=11.2.1.48,<=11.3.2.107 - libcusparse-dev>=11.7.0.31,<=11.7.0.107 - libcusparse>=11.7.0.31,<=11.7.0.107 - matrix: cuda: "11.4" packages: - cuda-version=11.4 - cudatoolkit - &cudanvtx114 cuda-nvtx=11.4 - cuda-profiler-api>=11.4.240,<=11.8.86 # use any `11.x` version since pkg is missing several CUDA/arch packages - &libcublas_dev114 libcublas-dev>=11.5.2.43,<=11.6.5.2 - &libcublas114 libcublas>=11.5.2.43,<=11.6.5.2 - &libcurand_dev114 libcurand-dev>=10.2.5.43,<=10.2.5.120 - &libcurand114 libcurand>=10.2.5.43,<=10.2.5.120 - &libcusolver_dev114 libcusolver-dev>=11.2.0.43,<=11.2.0.120 - &libcusolver114 libcusolver>=11.2.0.43,<=11.2.0.120 - &libcusparse_dev114 libcusparse-dev>=11.6.0.43,<=11.6.0.120 - &libcusparse114 libcusparse>=11.6.0.43,<=11.6.0.120 - matrix: cuda: "11.2" packages: - cuda-version=11.2 - cudatoolkit - *cudanvtx114 - cuda-profiler-api>=11.4.240,<=11.8.86 # use any `11.x` version since pkg is missing several CUDA/arch packages # The NVIDIA channel doesn't publish pkgs older than 11.4 for these libs, # so 11.2 uses 11.4 packages (the oldest available). - *libcublas_dev114 - *libcublas114 - *libcurand_dev114 - *libcurand114 - *libcusolver_dev114 - *libcusolver114 - *libcusparse_dev114 - *libcusparse114 cupy: common: - output_types: conda packages: - cupy>=12.0.0 specific: - output_types: [requirements, pyproject] matrices: # All CUDA 12 + x86_64 versions - matrix: {cuda: "12.2", arch: x86_64} packages: &cupy_packages_cu12_x86_64 - &cupy_cu12_x86_64 cupy-cuda12x>=12.0.0 - {matrix: {cuda: "12.1", arch: x86_64}, packages: *cupy_packages_cu12_x86_64} - {matrix: {cuda: "12.0", arch: x86_64}, packages: *cupy_packages_cu12_x86_64} # All CUDA 12 + aarch64 versions - matrix: {cuda: "12.2", arch: aarch64} packages: &cupy_packages_cu12_aarch64 - &cupy_cu12_aarch64 cupy-cuda12x -f https://pip.cupy.dev/aarch64 # TODO: Verify that this works. - {matrix: {cuda: "12.1", arch: aarch64}, packages: *cupy_packages_cu12_aarch64} - {matrix: {cuda: "12.0", arch: aarch64}, packages: *cupy_packages_cu12_aarch64} # All CUDA 11 + x86_64 versions - matrix: {cuda: "11.8", arch: x86_64} packages: &cupy_packages_cu11_x86_64 - cupy-cuda11x>=12.0.0 - {matrix: {cuda: "11.5", arch: x86_64}, packages: *cupy_packages_cu11_x86_64} - {matrix: {cuda: "11.4", arch: x86_64}, packages: *cupy_packages_cu11_x86_64} - {matrix: {cuda: "11.2", arch: x86_64}, packages: *cupy_packages_cu11_x86_64} # All CUDA 11 + aarch64 versions - matrix: {cuda: "11.8", arch: aarch64} packages: &cupy_packages_cu11_aarch64 - cupy-cuda11x -f https://pip.cupy.dev/aarch64 # TODO: Verify that this works. - {matrix: {cuda: "11.5", arch: aarch64}, packages: *cupy_packages_cu11_aarch64} - {matrix: {cuda: "11.4", arch: aarch64}, packages: *cupy_packages_cu11_aarch64} - {matrix: {cuda: "11.2", arch: aarch64}, packages: *cupy_packages_cu11_aarch64} - {matrix: null, packages: [cupy-cuda11x>=12.0.0]} test_libraft: common: - output_types: [conda] packages: - *cmake_ver - gtest>=1.13.0 - gmock>=1.13.0 docs: common: - output_types: [conda] packages: - breathe - doxygen>=1.8.20 - graphviz - ipython - numpydoc - pydata-sphinx-theme - recommonmark - sphinx-copybutton - sphinx-markdown-tables build_wheels: common: - output_types: [requirements, pyproject] packages: - wheel - setuptools py_version: specific: - output_types: conda matrices: - matrix: py: "3.9" packages: - python=3.9 - matrix: py: "3.10" packages: - python=3.10 - matrix: packages: - python>=3.9,<3.11 run_pylibraft: common: - output_types: [conda, pyproject] packages: - &numpy numpy>=1.21 - output_types: [conda] packages: - *rmm_conda - output_types: requirements packages: # pip recognizes the index as a global option for the requirements.txt file # This index is needed for cudf and rmm. - --extra-index-url=https://pypi.nvidia.com specific: - output_types: [conda, requirements, pyproject] matrices: - matrix: cuda: "12.0" packages: - *cuda_python12 - matrix: # All CUDA 11 versions packages: - *cuda_python11 - output_types: [requirements, pyproject] matrices: - matrix: {cuda: "12.2"} packages: &run_pylibraft_packages_cu12 - *rmm_cu12 - {matrix: {cuda: "12.1"}, packages: *run_pylibraft_packages_cu12} - {matrix: {cuda: "12.0"}, packages: *run_pylibraft_packages_cu12} - matrix: {cuda: "11.8"} packages: &run_pylibraft_packages_cu11 - *rmm_cu11 - {matrix: {cuda: "11.5"}, packages: *run_pylibraft_packages_cu11} - {matrix: {cuda: "11.4"}, packages: *run_pylibraft_packages_cu11} - {matrix: {cuda: "11.2"}, packages: *run_pylibraft_packages_cu11} - {matrix: null, packages: [*rmm_conda]} run_raft_dask: common: - output_types: [conda, pyproject] packages: - dask-cuda==24.2.* - joblib>=0.11 - numba>=0.57 - *numpy - rapids-dask-dependency==24.2.* - ucx-py==0.36.* - output_types: conda packages: - ucx>=1.13.0 - ucx-proc=*=gpu - &ucx_py_conda ucx-py==0.36.* - output_types: pyproject packages: - &pylibraft_conda pylibraft==24.2.* - output_types: requirements packages: # pip recognizes the index as a global option for the requirements.txt file # This index is needed for cudf and rmm. - --extra-index-url=https://pypi.nvidia.com specific: - output_types: [requirements, pyproject] matrices: - matrix: {cuda: "12.2"} packages: &run_raft_dask_packages_cu12 - &pylibraft_cu12 pylibraft-cu12==24.2.* - &ucx_py_cu12 ucx-py-cu12==0.35.* - {matrix: {cuda: "12.1"}, packages: *run_raft_dask_packages_cu12} - {matrix: {cuda: "12.0"}, packages: *run_raft_dask_packages_cu12} - matrix: {cuda: "11.8"} packages: &run_raft_dask_packages_cu11 - &pylibraft_cu11 pylibraft-cu11==24.2.* - &ucx_py_cu11 ucx-py-cu11==0.35.* - {matrix: {cuda: "11.5"}, packages: *run_raft_dask_packages_cu11} - {matrix: {cuda: "11.4"}, packages: *run_raft_dask_packages_cu11} - {matrix: {cuda: "11.2"}, packages: *run_raft_dask_packages_cu11} - {matrix: null, packages: [*pylibraft_conda, *ucx_py_conda]} test_python_common: common: - output_types: [conda, requirements, pyproject] packages: - pytest - pytest-cov test_pylibraft: common: - output_types: [conda, requirements, pyproject] packages: - scikit-learn - scipy
0
rapidsai_public_repos
rapidsai_public_repos/raft/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2020 NVIDIA Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0
rapidsai_public_repos
rapidsai_public_repos/raft/VERSION
24.02.00
0
rapidsai_public_repos/raft/python
rapidsai_public_repos/raft/python/raft-dask/pyproject.toml
# Copyright (c) 2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. [build-system] requires = [ "cmake>=3.26.4", "cython>=3.0.0", "ninja", "scikit-build>=0.13.1", "setuptools", "wheel", ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. [project] name = "raft-dask" dynamic = ["version"] description = "Reusable Accelerated Functions & Tools Dask Infrastructure" readme = { file = "README.md", content-type = "text/markdown" } authors = [ { name = "NVIDIA Corporation" }, ] license = { text = "Apache 2.0" } requires-python = ">=3.9" dependencies = [ "dask-cuda==24.2.*", "joblib>=0.11", "numba>=0.57", "numpy>=1.21", "pylibraft==24.2.*", "rapids-dask-dependency==24.2.*", "ucx-py==0.36.*", ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. classifiers = [ "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", ] [project.optional-dependencies] test = [ "pytest", "pytest-cov", ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. [project.urls] Homepage = "https://github.com/rapidsai/raft" Documentation = "https://docs.rapids.ai/api/raft/stable/" [tool.setuptools] license-files = ["LICENSE"] [tool.setuptools.dynamic] version = {file = "raft_dask/VERSION"} [tool.isort] line_length = 79 multi_line_output = 3 include_trailing_comma = true force_grid_wrap = 0 combine_as_imports = true order_by_type = true known_dask = [ "dask", "distributed", "dask_cuda", ] known_rapids = [ "pylibraft", "rmm", ] known_first_party = [ "raft_dask", ] default_section = "THIRDPARTY" sections = [ "FUTURE", "STDLIB", "THIRDPARTY", "DASK", "RAPIDS", "FIRSTPARTY", "LOCALFOLDER", ] skip = [ "thirdparty", ".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", "_build", "buck-out", "build", "dist", "__init__.py", ]
0
rapidsai_public_repos/raft/python
rapidsai_public_repos/raft/python/raft-dask/CMakeLists.txt
# ============================================================================= # Copyright (c) 2022-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software distributed under the License # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under # the License. # ============================================================================= cmake_minimum_required(VERSION 3.26.4 FATAL_ERROR) set(raft_dask_version 24.02.00) include(../../fetch_rapids.cmake) include(rapids-cuda) rapids_cuda_init_architectures(raft-dask-python) project( raft-dask-python VERSION ${raft_dask_version} LANGUAGES # TODO: Building Python extension modules via the python_extension_module requires the C # language to be enabled here. The test project that is built in scikit-build to verify # various linking options for the python library is hardcoded to build with C, so until # that is fixed we need to keep C. C CXX CUDA ) option(FIND_RAFT_CPP "Search for existing RAFT C++ installations before defaulting to local files" OFF ) option(RAFT_BUILD_WHEELS "Whether this build is generating a Python wheel." OFF) # If the user requested it we attempt to find RAFT. if(FIND_RAFT_CPP) find_package(raft ${raft_dask_version} REQUIRED COMPONENTS distributed) else() set(raft_FOUND OFF) endif() if(NOT raft_FOUND) find_package(ucx REQUIRED) # raft-dask doesn't actually use raft libraries, it just needs the headers, so we can turn off all # library compilation and we don't need to install anything here. set(BUILD_TESTS OFF) set(BUILD_ANN_BENCH OFF) set(BUILD_PRIMS_BENCH OFF) set(RAFT_COMPILE_LIBRARIES OFF) set(RAFT_COMPILE_DIST_LIBRARY OFF) set(RAFT_COMPILE_NN_LIBRARY OFF) set(_exclude_from_all "") if(RAFT_BUILD_WHEELS) # Statically link dependencies if building wheels set(CUDA_STATIC_RUNTIME ON) # Don't install the raft C++ targets into wheels set(_exclude_from_all EXCLUDE_FROM_ALL) endif() add_subdirectory(../../cpp raft-cpp ${_exclude_from_all}) list(APPEND CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR}/cmake/find_modules) find_package(NCCL REQUIRED) endif() include(rapids-cython) rapids_cython_init() add_subdirectory(raft_dask/common) add_subdirectory(raft_dask/include_test)
0
rapidsai_public_repos/raft/python
rapidsai_public_repos/raft/python/raft-dask/setup.py
# # Copyright (c) 2020-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from setuptools import find_packages from skbuild import setup def exclude_libcxx_symlink(cmake_manifest): return list( filter( lambda name: not ("include/rapids/libcxx/include" in name), cmake_manifest, ) ) packages = find_packages(include=["raft_dask*"]) setup( cmake_process_manifest_hook=exclude_libcxx_symlink, packages=packages, package_data={key: ["VERSION", "*.pxd"] for key in packages}, zip_safe=False, )
0
rapidsai_public_repos/raft/python
rapidsai_public_repos/raft/python/raft-dask/pytest.ini
[pytest] markers = unit: marks unit tests quality: marks quality tests stress: marks stress tests mg: marks a test as multi-GPU memleak: marks a test as a memory leak test nccl: marks a test as using NCCL
0
rapidsai_public_repos/raft/python
rapidsai_public_repos/raft/python/raft-dask/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2020 NVIDIA Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0
rapidsai_public_repos/raft/python
rapidsai_public_repos/raft/python/raft-dask/.coveragerc
# Configuration file for Python coverage tests [run] source = raft_dask
0
rapidsai_public_repos/raft/python/raft-dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/_version.py
# Copyright (c) 2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import importlib.resources __version__ = ( importlib.resources.files("raft_dask") .joinpath("VERSION") .read_text() .strip() ) __git_commit__ = ""
0
rapidsai_public_repos/raft/python/raft-dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/__init__.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from raft_dask._version import __git_commit__, __version__
0
rapidsai_public_repos/raft/python/raft-dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/VERSION
24.02.00
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/include_test/raft_include_test.pyx
# Copyright (c) 2020-2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # def raft_include_test(): print("RAFT Setup successfully") return True
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/include_test/CMakeLists.txt
# ============================================================================= # Copyright (c) 2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software distributed under the License # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under # the License. # ============================================================================= set(cython_sources raft_include_test.pyx) set(linked_libraries raft::raft) rapids_cython_create_modules( SOURCE_FILES "${cython_sources}" ASSOCIATED_TARGETS raft LINKED_LIBRARIES "${linked_libraries}" CXX )
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/include_test/__init__.py
# Copyright (c) 2020-2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from .raft_include_test import raft_include_test
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/test/test_comms.py
# Copyright (c) 2019-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from collections import OrderedDict import pytest from dask.distributed import Client, get_worker, wait from dask_cuda import LocalCUDACluster try: from raft_dask.common import ( Comms, local_handle, perform_test_comm_split, perform_test_comms_allgather, perform_test_comms_allreduce, perform_test_comms_bcast, perform_test_comms_device_multicast_sendrecv, perform_test_comms_device_send_or_recv, perform_test_comms_device_sendrecv, perform_test_comms_gather, perform_test_comms_gatherv, perform_test_comms_reduce, perform_test_comms_reducescatter, perform_test_comms_send_recv, ) pytestmark = pytest.mark.mg except ImportError: pytestmark = pytest.mark.skip def create_client(cluster): """ Create a Dask distributed client for a specified cluster. Parameters ---------- cluster : LocalCUDACluster instance or str If a LocalCUDACluster instance is provided, a client will be created for it directly. If a string is provided, it should specify the path to a Dask scheduler file. A client will then be created for the cluster referenced by this scheduler file. Returns ------- dask.distributed.Client A client connected to the specified cluster. """ if isinstance(cluster, LocalCUDACluster): return Client(cluster) else: return Client(scheduler_file=cluster) def test_comms_init_no_p2p(cluster): client = create_client(cluster) try: cb = Comms(verbose=True) cb.init() assert cb.nccl_initialized is True assert cb.ucx_initialized is False finally: cb.destroy() client.close() def func_test_collective(func, sessionId, root): handle = local_handle(sessionId, dask_worker=get_worker()) return func(handle, root) def func_test_send_recv(sessionId, n_trials): handle = local_handle(sessionId, dask_worker=get_worker()) return perform_test_comms_send_recv(handle, n_trials) def func_test_device_send_or_recv(sessionId, n_trials): handle = local_handle(sessionId, dask_worker=get_worker()) return perform_test_comms_device_send_or_recv(handle, n_trials) def func_test_device_sendrecv(sessionId, n_trials): handle = local_handle(sessionId, dask_worker=get_worker()) return perform_test_comms_device_sendrecv(handle, n_trials) def func_test_device_multicast_sendrecv(sessionId, n_trials): handle = local_handle(sessionId, dask_worker=get_worker()) return perform_test_comms_device_multicast_sendrecv(handle, n_trials) def func_test_comm_split(sessionId, n_trials): handle = local_handle(sessionId, dask_worker=get_worker()) return perform_test_comm_split(handle, n_trials) def func_check_uid(sessionId, uniqueId, state_object): if not hasattr(state_object, "_raft_comm_state"): return 1 state = state_object._raft_comm_state if sessionId not in state: return 2 session_state = state[sessionId] if "nccl_uid" not in session_state: return 3 nccl_uid = session_state["nccl_uid"] if nccl_uid != uniqueId: return 4 return 0 def func_check_uid_on_scheduler(sessionId, uniqueId, dask_scheduler): return func_check_uid( sessionId=sessionId, uniqueId=uniqueId, state_object=dask_scheduler ) def func_check_uid_on_worker(sessionId, uniqueId, dask_worker=None): return func_check_uid( sessionId=sessionId, uniqueId=uniqueId, state_object=dask_worker ) def test_handles(cluster): client = create_client(cluster) def _has_handle(sessionId): return local_handle(sessionId, dask_worker=get_worker()) is not None try: cb = Comms(verbose=True) cb.init() dfs = [ client.submit(_has_handle, cb.sessionId, pure=False, workers=[w]) for w in cb.worker_addresses ] wait(dfs, timeout=5) assert all(client.compute(dfs, sync=True)) finally: cb.destroy() client.close() if pytestmark.markname != "skip": functions = [ perform_test_comms_allgather, perform_test_comms_allreduce, perform_test_comms_bcast, perform_test_comms_gather, perform_test_comms_gatherv, perform_test_comms_reduce, perform_test_comms_reducescatter, ] else: functions = [None] @pytest.mark.parametrize("root_location", ["client", "worker", "scheduler"]) def test_nccl_root_placement(client, root_location): cb = None try: cb = Comms( verbose=True, client=client, nccl_root_location=root_location ) cb.init() worker_addresses = list( OrderedDict.fromkeys(client.scheduler_info()["workers"].keys()) ) if root_location in ("worker",): result = client.run( func_check_uid_on_worker, cb.sessionId, cb.uniqueId, workers=[worker_addresses[0]], )[worker_addresses[0]] elif root_location in ("scheduler",): result = client.run_on_scheduler( func_check_uid_on_scheduler, cb.sessionId, cb.uniqueId ) else: result = int(cb.uniqueId is None) assert result == 0 finally: if cb: cb.destroy() @pytest.mark.parametrize("func", functions) @pytest.mark.parametrize("root_location", ["client", "worker", "scheduler"]) @pytest.mark.nccl def test_collectives(client, func, root_location): try: cb = Comms( verbose=True, client=client, nccl_root_location=root_location ) cb.init() for k, v in cb.worker_info(cb.worker_addresses).items(): dfs = [ client.submit( func_test_collective, func, cb.sessionId, v["rank"], pure=False, workers=[w], ) for w in cb.worker_addresses ] wait(dfs, timeout=5) assert all([x.result() for x in dfs]) finally: if cb: cb.destroy() @pytest.mark.nccl def test_comm_split(client): cb = Comms(comms_p2p=True, verbose=True) cb.init() dfs = [ client.submit( func_test_comm_split, cb.sessionId, 3, pure=False, workers=[w] ) for w in cb.worker_addresses ] wait(dfs, timeout=5) assert all([x.result() for x in dfs]) @pytest.mark.ucx @pytest.mark.parametrize("n_trials", [1, 5]) def test_send_recv(n_trials, client): cb = Comms(comms_p2p=True, verbose=True) cb.init() dfs = [ client.submit( func_test_send_recv, cb.sessionId, n_trials, pure=False, workers=[w], ) for w in cb.worker_addresses ] wait(dfs, timeout=5) assert list(map(lambda x: x.result(), dfs)) @pytest.mark.nccl @pytest.mark.parametrize("n_trials", [1, 5]) def test_device_send_or_recv(n_trials, client): cb = Comms(comms_p2p=True, verbose=True) cb.init() dfs = [ client.submit( func_test_device_send_or_recv, cb.sessionId, n_trials, pure=False, workers=[w], ) for w in cb.worker_addresses ] wait(dfs, timeout=5) assert list(map(lambda x: x.result(), dfs)) @pytest.mark.nccl @pytest.mark.parametrize("n_trials", [1, 5]) def test_device_sendrecv(n_trials, client): cb = Comms(comms_p2p=True, verbose=True) cb.init() dfs = [ client.submit( func_test_device_sendrecv, cb.sessionId, n_trials, pure=False, workers=[w], ) for w in cb.worker_addresses ] wait(dfs, timeout=5) assert list(map(lambda x: x.result(), dfs)) @pytest.mark.nccl @pytest.mark.parametrize("n_trials", [1, 5]) def test_device_multicast_sendrecv(n_trials, client): cb = Comms(comms_p2p=True, verbose=True) cb.init() dfs = [ client.submit( func_test_device_multicast_sendrecv, cb.sessionId, n_trials, pure=False, workers=[w], ) for w in cb.worker_addresses ] wait(dfs, timeout=5) assert list(map(lambda x: x.result(), dfs))
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/test/conftest.py
# Copyright (c) 2022-2023, NVIDIA CORPORATION. import os import pytest from dask.distributed import Client from dask_cuda import LocalCUDACluster os.environ["UCX_LOG_LEVEL"] = "error" @pytest.fixture(scope="session") def cluster(): scheduler_file = os.environ.get("SCHEDULER_FILE") if scheduler_file: yield scheduler_file else: cluster = LocalCUDACluster(protocol="tcp", scheduler_port=0) yield cluster cluster.close() @pytest.fixture(scope="session") def ucx_cluster(): scheduler_file = os.environ.get("SCHEDULER_FILE") if scheduler_file: yield scheduler_file else: cluster = LocalCUDACluster( protocol="ucx", ) yield cluster cluster.close() @pytest.fixture(scope="session") def client(cluster): client = create_client(cluster) yield client client.close() @pytest.fixture() def ucx_client(ucx_cluster): client = create_client(ucx_cluster) yield client client.close() def create_client(cluster): """ Create a Dask distributed client for a specified cluster. Parameters ---------- cluster : LocalCUDACluster instance or str If a LocalCUDACluster instance is provided, a client will be created for it directly. If a string is provided, it should specify the path to a Dask scheduler file. A client will then be created for the cluster referenced by this scheduler file. Returns ------- dask.distributed.Client A client connected to the specified cluster. """ if isinstance(cluster, LocalCUDACluster): return Client(cluster) else: return Client(scheduler_file=cluster)
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/test/test_raft.py
# Copyright (c) 2020-2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import sys import pytest try: import raft_dask except ImportError: print("Skipping RAFT tests") pytestmart = pytest.mark.skip pytestmark = pytest.mark.skipif( "raft_dask" not in sys.argv, reason="marker to allow integration of RAFT" ) def test_raft(): assert raft_dask.raft_include_test()
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/common/CMakeLists.txt
# ============================================================================= # Copyright (c) 2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software distributed under the License # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under # the License. # ============================================================================= set(cython_sources comms_utils.pyx nccl.pyx) set(linked_libraries raft::raft raft::distributed) rapids_cython_create_modules( SOURCE_FILES "${cython_sources}" ASSOCIATED_TARGETS raft LINKED_LIBRARIES "${linked_libraries}" CXX )
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/common/comms_utils.pyx
# Copyright (c) 2019-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # cython: profile=False # distutils: language = c++ # cython: embedsignature = True # cython: language_level = 3 from cpython.long cimport PyLong_AsVoidPtr from cython.operator cimport dereference as deref from libc.stdint cimport uintptr_t from libc.stdlib cimport free, malloc from libcpp cimport bool cdef extern from "nccl.h": cdef struct ncclComm ctypedef ncclComm *ncclComm_t cdef extern from "raft/core/handle.hpp" namespace "raft": cdef cppclass device_resources: device_resources() except + cdef extern from "raft/core/device_resources.hpp" namespace "raft": cdef cppclass device_resources: device_resources() except + cdef extern from "raft/comms/std_comms.hpp" namespace "raft::comms": void build_comms_nccl_ucx(device_resources *handle, ncclComm_t comm, void *ucp_worker, void *eps, int size, int rank) except + void build_comms_nccl_only(device_resources *handle, ncclComm_t comm, int size, int rank) except + cdef extern from "raft/comms/comms_test.hpp" namespace "raft::comms": bool test_collective_allreduce(const device_resources &h, int root) \ except + bool test_collective_broadcast(const device_resources &h, int root) \ except + bool test_collective_reduce(const device_resources &h, int root) except + bool test_collective_allgather(const device_resources &h, int root) \ except + bool test_collective_gather(const device_resources &h, int root) except + bool test_collective_gatherv(const device_resources &h, int root) except + bool test_collective_reducescatter(const device_resources &h, int root) \ except + bool test_pointToPoint_simple_send_recv(const device_resources &h, int numTrials) except + bool test_pointToPoint_device_send_or_recv(const device_resources &h, int numTrials) except + bool test_pointToPoint_device_sendrecv(const device_resources &h, int numTrials) except + bool test_pointToPoint_device_multicast_sendrecv(const device_resources &h, int numTrials) except + bool test_commsplit(const device_resources &h, int n_colors) except + def perform_test_comms_allreduce(handle, root): """ Performs an allreduce on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use """ cdef const device_resources* h = \ <device_resources*><size_t>handle.getHandle() return test_collective_allreduce(deref(h), root) def perform_test_comms_reduce(handle, root): """ Performs an allreduce on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use """ cdef const device_resources* h = \ <device_resources*><size_t>handle.getHandle() return test_collective_reduce(deref(h), root) def perform_test_comms_reducescatter(handle, root): """ Performs an allreduce on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use """ cdef const device_resources* h = \ <device_resources*><size_t>handle.getHandle() return test_collective_reducescatter(deref(h), root) def perform_test_comms_bcast(handle, root): """ Performs an broadcast on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use """ cdef const device_resources* h = \ <device_resources*><size_t>handle.getHandle() return test_collective_broadcast(deref(h), root) def perform_test_comms_allgather(handle, root): """ Performs an broadcast on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use """ cdef const device_resources* h = \ <device_resources*><size_t>handle.getHandle() return test_collective_allgather(deref(h), root) def perform_test_comms_gather(handle, root): """ Performs a gather on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use root : int Rank of the root worker """ cdef const device_resources* h = \ <device_resources*><size_t>handle.getHandle() return test_collective_gather(deref(h), root) def perform_test_comms_gatherv(handle, root): """ Performs a gatherv on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use root : int Rank of the root worker """ cdef const device_resources* h = \ <device_resources*><size_t>handle.getHandle() return test_collective_gatherv(deref(h), root) def perform_test_comms_send_recv(handle, n_trials): """ Performs a p2p send/recv on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use n_trilas : int Number of test trials """ cdef const device_resources *h = \ <device_resources*><size_t>handle.getHandle() return test_pointToPoint_simple_send_recv(deref(h), <int>n_trials) def perform_test_comms_device_send_or_recv(handle, n_trials): """ Performs a p2p device send or recv on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use n_trilas : int Number of test trials """ cdef const device_resources *h = \ <device_resources*><size_t>handle.getHandle() return test_pointToPoint_device_send_or_recv(deref(h), <int>n_trials) def perform_test_comms_device_sendrecv(handle, n_trials): """ Performs a p2p device concurrent send&recv on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use n_trilas : int Number of test trials """ cdef const device_resources *h = \ <device_resources*><size_t>handle.getHandle() return test_pointToPoint_device_sendrecv(deref(h), <int>n_trials) def perform_test_comms_device_multicast_sendrecv(handle, n_trials): """ Performs a p2p device concurrent multicast send&recv on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use n_trilas : int Number of test trials """ cdef const device_resources *h = \ <device_resources *> <size_t> handle.getHandle() return test_pointToPoint_device_multicast_sendrecv(deref(h), <int>n_trials) def perform_test_comm_split(handle, n_colors): """ Performs a p2p send/recv on the current worker Parameters ---------- handle : raft.common.Handle handle containing comms_t to use """ cdef const device_resources * h = \ < device_resources * > < size_t > handle.getHandle() return test_commsplit(deref(h), < int > n_colors) def inject_comms_on_handle_coll_only(handle, nccl_inst, size, rank, verbose): """ Given a handle and initialized nccl comm, creates a comms_t instance and injects it into the handle. Parameters ---------- handle : raft.common.Handle handle containing comms_t to use nccl_inst : raft.dask.common.nccl Initialized nccl comm to use size : int Number of workers in cluster rank : int Rank of current worker """ cdef size_t handle_size_t = <size_t>handle.getHandle() handle_ = <device_resources*>handle_size_t cdef size_t nccl_comm_size_t = <size_t>nccl_inst.get_comm() nccl_comm_ = <ncclComm_t*>nccl_comm_size_t build_comms_nccl_only(handle_, deref(nccl_comm_), size, rank) def inject_comms_on_handle(handle, nccl_inst, ucp_worker, eps, size, rank, verbose): """ Given a handle and initialized comms, creates a comms_t instance and injects it into the handle. Parameters ---------- handle : raft.common.Handle handle containing comms_t to use nccl_inst : raft.dask.common.nccl Initialized nccl comm to use ucp_worker : size_t pointer to initialized ucp_worker_h instance eps: size_t pointer to array of initialized ucp_ep_h instances size : int Number of workers in cluster rank : int Rank of current worker """ cdef size_t *ucp_eps = <size_t*> malloc(len(eps)*sizeof(size_t)) for i in range(len(eps)): if eps[i] is not None: ep_st = <uintptr_t>eps[i].get_ucp_endpoint() ucp_eps[i] = <size_t>ep_st else: ucp_eps[i] = 0 cdef void* ucp_worker_st = <void*><size_t>ucp_worker cdef size_t handle_size_t = <size_t>handle.getHandle() handle_ = <device_resources*>handle_size_t cdef size_t nccl_comm_size_t = <size_t>nccl_inst.get_comm() nccl_comm_ = <ncclComm_t*>nccl_comm_size_t build_comms_nccl_ucx(handle_, deref(nccl_comm_), <void*>ucp_worker_st, <void*>ucp_eps, size, rank) free(ucp_eps)
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/common/comms.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import logging import os import time import uuid import warnings from collections import Counter, OrderedDict, defaultdict from typing import Dict from dask.distributed import default_client from dask_cuda.utils import nvml_device_index from pylibraft.common.handle import Handle from .comms_utils import ( inject_comms_on_handle, inject_comms_on_handle_coll_only, ) from .nccl import nccl from .ucx import UCX from .utils import parse_host_port logger = logging.getLogger(__name__) class Comms: """ Initializes and manages underlying NCCL and UCX comms handles across the workers of a Dask cluster. It is expected that `init()` will be called explicitly. It is recommended to also call `destroy()` when the comms are no longer needed so the underlying resources can be cleaned up. This class is not meant to be thread-safe. Examples -------- .. code-block:: python # The following code block assumes we have wrapped a C++ # function in a Python function called `run_algorithm`, # which takes a `raft::handle_t` as a single argument. # Once the `Comms` instance is successfully initialized, # the underlying `raft::handle_t` will contain an instance # of `raft::comms::comms_t` from dask_cuda import LocalCUDACluster from dask.distributed import Client from raft.dask.common import Comms, local_handle cluster = LocalCUDACluster() client = Client(cluster) def _use_comms(sessionId): return run_algorithm(local_handle(sessionId)) comms = Comms(client=client) comms.init() futures = [client.submit(_use_comms, comms.sessionId, workers=[w], pure=False) # Don't memoize for w in cb.worker_addresses] wait(dfs, timeout=5) comms.destroy() client.close() cluster.close() """ valid_nccl_placements = ("client", "worker", "scheduler") def __init__( self, comms_p2p=False, client=None, verbose=False, streams_per_handle=0, nccl_root_location="scheduler", ): """ Construct a new CommsContext instance Parameters ---------- comms_p2p : bool Initialize UCX endpoints? client : dask.distributed.Client [optional] Dask client to use verbose : bool Print verbose logging nccl_root_location : string Indicates where the NCCL's root node should be located. ['client', 'worker', 'scheduler' (default)] """ self.client = client if client is not None else default_client() self.comms_p2p = comms_p2p self.nccl_root_location = nccl_root_location.lower() if self.nccl_root_location not in Comms.valid_nccl_placements: raise ValueError( f"nccl_root_location must be one of: " f"{Comms.valid_nccl_placements}" ) self.streams_per_handle = streams_per_handle self.sessionId = uuid.uuid4().bytes self.nccl_initialized = False self.ucx_initialized = False self.verbose = verbose if verbose: print("Initializing comms!") def __del__(self): if self.nccl_initialized or self.ucx_initialized: self.destroy() def create_nccl_uniqueid(self): if self.nccl_root_location == "client": self.uniqueId = nccl.get_unique_id() elif self.nccl_root_location == "worker": self.uniqueId = self.client.run( _func_set_worker_as_nccl_root, sessionId=self.sessionId, verbose=self.verbose, workers=[self.worker_addresses[0]], wait=True, )[self.worker_addresses[0]] else: self.uniqueId = self.client.run_on_scheduler( _func_set_scheduler_as_nccl_root, sessionId=self.sessionId, verbose=self.verbose, ) def worker_info(self, workers): """ Builds a dictionary of { (worker_address, worker_port) : (worker_rank, worker_port ) } """ ranks = _func_worker_ranks(self.client, workers) ports = ( _func_ucp_ports(self.client, workers) if self.comms_p2p else None ) output = {} for k in ranks.keys(): output[k] = {"rank": ranks[k]} if self.comms_p2p: output[k]["port"] = ports[k] return output def init(self, workers=None): """ Initializes the underlying comms. NCCL is required but UCX is only initialized if `comms_p2p == True` Parameters ---------- workers : Sequence Unique collection of workers for initializing comms. """ self.worker_addresses = list( OrderedDict.fromkeys( self.client.scheduler_info()["workers"].keys() if workers is None else workers ) ) if self.nccl_initialized or self.ucx_initialized: warnings.warn("Comms have already been initialized.") return worker_info = self.worker_info(self.worker_addresses) worker_info = {w: worker_info[w] for w in self.worker_addresses} self.create_nccl_uniqueid() self.client.run( _func_init_all, self.sessionId, self.uniqueId, self.comms_p2p, worker_info, self.verbose, self.streams_per_handle, workers=self.worker_addresses, wait=True, ) self.nccl_initialized = True if self.comms_p2p: self.ucx_initialized = True if self.verbose: print("Initialization complete.") def destroy(self): """ Shuts down initialized comms and cleans up resources. This will be called automatically by the Comms destructor, but may be called earlier to save resources. """ self.client.run( _func_destroy_all, self.sessionId, self.comms_p2p, self.verbose, wait=True, workers=self.worker_addresses, ) if self.nccl_root_location == "scheduler": self.client.run_on_scheduler( _func_destroy_scheduler_session, self.sessionId ) if self.verbose: print("Destroying comms.") self.nccl_initialized = False self.ucx_initialized = False def local_handle(sessionId, dask_worker=None): """ Simple helper function for retrieving the local handle_t instance for a comms session on a worker. Parameters ---------- sessionId : str session identifier from an initialized comms instance dask_worker : dask_worker object (Note: if called by client.run(), this is supplied by Dask and not the client) Returns ------- handle : raft.Handle or None """ state = get_raft_comm_state(sessionId, dask_worker) return state["handle"] if "handle" in state else None def get_raft_comm_state(sessionId, state_object=None, dask_worker=None): """ Retrieves cuML comms state on the scheduler node, for the given sessionId, creating a new session if it does not exist. If no session id is given, returns the state dict for all sessions. Parameters ---------- sessionId : SessionId value to retrieve from the dask_scheduler instances state_object : Object (either Worker, or Scheduler) on which the raft comm state will retrieved (or created) dask_worker : dask_worker object (Note: if called by client.run(), this is supplied by Dask and not the client) Returns ------- session state : str session state associated with sessionId """ state_object = state_object if state_object is not None else dask_worker if not hasattr(state_object, "_raft_comm_state"): state_object._raft_comm_state = {} if ( sessionId is not None and sessionId not in state_object._raft_comm_state ): state_object._raft_comm_state[sessionId] = {"ts": time.time()} if sessionId is not None: return state_object._raft_comm_state[sessionId] return state_object._raft_comm_state def set_nccl_root(sessionId, state_object): if sessionId is None: raise ValueError("sessionId cannot be None.") raft_comm_state = get_raft_comm_state( sessionId=sessionId, state_object=state_object ) if "nccl_uid" not in raft_comm_state: raft_comm_state["nccl_uid"] = nccl.get_unique_id() return raft_comm_state["nccl_uid"] def get_ucx(dask_worker=None): """ A simple convenience wrapper to make sure UCP listener and endpoints are only ever assigned once per worker. Parameters ---------- dask_worker : dask_worker object (Note: if called by client.run(), this is supplied by Dask and not the client) """ raft_comm_state = get_raft_comm_state( sessionId="ucp", state_object=dask_worker ) if "ucx" not in raft_comm_state: raft_comm_state["ucx"] = UCX.get() return raft_comm_state["ucx"] def _func_destroy_scheduler_session(sessionId, dask_scheduler): """ Remove session date from _raft_comm_state, associated with sessionId Parameters ---------- sessionId : session Id to be destroyed. dask_scheduler : dask_scheduler object (Note: this is supplied by DASK, not the client) """ if sessionId is not None and sessionId in dask_scheduler._raft_comm_state: del dask_scheduler._raft_comm_state[sessionId] else: return 1 return 0 def _func_set_scheduler_as_nccl_root(sessionId, verbose, dask_scheduler): """ Creates a persistent nccl uniqueId on the scheduler node. Parameters ---------- sessionId : Associated session to attach the unique ID to. verbose : Indicates whether or not to emit additional information dask_scheduler : dask scheduler object, (Note: this is supplied by DASK, not the client) Return ------ uniqueId : byte str NCCL uniqueId, associating the DASK scheduler as its root node. """ if verbose: logger.info( msg=f"Setting scheduler as NCCL " f"root for sessionId, '{sessionId}'" ) nccl_uid = set_nccl_root(sessionId=sessionId, state_object=dask_scheduler) if verbose: logger.info("Done setting scheduler as NCCL root.") return nccl_uid def _func_set_worker_as_nccl_root(sessionId, verbose, dask_worker=None): """ Creates a persistent nccl uniqueId on the scheduler node. Parameters ---------- sessionId : Associated session to attach the unique ID to. verbose : Indicates whether or not to emit additional information dask_worker : dask_worker object (Note: if called by client.run(), this is supplied by Dask and not the client) Return ------ uniqueId : byte str NCCL uniqueId, associating this DASK worker as its root node. """ if verbose: dask_worker.log_event( topic="info", msg=f"Setting worker as NCCL root for session, '{sessionId}'", ) nccl_uid = set_nccl_root(sessionId=sessionId, state_object=dask_worker) if verbose: dask_worker.log_event( topic="info", msg="Done setting scheduler as NCCL root." ) return nccl_uid def _func_ucp_listener_port(dask_worker=None): return get_ucx(dask_worker=dask_worker).listener_port() async def _func_init_all( sessionId, uniqueId, comms_p2p, worker_info, verbose, streams_per_handle, dask_worker=None, ): raft_comm_state = get_raft_comm_state( sessionId=sessionId, state_object=dask_worker ) raft_comm_state["nccl_uid"] = uniqueId raft_comm_state["wid"] = worker_info[dask_worker.address]["rank"] raft_comm_state["nworkers"] = len(worker_info) if verbose: dask_worker.log_event(topic="info", msg="Initializing NCCL.") start = time.time() _func_init_nccl(sessionId, uniqueId, dask_worker=dask_worker) if verbose: elapsed = time.time() - start dask_worker.log_event( topic="info", msg=f"NCCL Initialization took: {elapsed} seconds." ) if comms_p2p: if verbose: dask_worker.log_event( topic="info", msg="Initializing UCX Endpoints" ) if verbose: start = time.time() await _func_ucp_create_endpoints( sessionId, worker_info, dask_worker=dask_worker ) if verbose: elapsed = time.time() - start msg = ( f"Done initializing UCX endpoints." f"Took: {elapsed} seconds.\nBuilding handle." ) dask_worker.log_event(topic="info", msg=msg) _func_build_handle_p2p( sessionId, streams_per_handle, verbose, dask_worker=dask_worker ) if verbose: dask_worker.log_event(topic="info", msg="Done building handle.") else: _func_build_handle( sessionId, streams_per_handle, verbose, dask_worker=dask_worker ) def _func_init_nccl(sessionId, uniqueId, dask_worker=None): """ Initialize ncclComm_t on worker Parameters ---------- sessionId : str session identifier from a comms instance uniqueId : array[byte] The NCCL unique Id generated from the client. dask_worker : dask_worker object (Note: if called by client.run(), this is supplied by Dask and not the client) """ raft_comm_state = get_raft_comm_state( sessionId=sessionId, state_object=dask_worker, dask_worker=dask_worker ) wid = raft_comm_state["wid"] nWorkers = raft_comm_state["nworkers"] try: n = nccl() n.init(nWorkers, uniqueId, wid) raft_comm_state["nccl"] = n except Exception as e: dask_worker.log_event( topic="error", msg=f"An error occurred initializing NCCL: {e}." ) raise def _func_build_handle_p2p( sessionId, streams_per_handle, verbose, dask_worker=None ): """ Builds a handle_t on the current worker given the initialized comms Parameters ---------- sessionId : str id to reference state for current comms instance. streams_per_handle : int number of internal streams to create verbose : bool print verbose logging output dask_worker : dask_worker object (Note: if called by client.run(), this is supplied by Dask and not the client) """ if verbose: dask_worker.log_event(topic="info", msg="Building p2p handle.") ucp_worker = get_ucx(dask_worker).get_worker() raft_comm_state = get_raft_comm_state( sessionId=sessionId, state_object=dask_worker ) handle = Handle(n_streams=streams_per_handle) nccl_comm = raft_comm_state["nccl"] eps = raft_comm_state["ucp_eps"] nWorkers = raft_comm_state["nworkers"] workerId = raft_comm_state["wid"] if verbose: dask_worker.log_event(topic="info", msg="Injecting comms on handle.") inject_comms_on_handle( handle, nccl_comm, ucp_worker, eps, nWorkers, workerId, verbose ) if verbose: dask_worker.log_event( topic="info", msg="Finished injecting comms on handle." ) raft_comm_state["handle"] = handle def _func_build_handle( sessionId, streams_per_handle, verbose, dask_worker=None ): """ Builds a handle_t on the current worker given the initialized comms Parameters ---------- sessionId : str id to reference state for current comms instance. streams_per_handle : int number of internal streams to create verbose : bool print verbose logging output dask_worker : dask_worker object (Note: if called by client.run(), this is supplied by Dask and not the client) """ if verbose: dask_worker.log_event( topic="info", msg="Finished injecting comms on handle." ) handle = Handle(n_streams=streams_per_handle) raft_comm_state = get_raft_comm_state( sessionId=sessionId, state_object=dask_worker ) workerId = raft_comm_state["wid"] nWorkers = raft_comm_state["nworkers"] nccl_comm = raft_comm_state["nccl"] inject_comms_on_handle_coll_only( handle, nccl_comm, nWorkers, workerId, verbose ) raft_comm_state["handle"] = handle def _func_store_initial_state( nworkers, sessionId, uniqueId, wid, dask_worker=None ): raft_comm_state = get_raft_comm_state( sessionId=sessionId, state_object=dask_worker ) raft_comm_state["nccl_uid"] = uniqueId raft_comm_state["wid"] = wid raft_comm_state["nworkers"] = nworkers async def _func_ucp_create_endpoints(sessionId, worker_info, dask_worker): """ Runs on each worker to create ucp endpoints to all other workers Parameters ---------- sessionId : str uuid unique id for this instance worker_info : dict Maps worker addresses to NCCL ranks & UCX ports dask_worker : dask_worker object (Note: if called by client.run(), this is supplied by Dask and not the client) """ eps = [None] * len(worker_info) count = 1 for k in worker_info: ip, port = parse_host_port(k) ep = await get_ucx(dask_worker=dask_worker).get_endpoint( ip, worker_info[k]["port"] ) eps[worker_info[k]["rank"]] = ep count += 1 raft_comm_state = get_raft_comm_state( sessionId=sessionId, state_object=dask_worker ) raft_comm_state["ucp_eps"] = eps async def _func_destroy_all( sessionId, comms_p2p, verbose=False, dask_worker=None ): if verbose: dask_worker.log_event( topic="info", msg="Destroying NCCL session state." ) raft_comm_state = get_raft_comm_state( sessionId=sessionId, state_object=dask_worker ) if "nccl" in raft_comm_state: raft_comm_state["nccl"].destroy() del raft_comm_state["nccl"] if verbose: dask_worker.log_event( topic="info", msg="NCCL session state destroyed." ) else: if verbose: dask_worker.log_event( topic="warning", msg=f"Session state for, '{sessionId}', " f"does not contain expected 'nccl' element", ) if verbose: dask_worker.log_event( topic="info", msg=f"Destroying CUDA handle for sessionId, '{sessionId}.'", ) if "handle" in raft_comm_state: del raft_comm_state["handle"] else: if verbose: dask_worker.log_event( topic="warning", msg=f"Session state for, '{sessionId}', " f"does not contain expected 'handle' element", ) def _func_ucp_ports(client, workers): return client.run(_func_ucp_listener_port, workers=workers) def _func_worker_ranks(client, workers): """ For each worker connected to the client, compute a global rank which is the sum of the NVML device index and the worker rank offset. Parameters ---------- client (object): Dask client object. workers (list): List of worker addresses. """ # TODO: Add Test this function # Running into build issues preventing testing nvml_device_index_d = client.run(_get_nvml_device_index, workers=workers) worker_ips = [ _get_worker_ip(worker_address) for worker_address in nvml_device_index_d ] ranks = _map_nvml_device_id_to_contiguous_range(nvml_device_index_d) worker_ip_offset_dict = _get_rank_offset_across_nodes(worker_ips) return _append_rank_offset(ranks, worker_ip_offset_dict) def _get_nvml_device_index(): """ Return NVML device index based on environment variable 'CUDA_VISIBLE_DEVICES'. """ CUDA_VISIBLE_DEVICES = os.getenv("CUDA_VISIBLE_DEVICES") return nvml_device_index(0, CUDA_VISIBLE_DEVICES) def _get_worker_ip(worker_address): """ Extract the worker IP address from the worker address string. Parameters ---------- worker_address (str): Full address string of the worker """ return ":".join(worker_address.split(":")[0:2]) def _map_nvml_device_id_to_contiguous_range(nvml_device_index_d: dict) -> dict: """ For each worker address in nvml_device_index_d, map the corresponding worker rank in the range(0, num_workers_per_node) where rank is decided by the NVML device index. Worker with the lowest NVML device index gets rank 0, and worker with the highest NVML device index gets rank num_workers_per_node-1. Parameters ---------- nvml_device_index_d : dict Dictionary of worker addresses mapped to their nvml device index. Returns ------- dict Updated dictionary with worker addresses mapped to their rank. """ rank_per_ip: Dict[str, int] = defaultdict(int) # Sort by NVML index to ensure that the worker # with the lowest NVML index gets rank 0. for worker, _ in sorted(nvml_device_index_d.items(), key=lambda x: x[1]): ip = _get_worker_ip(worker) nvml_device_index_d[worker] = rank_per_ip[ip] rank_per_ip[ip] += 1 return nvml_device_index_d def _get_rank_offset_across_nodes(worker_ips): """ Get a dictionary of worker IP addresses mapped to the cumulative count of their occurrences in the worker_ips list. The cumulative count serves as the rank offset. Parameters ---------- worker_ips (list): List of worker IP addresses. """ worker_count_dict = Counter(worker_ips) worker_offset_dict = {} current_offset = 0 for worker_ip, worker_count in worker_count_dict.items(): worker_offset_dict[worker_ip] = current_offset current_offset += worker_count return worker_offset_dict def _append_rank_offset(rank_dict, worker_ip_offset_dict): """ For each worker address in the rank dictionary, add the corresponding worker offset from the worker_ip_offset_dict to the rank value. Parameters ---------- rank_dict (dict): Dictionary of worker addresses mapped to their ranks. worker_ip_offset_dict (dict): Dictionary of worker IP addresses mapped to their offsets. """ for worker_ip, worker_offset in worker_ip_offset_dict.items(): for worker_address in rank_dict: if worker_ip in worker_address: rank_dict[worker_address] += worker_offset return rank_dict
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/common/__init__.py
# Copyright (c) 2020-2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from .comms import Comms, local_handle from .comms_utils import ( inject_comms_on_handle, inject_comms_on_handle_coll_only, perform_test_comm_split, perform_test_comms_allgather, perform_test_comms_allreduce, perform_test_comms_bcast, perform_test_comms_device_multicast_sendrecv, perform_test_comms_device_send_or_recv, perform_test_comms_device_sendrecv, perform_test_comms_gather, perform_test_comms_gatherv, perform_test_comms_reduce, perform_test_comms_reducescatter, perform_test_comms_send_recv, ) from .ucx import UCX
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/common/nccl.pyx
# # Copyright (c) 2020-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # cython: profile=False # distutils: language = c++ # cython: embedsignature = True # cython: language_level = 3 from cython.operator cimport dereference as deref from libc.stdint cimport uintptr_t from libc.stdlib cimport free, malloc from libcpp cimport bool cdef extern from "raft/comms/std_comms.hpp" namespace "raft::comms": void get_nccl_unique_id(char *uid) except + void nccl_unique_id_from_char(ncclUniqueId *id, char *uniqueId) except + cdef extern from "nccl.h": cdef struct ncclComm ctypedef struct ncclUniqueId: char *internal[128] ctypedef ncclComm *ncclComm_t ctypedef enum ncclResult_t: ncclSuccess ncclUnhandledCudaError ncclSystemError ncclInternalError ncclInvalidArgument ncclInvalidUsage ncclNumResults ncclResult_t ncclCommInitRank(ncclComm_t *comm, int nranks, ncclUniqueId commId, int rank) nogil ncclResult_t ncclGetUniqueId(ncclUniqueId *uniqueId) nogil ncclResult_t ncclCommUserRank(const ncclComm_t comm, int *rank) nogil ncclResult_t ncclCommCuDevice(const ncclComm_t comm, int *count) nogil const char *ncclGetErrorString(ncclResult_t result) nogil ncclResult_t ncclCommAbort(ncclComm_t comm) nogil ncclResult_t ncclCommDestroy(ncclComm_t comm) nogil NCCL_UNIQUE_ID_BYTES = 128 def unique_id(): """ Returns a new ncclUniqueId converted to a character array that can be safely serialized and shared to a remote worker. Returns ------- 128-byte unique id : str """ cdef char *uid = <char *> malloc(NCCL_UNIQUE_ID_BYTES * sizeof(char)) get_nccl_unique_id(uid) c_str = uid[:NCCL_UNIQUE_ID_BYTES-1] c_str free(uid) return c_str cdef class nccl: """ A NCCL wrapper for initializing and closing NCCL comms in Python. """ cdef ncclComm_t *comm cdef int size cdef int rank def __cinit__(self): self.comm = <ncclComm_t*>malloc(sizeof(ncclComm_t)) def __dealloc__(self): comm_ = <ncclComm_t*>self.comm if comm_ != NULL: free(self.comm) self.comm = NULL @staticmethod def get_unique_id(): """ Returns a new nccl unique id Returns ------- nccl unique id : str """ return unique_id() def init(self, nranks, commId, rank): """ Construct a nccl-py object Parameters ---------- nranks : int size of clique commId : string unique id from client rank : int rank of current worker """ self.size = nranks self.rank = rank cdef ncclUniqueId *ident = <ncclUniqueId*>malloc(sizeof(ncclUniqueId)) nccl_unique_id_from_char(ident, commId) comm_ = <ncclComm_t*>self.comm cdef int nr = nranks cdef int r = rank cdef ncclResult_t result with nogil: result = ncclCommInitRank(comm_, nr, deref(ident), r) if result != ncclSuccess: with nogil: err_str = ncclGetErrorString(result) raise RuntimeError("NCCL_ERROR: %s" % err_str) def destroy(self): """ Call destroy on the underlying NCCL comm """ comm_ = <ncclComm_t*>self.comm cdef ncclResult_t result if comm_ != NULL: with nogil: result = ncclCommDestroy(deref(comm_)) free(self.comm) self.comm = NULL if result != ncclSuccess: with nogil: err_str = ncclGetErrorString(result) raise RuntimeError("NCCL_ERROR: %s" % err_str) def abort(self): """ Call abort on the underlying nccl comm """ comm_ = <ncclComm_t*>self.comm cdef ncclResult_t result if comm_ != NULL: with nogil: result = ncclCommAbort(deref(comm_)) free(comm_) self.comm = NULL if result != ncclSuccess: with nogil: err_str = ncclGetErrorString(result) raise RuntimeError("NCCL_ERROR: %s" % err_str) def cu_device(self): """ Get the device backing the underlying comm Returns ------- device id : int """ cdef int *dev = <int*>malloc(sizeof(int)) comm_ = <ncclComm_t*>self.comm cdef ncclResult_t result with nogil: result = ncclCommCuDevice(deref(comm_), dev) ret = dev[0] free(dev) if result != ncclSuccess: with nogil: err_str = ncclGetErrorString(result) raise RuntimeError("NCCL_ERROR: %s" % err_str) return ret def user_rank(self): """ Get the rank id of the current comm Returns ------- rank : int """ cdef int *rank = <int*>malloc(sizeof(int)) comm_ = <ncclComm_t*>self.comm cdef ncclResult_t result with nogil: result = ncclCommUserRank(deref(comm_), rank) ret = rank[0] free(rank) if result != ncclSuccess: with nogil: err_str = ncclGetErrorString(result) raise RuntimeError("NCCL_ERROR: %s" % err_str) return ret def get_comm(self): """ Returns the underlying nccl comm in a size_t (similar to void*). This can be safely typecasted from size_t into ncclComm_t* Returns ------- ncclComm_t instance pointer : size_t """ return <size_t>self.comm
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/common/utils.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from dask.distributed import default_client def get_client(client=None): return default_client() if client is None else client def parse_host_port(address): """ Given a string address with host/port, build a tuple(host, port) Parameters ---------- address: string address to parse Returns ------- tuple with host and port info : tuple(host, port) """ if "://" in address: address = address.rsplit("://", 1)[1] host, port = address.split(":") port = int(port) return host, port
0
rapidsai_public_repos/raft/python/raft-dask/raft_dask
rapidsai_public_repos/raft/python/raft-dask/raft_dask/common/ucx.py
# Copyright (c) 2020-2022, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import ucp async def _connection_func(ep): UCX.get().add_server_endpoint(ep) class UCX: """ Singleton UCX context to encapsulate all interactions with the UCX-py API and guarantee only a single listener & endpoints are created by RAFT Comms on a single process. """ __instance = None def __init__(self, listener_callback): self.listener_callback = listener_callback self._create_listener() self._endpoints = {} self._server_endpoints = [] assert UCX.__instance is None UCX.__instance = self @staticmethod def get(listener_callback=_connection_func): if UCX.__instance is None: UCX(listener_callback) return UCX.__instance def get_worker(self): return ucp.get_ucp_worker() def _create_listener(self): self._listener = ucp.create_listener(self.listener_callback) def listener_port(self): return self._listener.port async def _create_endpoint(self, ip, port): ep = await ucp.create_endpoint(ip, port) self._endpoints[(ip, port)] = ep return ep def add_server_endpoint(self, ep): self._server_endpoints.append(ep) async def get_endpoint(self, ip, port): if (ip, port) not in self._endpoints: ep = await self._create_endpoint(ip, port) else: ep = self._endpoints[(ip, port)] return ep async def close_endpoints(self): for k, ep in self._endpoints.items(): await ep.close() for ep in self._server_endpoints: ep.close() def __del__(self): for ip_port, ep in self._endpoints.items(): if not ep.closed(): ep.abort() del ep for ep in self._server_endpoints: if not ep.closed(): ep.abort() del ep self._listener.close()
0
rapidsai_public_repos/raft/python
rapidsai_public_repos/raft/python/raft-ann-bench/pyproject.toml
# Copyright (c) 2023, NVIDIA CORPORATION. [build-system] build-backend = "setuptools.build_meta" requires = [ "setuptools", "wheel", ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. [project] name = "raft-ann-bench" version = "24.02.00" description = "RAFT ANN benchmarks" authors = [ { name = "NVIDIA Corporation" }, ] license = { text = "Apache 2.0" } requires-python = ">=3.9" dependencies = [ ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. classifiers = [ "Intended Audience :: Developers", "Topic :: Database", "Topic :: Scientific/Engineering", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", ] [project.urls] Homepage = "https://github.com/rapidsai/raft" [tool.setuptools.packages.find] where = ["src"] [tool.setuptools.package-data] "*" = ["*.*"] [tool.isort] line_length = 79 multi_line_output = 3 include_trailing_comma = true force_grid_wrap = 0 combine_as_imports = true order_by_type = true skip = [ "thirdparty", ".eggs", ".git", ".hg", ".mypy_cache", ".tox", ".venv", "_build", "buck-out", "build", "dist", ]
0
rapidsai_public_repos/raft/python
rapidsai_public_repos/raft/python/raft-ann-bench/LICENSE
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2020 NVIDIA Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0
rapidsai_public_repos/raft/python/raft-ann-bench/src
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/algos.yaml
faiss_gpu_flat: executable: FAISS_GPU_FLAT_ANN_BENCH requires_gpu: true faiss_gpu_ivf_flat: executable: FAISS_GPU_IVF_FLAT_ANN_BENCH requires_gpu: true faiss_gpu_ivf_pq: executable: FAISS_GPU_IVF_PQ_ANN_BENCH requires_gpu: true faiss_gpu_ivf_sq: executable: FAISS_GPU_IVF_PQ_ANN_BENCH requires_gpu: true faiss_cpu_flat: executable: FAISS_CPU_FLAT_ANN_BENCH requires_gpu: false faiss_cpu_ivf_flat: executable: FAISS_CPU_IVF_FLAT_ANN_BENCH requires_gpu: false faiss_cpu_ivf_pq: executable: FAISS_CPU_IVF_PQ_ANN_BENCH requires_gpu: false raft_ivf_flat: executable: RAFT_IVF_FLAT_ANN_BENCH requires_gpu: true raft_ivf_pq: executable: RAFT_IVF_PQ_ANN_BENCH requires_gpu: true raft_cagra: executable: RAFT_CAGRA_ANN_BENCH requires_gpu: true raft_brute_force: executable: RAFT_BRUTE_FORCE_ANN_BENCH requires_gpu: true ggnn: executable: GGNN_ANN_BENCH requires_gpu: true hnswlib: executable: HNSWLIB_ANN_BENCH requires_gpu: false raft_cagra_hnswlib: executable: RAFT_CAGRA_HNSWLIB_ANN_BENCH requires_gpu: true
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/__main__.py
# # Copyright (c) 2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import argparse import itertools import json import os import subprocess import sys import uuid import warnings from importlib import import_module import yaml log_levels = { "off": 0, "error": 1, "warn": 2, "info": 3, "debug": 4, "trace": 5, } def parse_log_level(level_str): if level_str not in log_levels: raise ValueError("Invalid log level: %s" % level_str) return log_levels[level_str.lower()] def positive_int(input_str: str) -> int: try: i = int(input_str) if i < 1: raise ValueError except ValueError: raise argparse.ArgumentTypeError( f"{input_str} is not a positive integer" ) return i def merge_build_files(build_dir, build_file, temp_build_file): build_dict = {} # If build file exists, read it build_json_path = os.path.join(build_dir, build_file) tmp_build_json_path = os.path.join(build_dir, temp_build_file) if os.path.isfile(build_json_path): try: with open(build_json_path, "r") as f: build_dict = json.load(f) except Exception as e: print( "Error loading existing build file: %s (%s)" % (build_json_path, e) ) temp_build_dict = {} if os.path.isfile(tmp_build_json_path): with open(tmp_build_json_path, "r") as f: temp_build_dict = json.load(f) else: raise ValueError("Temp build file not found: %s" % tmp_build_json_path) tmp_benchmarks = ( temp_build_dict["benchmarks"] if "benchmarks" in temp_build_dict else {} ) benchmarks = build_dict["benchmarks"] if "benchmarks" in build_dict else {} # If the build time is absolute 0 then an error occurred final_bench_dict = {} for b in benchmarks: if b["real_time"] > 0: final_bench_dict[b["name"]] = b for tmp_bench in tmp_benchmarks: if tmp_bench["real_time"] > 0: final_bench_dict[tmp_bench["name"]] = tmp_bench temp_build_dict["benchmarks"] = [v for k, v in final_bench_dict.items()] with open(build_json_path, "w") as f: json_str = json.dumps(temp_build_dict, indent=2) f.write(json_str) def validate_algorithm(algos_conf, algo, gpu_present): algos_conf_keys = set(algos_conf.keys()) if gpu_present: return algo in algos_conf_keys else: return ( algo in algos_conf_keys and algos_conf[algo]["requires_gpu"] is False ) def find_executable(algos_conf, algo, group, k, batch_size): executable = algos_conf[algo]["executable"] return_str = f"{algo}_{group}-{k}-{batch_size}" build_path = os.getenv("RAFT_HOME") if build_path is not None: build_path = os.path.join(build_path, "cpp", "build", executable) if os.path.exists(build_path): print(f"-- Using RAFT bench from repository in {build_path}. ") return (executable, build_path, return_str) # if there is no build folder present, we look in the conda environment conda_path = os.getenv("CONDA_PREFIX") if conda_path is not None: conda_path = os.path.join(conda_path, "bin", "ann", executable) if os.path.exists(conda_path): print("-- Using RAFT bench found in conda environment. ") return (executable, conda_path, return_str) else: raise FileNotFoundError(executable) def run_build_and_search( conf_file, conf_filename, conf_filedir, executables_to_run, dataset_path, force, build, search, dry_run, k, batch_size, search_threads, mode="throughput", raft_log_level="info", ): for executable, ann_executable_path, algo in executables_to_run.keys(): # Need to write temporary configuration temp_conf_filename = f"{conf_filename}_{algo}_{uuid.uuid1()}.json" with open(temp_conf_filename, "w") as f: temp_conf = dict() temp_conf["dataset"] = conf_file["dataset"] temp_conf["search_basic_param"] = conf_file["search_basic_param"] temp_conf["index"] = executables_to_run[ (executable, ann_executable_path, algo) ]["index"] json_str = json.dumps(temp_conf, indent=2) f.write(json_str) legacy_result_folder = os.path.join( dataset_path, conf_file["dataset"]["name"], "result" ) os.makedirs(legacy_result_folder, exist_ok=True) if build: build_folder = os.path.join(legacy_result_folder, "build") os.makedirs(build_folder, exist_ok=True) build_file = f"{algo}.json" temp_build_file = f"{build_file}.lock" cmd = [ ann_executable_path, "--build", "--data_prefix=" + dataset_path, "--benchmark_out_format=json", "--benchmark_counters_tabular=true", "--benchmark_out=" + f"{os.path.join(build_folder, temp_build_file)}", "--raft_log_level=" + f"{parse_log_level(raft_log_level)}", ] if force: cmd = cmd + ["--force"] cmd = cmd + [temp_conf_filename] if dry_run: print( "Benchmark command for %s:\n%s\n" % (algo, " ".join(cmd)) ) else: try: subprocess.run(cmd, check=True) merge_build_files( build_folder, build_file, temp_build_file ) except Exception as e: print("Error occurred running benchmark: %s" % e) finally: os.remove(os.path.join(build_folder, temp_build_file)) if not search: os.remove(temp_conf_filename) if search: search_folder = os.path.join(legacy_result_folder, "search") os.makedirs(search_folder, exist_ok=True) cmd = [ ann_executable_path, "--search", "--data_prefix=" + dataset_path, "--benchmark_counters_tabular=true", "--override_kv=k:%s" % k, "--override_kv=n_queries:%s" % batch_size, "--benchmark_min_warmup_time=1", "--benchmark_out_format=json", "--mode=%s" % mode, "--benchmark_out=" + f"{os.path.join(search_folder, f'{algo}.json')}", "--raft_log_level=" + f"{parse_log_level(raft_log_level)}", ] if force: cmd = cmd + ["--force"] if search_threads: cmd = cmd + ["--threads=%s" % search_threads] cmd = cmd + [temp_conf_filename] if dry_run: print( "Benchmark command for %s:\n%s\n" % (algo, " ".join(cmd)) ) else: try: subprocess.run(cmd, check=True) except Exception as e: print("Error occurred running benchmark: %s" % e) finally: os.remove(temp_conf_filename) def main(): scripts_path = os.path.dirname(os.path.realpath(__file__)) call_path = os.getcwd() # Read list of allowed algorithms try: import rmm # noqa: F401 gpu_present = True except ImportError: gpu_present = False with open(f"{scripts_path}/algos.yaml", "r") as f: algos_yaml = yaml.safe_load(f) if "RAPIDS_DATASET_ROOT_DIR" in os.environ: default_dataset_path = os.getenv("RAPIDS_DATASET_ROOT_DIR") else: default_dataset_path = os.path.join(call_path, "datasets/") parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter ) parser.add_argument( "--subset-size", type=positive_int, help="the number of subset rows of the dataset to build the index", ) parser.add_argument( "-k", "--count", default=10, type=positive_int, help="the number of nearest neighbors to search for", ) parser.add_argument( "-bs", "--batch-size", default=10000, type=positive_int, help="number of query vectors to use in each query trial", ) parser.add_argument( "--dataset-configuration", help="path to YAML configuration file for datasets", ) parser.add_argument( "--configuration", help="path to YAML configuration file or directory for algorithms\ Any run groups found in the specified file/directory will \ automatically override groups of the same name present in the \ default configurations, including `base`", ) parser.add_argument( "--dataset", help="name of dataset", default="glove-100-inner", ) parser.add_argument( "--dataset-path", help="path to dataset folder, by default will look in " "RAPIDS_DATASET_ROOT_DIR if defined, otherwise a datasets " "subdirectory from the calling directory", default=default_dataset_path, ) parser.add_argument("--build", action="store_true") parser.add_argument("--search", action="store_true") parser.add_argument( "--algorithms", help="run only comma separated list of named \ algorithms. If parameters `groups` and `algo-groups \ are both undefined, then group `base` is run by default", default=None, ) parser.add_argument( "--groups", help="run only comma separated groups of parameters", default="base", ) parser.add_argument( "--algo-groups", help='add comma separated <algorithm>.<group> to run. \ Example usage: "--algo-groups=raft_cagra.large,hnswlib.large"', ) parser.add_argument( "-f", "--force", help="re-run algorithms even if their results \ already exist", action="store_true", ) parser.add_argument( "-m", "--search-mode", help="run search in 'latency' (measure individual batches) or " "'throughput' (pipeline batches and measure end-to-end) mode", default="latency", ) parser.add_argument( "-t", "--search-threads", help="specify the number threads to use for throughput benchmark." " Single value or a pair of min and max separated by ':'. " "Example: --search-threads=1:4. Power of 2 values between 'min' " "and 'max' will be used. If only 'min' is specified, then a " "single test is run with 'min' threads. By default min=1, " "max=<num hyper threads>.", default=None, ) parser.add_argument( "-r", "--dry-run", help="dry-run mode will convert the yaml config for the specified " "algorithms and datasets to the json format that's consumed " "by the lower-level c++ binaries and then print the command " "to run execute the benchmarks but will not actually execute " "the command.", action="store_true", ) parser.add_argument( "--raft-log-level", help="Log level, possible values are " "[off, error, warn, info, debug, trace]. " "Default: 'info'. Note that 'debug' or more detailed " "logging level requires that the library is compiled with " "-DRAFT_ACTIVE_LEVEL=<L> where <L> >= <requested log level>", default="info", ) if len(sys.argv) == 1: parser.print_help() sys.exit(1) args = parser.parse_args() # If both build and search are not provided, # run both if not args.build and not args.search: build = True search = True else: build = args.build search = args.search dry_run = args.dry_run mode = args.search_mode k = args.count batch_size = args.batch_size # Read configuration file associated to datasets if args.dataset_configuration: dataset_conf_f = args.dataset_configuration else: dataset_conf_f = os.path.join(scripts_path, "conf", "datasets.yaml") with open(dataset_conf_f, "r") as f: dataset_conf_all = yaml.safe_load(f) dataset_conf = None for dataset in dataset_conf_all: if args.dataset == dataset["name"]: dataset_conf = dataset break if not dataset_conf: raise ValueError("Could not find a dataset configuration") conf_file = dict() conf_file["dataset"] = dataset_conf if args.subset_size: conf_file["dataset"]["subset_size"] = args.subset_size conf_file["search_basic_param"] = {} conf_file["search_basic_param"]["k"] = k conf_file["search_basic_param"]["batch_size"] = batch_size algos_conf_fs = os.listdir(os.path.join(scripts_path, "conf", "algos")) algos_conf_fs = [ os.path.join(scripts_path, "conf", "algos", f) for f in algos_conf_fs if ".json" not in f ] conf_filedir = os.path.join(scripts_path, "conf", "algos") if args.configuration: if os.path.isdir(args.configuration): conf_filedir = args.configuration algos_conf_fs = algos_conf_fs + [ os.path.join(args.configuration, f) for f in os.listdir(args.configuration) if ".json" not in f ] elif os.path.isfile(args.configuration): conf_filedir = os.path.normpath(args.configuration).split(os.sep) conf_filedir = os.path.join(*conf_filedir[:-1]) algos_conf_fs = algos_conf_fs + [args.configuration] filter_algos = True if args.algorithms else False if filter_algos: allowed_algos = args.algorithms.split(",") named_groups = args.groups.split(",") filter_algo_groups = True if args.algo_groups else False allowed_algo_groups = None if filter_algo_groups: allowed_algo_groups = [ algo_group.split(".") for algo_group in args.algo_groups.split(",") ] allowed_algo_groups = list(zip(*allowed_algo_groups)) algos_conf = dict() for algo_f in algos_conf_fs: with open(algo_f, "r") as f: try: algo = yaml.safe_load(f) except Exception as e: warnings.warn( f"Could not load YAML config {algo_f} due to " + e.with_traceback() ) continue insert_algo = True insert_algo_group = False if filter_algos: if algo["name"] not in allowed_algos: insert_algo = False if filter_algo_groups: if algo["name"] in allowed_algo_groups[0]: insert_algo_group = True def add_algo_group(group_list): if algo["name"] not in algos_conf: algos_conf[algo["name"]] = {"groups": {}} for group in algo["groups"].keys(): if group in group_list: algos_conf[algo["name"]]["groups"][group] = algo[ "groups" ][group] if "constraints" in algo: algos_conf[algo["name"]]["constraints"] = algo[ "constraints" ] if insert_algo: add_algo_group(named_groups) if insert_algo_group: add_algo_group(allowed_algo_groups[1]) executables_to_run = dict() for algo in algos_conf.keys(): validate_algorithm(algos_yaml, algo, gpu_present) for group in algos_conf[algo]["groups"].keys(): executable = find_executable( algos_yaml, algo, group, k, batch_size ) if executable not in executables_to_run: executables_to_run[executable] = {"index": []} build_params = algos_conf[algo]["groups"][group]["build"] search_params = algos_conf[algo]["groups"][group]["search"] param_names = [] param_lists = [] for param in build_params.keys(): param_names.append(param) param_lists.append(build_params[param]) all_build_params = itertools.product(*param_lists) search_param_names = [] search_param_lists = [] for search_param in search_params.keys(): search_param_names.append(search_param) search_param_lists.append(search_params[search_param]) for params in all_build_params: index = {"algo": algo, "build_param": {}} if group != "base": index_name = f"{algo}_{group}" else: index_name = f"{algo}" for i in range(len(params)): index["build_param"][param_names[i]] = params[i] index_name += "." + f"{param_names[i]}{params[i]}" if "constraints" in algos_conf[algo]: if "build" in algos_conf[algo]["constraints"]: importable = algos_conf[algo]["constraints"]["build"] importable = importable.split(".") module = ".".join(importable[:-1]) func = importable[-1] validator = import_module(module) build_constraints = getattr(validator, func) if "dims" not in conf_file["dataset"]: raise ValueError( "`dims` needed for build constraints but not " "specified in datasets.yaml" ) if not build_constraints( index["build_param"], conf_file["dataset"]["dims"] ): continue index["name"] = index_name index["file"] = os.path.join( args.dataset_path, args.dataset, "index", index_name ) index["search_params"] = [] all_search_params = itertools.product(*search_param_lists) for search_params in all_search_params: search_dict = dict() for i in range(len(search_params)): search_dict[search_param_names[i]] = search_params[i] if "constraints" in algos_conf[algo]: if "search" in algos_conf[algo]["constraints"]: importable = algos_conf[algo]["constraints"][ "search" ] importable = importable.split(".") module = ".".join(importable[:-1]) func = importable[-1] validator = import_module(module) search_constraints = getattr(validator, func) if search_constraints( search_dict, index["build_param"], k, batch_size, ): index["search_params"].append(search_dict) else: index["search_params"].append(search_dict) executables_to_run[executable]["index"].append(index) if len(index["search_params"]) == 0: print("No search parameters were added to configuration") run_build_and_search( conf_file, f"{args.dataset}", conf_filedir, executables_to_run, args.dataset_path, args.force, build, search, dry_run, k, batch_size, args.search_threads, mode, args.raft_log_level, ) if __name__ == "__main__": main()
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/glove-50-inner.json
{ "dataset": { "name": "glove-50-inner", "base_file": "glove-50-inner/base.fbin", "query_file": "glove-50-inner/query.fbin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/glove-50-inner/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-50-inner/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/glove-50-inner/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-50-inner/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/glove-50-inner/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-50-inner/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/glove-50-inner/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-50-inner/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/glove-50-inner/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/glove-50-inner/raft_bfknn/bfknn" }, { "name": "faiss_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/glove-50-inner/faiss_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_flat/nlist1024" }, { "name": "faiss_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/glove-50-inner/faiss_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_flat/nlist2048" }, { "name": "faiss_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/glove-50-inner/faiss_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_flat/nlist4096" }, { "name": "faiss_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/glove-50-inner/faiss_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_flat/nlist8192" }, { "name": "faiss_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/glove-50-inner/faiss_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_flat/nlist16384" }, { "name": "faiss_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/glove-50-inner/faiss_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_pq/M64-nlist1024" }, { "name": "faiss_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/glove-50-inner/faiss_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_pq/M64-nlist1024" }, { "name": "faiss_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist1024-fp16" }, { "name": "faiss_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist2048-fp16" }, { "name": "faiss_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist4096-fp16" }, { "name": "faiss_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist8192-fp16" }, { "name": "faiss_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist16384-fp16" }, { "name": "faiss_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist1024-int8" }, { "name": "faiss_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist2048-int8" }, { "name": "faiss_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist4096-int8" }, { "name": "faiss_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist8192-int8" }, { "name": "faiss_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/glove-50-inner/faiss_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-50-inner/faiss_ivf_sq/nlist16384-int8" }, { "name": "faiss_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/glove-50-inner/faiss_flat/flat", "search_params": [ {} ], "search_result_file": "result/glove-50-inner/faiss_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/glove-50-inner/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/glove-50-inner/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-inner/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/glove-50-inner/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-50-inner/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/glove-50-inner/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/glove-50-inner/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/glove-50-inner/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/glove-50-inner/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/datasets.yaml
- name: bigann-1B base_file: bigann-1B/base.1B.u8bin subset_size: 100000000 dims: 128 query_file: bigann-1B/query.public.10K.u8bin groundtruth_neighbors_file: bigann-1B/groundtruth.neighbors.ibin distance: euclidean - name: deep-1B base_file: deep-1B/base.1B.fbin query_file: deep-1B/query.public.10K.fbin dims: 96 groundtruth_neighbors_file: deep-1B/groundtruth.neighbors.ibin distance: inner_product - name: bigann-100M base_file: bigann-100M/base.1B.u8bin subset_size: 100000000 dims: 128 query_file: bigann-100M/query.public.10K.u8bin groundtruth_neighbors_file: bigann-100M/groundtruth.neighbors.ibin distance: euclidean - name: deep-image-96-inner base_file: deep-image-96-inner/base.fbin query_file: deep-image-96-inner/query.fbin dims: 96 groundtruth_neighbors_file: deep-image-96-inner/groundtruth.neighbors.ibin distance: euclidean - name: fashion-mnist-784-euclidean dims: 784 base_file: fashion-mnist-784-euclidean/base.fbin query_file: fashion-mnist-784-euclidean/query.fbin groundtruth_neighbors_file: fashion-mnist-784-euclidean/groundtruth.neighbors.ibin distance: euclidean - name: gist-960-euclidean dims: 960 base_file: gist-960-euclidean/base.fbin query_file: gist-960-euclidean/query.fbin groundtruth_neighbors_file: gist-960-euclidean/groundtruth.neighbors.ibin distance: euclidean - name: glove-50-angular dims: 50 base_file: glove-50-angular/base.fbin query_file: glove-50-angular/query.fbin groundtruth_neighbors_file: glove-50-angular/groundtruth.neighbors.ibin distance: euclidean - name: glove-50-inner dims: 50 base_file: glove-50-inner/base.fbin query_file: glove-50-inner/query.fbin groundtruth_neighbors_file: glove-50-inner/groundtruth.neighbors.ibin distance: euclidean - name: glove-100-angular dims: 100 base_file: glove-100-angular/base.fbin query_file: glove-100-angular/query.fbin groundtruth_neighbors_file: glove-100-angular/groundtruth.neighbors.ibin distance: euclidean - name: glove-100-inner dims: 100 base_file: glove-100-inner/base.fbin query_file: glove-100-inner/query.fbin groundtruth_neighbors_file: glove-100-inner/groundtruth.neighbors.ibin distance: euclidean - name: lastfm-65-angular dims: 65 base_file: lastfm-65-angular/base.fbin query_file: lastfm-65-angular/query.fbin groundtruth_neighbors_file: lastfm-65-angular/groundtruth.neighbors.ibin distance: euclidean - name: mnist-784-euclidean dims: 784 base_file: mnist-784-euclidean/base.fbin query_file: mnist-784-euclidean/query.fbin groundtruth_neighbors_file: mnist-784-euclidean/groundtruth.neighbors.ibin distance: euclidean - name: nytimes-256-angular dims: 256 base_file: nytimes-256-angular/base.fbin query_file: nytimes-256-angular/query.fbin groundtruth_neighbors_file: nytimes-256-angular/groundtruth.neighbors.ibin distance: euclidean - name: nytimes-256-inner dims: 256 base_file: nytimes-256-inner/base.fbin query_file: nytimes-256-inner/query.fbin groundtruth_neighbors_file: nytimes-256-inner/groundtruth.neighbors.ibin distance: euclidean - name: sift-128-euclidean dims: 128 base_file: sift-128-euclidean/base.fbin query_file: sift-128-euclidean/query.fbin groundtruth_neighbors_file: sift-128-euclidean/groundtruth.neighbors.ibin distance: euclidean - name: wiki_all_1M dims: 768 base_file: wiki_all_1M/base.1M.fbin query_file: wiki_all_1M/queries.fbin groundtruth_neighbors_file: wiki_all_1M/groundtruth.1M.neighbors.ibin distance: euclidean - name: wiki_all_10M, dims: 768 base_file: wiki_all_10M/base.10M.fbin query_file: wiki_all_10M/queries.fbin groundtruth_neighbors_file: wiki_all_10M/groundtruth.10M.neighbors.ibin distance: euclidean - name: wiki_all_88M dims: 768 base_file: wiki_all_88M/base.88M.fbin query_file: wiki_all_88M/queries.fbin groundtruth_neighbors_file: wiki_all_88M/groundtruth.88M.neighbors.ibin distance: euclidean
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/mnist-784-euclidean.json
{ "dataset": { "name": "mnist-784-euclidean", "base_file": "mnist-784-euclidean/base.fbin", "query_file": "mnist-784-euclidean/query.fbin", "groundtruth_neighbors_file": "mnist-784-euclidean/groundtruth.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/mnist-784-euclidean/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/mnist-784-euclidean/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/mnist-784-euclidean/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/mnist-784-euclidean/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/mnist-784-euclidean/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/mnist-784-euclidean/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/mnist-784-euclidean/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/mnist-784-euclidean/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/mnist-784-euclidean/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/mnist-784-euclidean/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/mnist-784-euclidean/faiss_gpu_flat/flat", "search_params": [ {} ], "search_result_file": "result/mnist-784-euclidean/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/mnist-784-euclidean/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/mnist-784-euclidean/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/mnist-784-euclidean/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/mnist-784-euclidean/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/mnist-784-euclidean/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/mnist-784-euclidean/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/mnist-784-euclidean/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/glove-50-angular.json
{ "dataset": { "name": "glove-50-angular", "base_file": "glove-50-angular/base.fbin", "query_file": "glove-50-angular/query.fbin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/glove-50-angular/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-50-angular/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/glove-50-angular/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-50-angular/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/glove-50-angular/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-50-angular/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/glove-50-angular/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-50-angular/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/glove-50-angular/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/glove-50-angular/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/glove-50-angular/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/glove-50-angular/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/glove-50-angular/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/glove-50-angular/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/glove-50-angular/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/glove-50-angular/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/glove-50-angular/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/glove-50-angular/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-50-angular/faiss_gpu_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/glove-50-angular/faiss_gpu_flat/flat", "search_params": [ {} ], "search_result_file": "result/glove-50-angular/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/glove-50-angular/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/glove-50-angular/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-50-angular/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/glove-50-angular/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-50-angular/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/glove-50-angular/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/glove-50-angular/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/glove-50-angular/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/glove-50-angular/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/nytimes-256-inner.json
{ "dataset": { "name": "nytimes-256-inner", "base_file": "nytimes-256-inner/base.fbin", "query_file": "nytimes-256-inner/query.fbin", "groundtruth_neighbors_file": "nytimes-256-inner/groundtruth.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/nytimes-256-inner/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/nytimes-256-inner/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/nytimes-256-inner/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/nytimes-256-inner/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/nytimes-256-inner/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/nytimes-256-inner/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/nytimes-256-inner/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/nytimes-256-inner/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/nytimes-256-inner/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/nytimes-256-inner/raft_bfknn/bfknn" }, { "name": "faiss_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/nytimes-256-inner/faiss_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_flat/nlist1024" }, { "name": "faiss_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/nytimes-256-inner/faiss_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_flat/nlist2048" }, { "name": "faiss_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/nytimes-256-inner/faiss_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_flat/nlist4096" }, { "name": "faiss_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/nytimes-256-inner/faiss_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_flat/nlist8192" }, { "name": "faiss_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/nytimes-256-inner/faiss_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_flat/nlist16384" }, { "name": "faiss_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/nytimes-256-inner/faiss_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_pq/M64-nlist1024" }, { "name": "faiss_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/nytimes-256-inner/faiss_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_pq/M64-nlist1024" }, { "name": "faiss_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist1024-fp16" }, { "name": "faiss_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist2048-fp16" }, { "name": "faiss_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist4096-fp16" }, { "name": "faiss_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist8192-fp16" }, { "name": "faiss_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist16384-fp16" }, { "name": "faiss_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist1024-int8" }, { "name": "faiss_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist2048-int8" }, { "name": "faiss_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist4096-int8" }, { "name": "faiss_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist8192-int8" }, { "name": "faiss_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/nytimes-256-inner/faiss_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/nytimes-256-inner/faiss_ivf_sq/nlist16384-int8" }, { "name": "faiss_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/nytimes-256-inner/faiss_flat/flat", "search_params": [ {} ], "search_result_file": "result/nytimes-256-inner/faiss_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-inner/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/nytimes-256-inner/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/nytimes-256-inner/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/nytimes-256-inner/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/nytimes-256-inner/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/nytimes-256-inner/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/nytimes-256-inner/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/lastfm-65-angular.json
{ "dataset": { "name": "lastfm-65-angular", "base_file": "lastfm-65-angular/base.fbin", "query_file": "lastfm-65-angular/query.fbin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/lastfm-65-angular/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/lastfm-65-angular/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/lastfm-65-angular/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/lastfm-65-angular/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/lastfm-65-angular/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/lastfm-65-angular/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/lastfm-65-angular/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/lastfm-65-angular/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/lastfm-65-angular/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/lastfm-65-angular/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/lastfm-65-angular/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/lastfm-65-angular/faiss_gpu_flat/flat", "search_params": [ {} ], "search_result_file": "result/lastfm-65-angular/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/lastfm-65-angular/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/lastfm-65-angular/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/lastfm-65-angular/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/lastfm-65-angular/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/lastfm-65-angular/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/lastfm-65-angular/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/lastfm-65-angular/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/nytimes-256-angular.json
{ "dataset": { "name": "nytimes-256-angular", "base_file": "nytimes-256-angular/base.fbin", "query_file": "nytimes-256-angular/query.fbin", "groundtruth_neighbors_file": "nytimes-256-angular/groundtruth.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/nytimes-256-angular/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/nytimes-256-angular/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/nytimes-256-angular/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/nytimes-256-angular/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/nytimes-256-angular/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/nytimes-256-angular/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/nytimes-256-angular/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/nytimes-256-angular/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/nytimes-256-angular/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/nytimes-256-angular/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/nytimes-256-angular/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/nytimes-256-angular/faiss_gpu_flat/flat", "search_params": [ {} ], "search_result_file": "result/nytimes-256-angular/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/nytimes-256-angular/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/nytimes-256-angular/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/nytimes-256-angular/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/nytimes-256-angular/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/nytimes-256-angular/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/nytimes-256-angular/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/nytimes-256-angular/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/wiki_all_88M.json
{ "dataset": { "name": "wiki_all_88M", "base_file": "wiki_all_88M/base.88M.fbin", "query_file": "wiki_all_88M/queries.fbin", "groundtruth_neighbors_file": "wiki_all_88M/groundtruth.88M.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 10000, "k": 10 }, "index": [ { "name": "hnswlib.M16.ef50", "algo": "hnswlib", "build_param": { "M": 16, "efConstruction": 50, "numThreads": 56 }, "file": "wiki_all_88M/hnswlib/M16.ef50", "search_params": [ { "ef": 10, "numThreads": 56 }, { "ef": 20, "numThreads": 56 }, { "ef": 40, "numThreads": 56 }, { "ef": 60, "numThreads": 56 }, { "ef": 80, "numThreads": 56 }, { "ef": 120, "numThreads": 56 }, { "ef": 200, "numThreads": 56 }, { "ef": 400, "numThreads": 56 }, { "ef": 600, "numThreads": 56 }, { "ef": 800, "numThreads": 56 } ] }, { "name": "faiss_ivf_pq.M32-nlist16K", "algo": "faiss_gpu_ivf_pq", "build_param": { "M": 32, "nlist": 16384, "ratio": 2 }, "file": "wiki_all_88M/faiss_ivf_pq/M32-nlist16K_ratio2", "search_params": [ { "nprobe": 10 }, { "nprobe": 20 }, { "nprobe": 30 }, { "nprobe": 40 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 } ] }, { "name": "faiss_ivf_pq.M64-nlist16K", "algo": "faiss_gpu_ivf_pq", "build_param": { "M": 64, "nlist": 16384, "ratio": 2 }, "file": "wiki_all_88M/faiss_ivf_pq/M64-nlist16K_ratio2", "search_params": [ { "nprobe": 10 }, { "nprobe": 20 }, { "nprobe": 30 }, { "nprobe": 40 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 } ] }, { "name": "raft_ivf_pq.d128-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 128, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_88M/raft_ivf_pq/d128-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 } ] }, { "name": "raft_ivf_pq.d64-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 64, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_88M/raft_ivf_pq/d64-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 } ] }, { "name": "raft_ivf_pq.d32-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 32, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_88M/raft_ivf_pq/d32-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 } ] }, { "name": "raft_ivf_pq.d32X-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 32, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_88M/raft_ivf_pq/d32-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 } ] }, { "name": "raft_cagra.dim32.multi_cta", "algo": "raft_cagra", "build_param": { "graph_degree": 32, "intermediate_graph_degree": 48 }, "file": "wiki_all_88M/raft_cagra/dim32.ibin", "search_params": [ { "itopk": 32, "search_width": 1, "max_iterations": 0, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 36, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 40, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 44, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 24, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 26, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 64, "search_width": 4, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 64, "search_width": 1, "max_iterations": 64, "algo": "multi_cta" }, { "itopk": 96, "search_width": 2, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 128, "search_width": 8, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 128, "search_width": 2, "max_iterations": 64, "algo": "multi_cta" }, { "itopk": 192, "search_width": 8, "max_iterations": 24, "algo": "multi_cta" }, { "itopk": 192, "search_width": 2, "max_iterations": 96, "algo": "multi_cta" }, { "itopk": 256, "search_width": 8, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 384, "search_width": 8, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 512, "search_width": 8, "max_iterations": 64, "algo": "multi_cta" } ] } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/glove-100-inner.json
{ "dataset": { "name": "glove-100-inner", "base_file": "glove-100-inner/base.fbin", "query_file": "glove-100-inner/query.fbin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/glove-100-inner/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-100-inner/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/glove-100-inner/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-100-inner/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/glove-100-inner/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-100-inner/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/glove-100-inner/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-100-inner/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/glove-100-inner/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/glove-100-inner/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist":1024}, "file": "glove-100-inner/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist":2048}, "file": "glove-100-inner/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist":4096}, "file": "glove-100-inner/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist":8192}, "file": "glove-100-inner/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/glove-100-inner/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-100-inner/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/glove-100-inner/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/glove-100-inner/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/glove-100-inner/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":2048, "quantizer_type":"fp16"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":4096, "quantizer_type":"fp16"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":8192, "quantizer_type":"fp16"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":16384, "quantizer_type":"fp16"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":1024, "quantizer_type":"int8"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":2048, "quantizer_type":"int8"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":4096, "quantizer_type":"int8"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":8192, "quantizer_type":"int8"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist":16384, "quantizer_type":"int8"}, "file": "glove-100-inner/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-100-inner/faiss_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "glove-100-inner/faiss_gpu_flat/flat", "search_params": [{}], "search_result_file": "result/glove-100-inner/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/glove-100-inner/raft_gpu_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/glove-100-inner/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/glove-100-inner/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-inner/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/glove-100-inner/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-100-inner/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/glove-100-inner/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/glove-100-inner/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/glove-100-inner/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/glove-100-inner/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/bigann-100M.json
{ "dataset": { "name": "bigann-100M", "base_file": "bigann-1B/base.1B.u8bin", "subset_size": 100000000, "query_file": "bigann-1B/query.public.10K.u8bin", "groundtruth_neighbors_file": "bigann-100M/groundtruth.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 10000, "k": 10 }, "index": [ { "name": "raft_ivf_pq.dimpq64-cluster5K", "algo": "raft_ivf_pq", "build_param": {"niter": 25, "nlist": 5000, "pq_dim": 64, "ratio": 10}, "file": "bigann-100M/raft_ivf_pq/dimpq64-cluster5K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 1000, "internalDistanceDtype": "half", "smemLutDtype": "half" } ] }, { "name": "raft_ivf_pq.dimpq64-cluster10K", "algo": "raft_ivf_pq", "build_param": {"niter": 25, "nlist": 10000, "pq_dim": 64, "ratio": 10}, "file": "bigann-100M/raft_ivf_pq/dimpq64-cluster5K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 1000, "internalDistanceDtype": "half", "smemLutDtype": "half" } ] }, { "name": "hnswlib.M12", "algo": "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file": "bigann-100M/hnswlib/M12", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M16", "algo": "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file": "bigann-100M/hnswlib/M16", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M24", "algo": "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file": "bigann-100M/hnswlib/M24", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M36", "algo": "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file": "bigann-100M/hnswlib/M36", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "raft_ivf_flat.nlist100K", "algo": "raft_ivf_flat", "build_param": {"nlist": 100000, "niter": 25, "ratio": 5}, "file": "bigann-100M/raft_ivf_flat/nlist100K", "search_params": [ {"max_batch":10000, "max_k":10, "nprobe":20}, {"max_batch":10000, "max_k":10, "nprobe":30}, {"max_batch":10000, "max_k":10, "nprobe":40}, {"max_batch":10000, "max_k":10, "nprobe":50}, {"max_batch":10000, "max_k":10, "nprobe":100}, {"max_batch":10000, "max_k":10, "nprobe":200}, {"max_batch":10000, "max_k":10, "nprobe":500}, {"max_batch":10000, "max_k":10, "nprobe":1000} ] }, { "name": "raft_cagra.dim32", "algo": "raft_cagra", "build_param": {"graph_degree": 32}, "file": "bigann-100M/raft_cagra/dim32", "search_params": [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ] }, { "name": "raft_cagra.dim64", "algo": "raft_cagra", "build_param": {"graph_degree": 64}, "file": "bigann-100M/raft_cagra/dim64", "search_params": [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ] } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/deep-image-96-inner.json
{ "dataset": { "name": "deep-image-96-inner", "base_file": "deep-image-96-inner/base.fbin", "query_file": "deep-image-96-inner/query.fbin", "groundtruth_neighbors_file": "deep-image-96-inner/groundtruth.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/deep-image-96-inner/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/deep-image-96-inner/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/deep-image-96-inner/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/deep-image-96-inner/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/deep-image-96-inner/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/deep-image-96-inner/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/deep-image-96-inner/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/deep-image-96-inner/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/deep-image-96-inner/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/deep-image-96-inner/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/deep-image-96-inner/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/deep-image-96-inner/faiss_gpu_flat/flat", "search_params": [ {} ], "search_result_file": "result/deep-image-96-inner/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": {"nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "half"}, {"nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half"}, {"nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half"}, {"nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half"}, {"nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half"}, {"nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ {"nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 5, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "float"}, {"nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "float"}, {"nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "float"}, {"nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "float"}, {"nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "float"}, {"nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float"} ], "search_result_file": "result/deep-image-96-inner/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-inner/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/deep-image-96-inner/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/deep-image-96-inner/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/deep-image-96-inner/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/deep-image-96-inner/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/deep-image-96-inner/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/deep-image-96-inner/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/deep-image-96-inner/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/gist-960-euclidean.json
{ "dataset": { "name": "gist-960-euclidean", "base_file": "gist-960-euclidean/base.fbin", "query_file": "gist-960-euclidean/query.fbin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/gist-960-euclidean/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/gist-960-euclidean/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/gist-960-euclidean/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/gist-960-euclidean/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/gist-960-euclidean/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/gist-960-euclidean/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/gist-960-euclidean/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/gist-960-euclidean/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/gist-960-euclidean/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/gist-960-euclidean/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/gist-960-euclidean/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/gist-960-euclidean/faiss_gpu_flat/flat", "search_params": [ {} ], "search_result_file": "result/gist-960-euclidean/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/gist-960-euclidean/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/gist-960-euclidean/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/gist-960-euclidean/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/gist-960-euclidean/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/gist-960-euclidean/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/gist-960-euclidean/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/gist-960-euclidean/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/fashion-mnist-784-euclidean.json
{ "dataset": { "name": "fashion-mnist-784-euclidean", "base_file": "fashion-mnist-784-euclidean/base.fbin", "query_file": "fashion-mnist-784-euclidean/query.fbin", "groundtruth_neighbors_file": "fashion-mnist-784-euclidean/groundtruth.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/fashion-mnist-784-euclidean/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/fashion-mnist-784-euclidean/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/fashion-mnist-784-euclidean/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/fashion-mnist-784-euclidean/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/fashion-mnist-784-euclidean/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/fashion-mnist-784-euclidean/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/fashion-mnist-784-euclidean/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/fashion-mnist-784-euclidean/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/fashion-mnist-784-euclidean/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/fashion-mnist-784-euclidean/faiss_gpu_flat/flat", "search_params": [ {} ], "search_result_file": "result/fashion-mnist-784-euclidean/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "numProbes": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "numProbes": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/fashion-mnist-784-euclidean/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/fashion-mnist-784-euclidean/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/fashion-mnist-784-euclidean/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/fashion-mnist-784-euclidean/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/fashion-mnist-784-euclidean/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/fashion-mnist-784-euclidean/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/sift-128-euclidean.json
{ "dataset": { "name": "sift-128-euclidean", "base_file": "sift-128-euclidean/base.fbin", "query_file": "sift-128-euclidean/query.fbin", "groundtruth_neighbors_file": "sift-128-euclidean/groundtruth.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10 }, "index": [ { "name": "hnswlib.M12", "algo": "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file": "sift-128-euclidean/hnswlib/M12", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M16", "algo": "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file": "sift-128-euclidean/hnswlib/M16", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M24", "algo": "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file": "sift-128-euclidean/hnswlib/M24", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M36", "algo": "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file": "sift-128-euclidean/hnswlib/M36", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "sift-128-euclidean/raft_bfknn/bfknn", "search_params": [{"probe": 1}] }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist": 1024}, "file": "sift-128-euclidean/faiss_gpu_ivf_flat/nlist1024", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist": 2048}, "file": "sift-128-euclidean/faiss_gpu_ivf_flat/nlist2048", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist": 4096}, "file": "sift-128-euclidean/faiss_gpu_ivf_flat/nlist4096", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist": 8192}, "file": "sift-128-euclidean/faiss_gpu_ivf_flat/nlist8192", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist": 16384}, "file": "sift-128-euclidean/faiss_gpu_ivf_flat/nlist16384", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000}, {"nprobe": 2000} ] }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": {"nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true}, "file": "sift-128-euclidean/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "sift-128-euclidean/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 1024, "quantizer_type": "fp16"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 2048, "quantizer_type": "fp16"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 4096, "quantizer_type": "fp16"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 8192, "quantizer_type": "fp16"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 16384, "quantizer_type": "fp16"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000}, {"nprobe": 2000} ] }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 1024, "quantizer_type": "int8"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 2048,"quantizer_type": "int8"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 4096, "quantizer_type": "int8"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 8192, "quantizer_type": "int8"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": {"nlist": 16384, "quantizer_type": "int8"}, "file": "sift-128-euclidean/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000}, {"nprobe": 2000} ] }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "sift-128-euclidean/faiss_gpu_flat/flat", "search_params": [{}] }, { "name": "raft_ivf_pq.dimpq64-bitpq8-cluster1K", "algo": "raft_ivf_pq", "build_param": {"niter": 25, "nlist": 1000, "pq_dim": 64, "pq_bits": 8, "ratio": 1}, "file": "sift-128-euclidean/raft_ivf_pq/dimpq64-bitpq8-cluster1K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 1000, "internalDistanceDtype": "half", "smemLutDtype": "half" } ] }, { "name": "raft_ivf_pq.dimpq128-bitpq6-cluster1K", "algo": "raft_ivf_pq", "build_param": {"niter": 25, "nlist": 1000, "pq_dim": 128, "pq_bits": 6, "ratio": 1}, "file": "sift-128-euclidean/raft_ivf_pq/dimpq128-bitpq6-cluster1K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "nprobe": 1000, "internalDistanceDtype": "half", "smemLutDtype": "half" } ] }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": {"nlist": 1024, "ratio": 1, "niter": 25}, "file": "sift-128-euclidean/raft_ivf_flat/nlist1024", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000} ] }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": {"nlist": 16384, "ratio": 2, "niter": 20}, "file": "sift-128-euclidean/raft_ivf_flat/nlist16384", "search_params": [ {"nprobe": 1}, {"nprobe": 5}, {"nprobe": 10}, {"nprobe": 50}, {"nprobe": 100}, {"nprobe": 200}, {"nprobe": 500}, {"nprobe": 1000}, {"nprobe": 2000} ] }, { "name": "raft_cagra.dim32", "algo": "raft_cagra", "build_param": {"graph_degree": 32}, "file": "sift-128-euclidean/raft_cagra/dim32", "search_params": [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ] }, { "name": "raft_cagra.dim64", "algo": "raft_cagra", "build_param": {"graph_degree": 64}, "file": "sift-128-euclidean/raft_cagra/dim64", "search_params": [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ] } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/deep-100M.json
{ "dataset": { "name": "deep-100M", "base_file": "deep-100M/base.1B.fbin", "subset_size": 100000000, "query_file": "deep-100M/query.public.10K.fbin", "groundtruth_neighbors_file": "deep-100M/groundtruth.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 10000, "k": 10 }, "index": [ { "name": "hnswlib.M12", "algo": "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file": "deep-100M/hnswlib/M12", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M16", "algo": "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file": "deep-100M/hnswlib/M16", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M24", "algo": "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file": "deep-100M/hnswlib/M24", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "hnswlib.M36", "algo": "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file": "deep-100M/hnswlib/M36", "search_params": [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ] }, { "name": "faiss_gpu_ivf_flat.nlist50K", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist":50000}, "file": "deep-100M/faiss_gpu_ivf_flat/nlist50K", "search_params": [ {"nprobe":20}, {"nprobe":30}, {"nprobe":40}, {"nprobe":50}, {"nprobe":100}, {"nprobe":200}, {"nprobe":500}, {"nprobe":1000} ] }, { "name": "faiss_gpu_ivf_flat.nlist100K", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist":100000}, "file": "deep-100M/faiss_gpu_ivf_flat/nlist100K", "search_params": [ {"nprobe":20}, {"nprobe":30}, {"nprobe":40}, {"nprobe":50}, {"nprobe":100}, {"nprobe":200}, {"nprobe":500}, {"nprobe":1000} ] }, { "name": "faiss_gpu_ivf_flat.nlist200K", "algo": "faiss_gpu_ivf_flat", "build_param": {"nlist":200000}, "file": "deep-100M/faiss_gpu_ivf_flat/nlist200K", "search_params": [ {"nprobe":20}, {"nprobe":30}, {"nprobe":40}, {"nprobe":50}, {"nprobe":100}, {"nprobe":200}, {"nprobe":500}, {"nprobe":1000} ] }, { "name": "faiss_gpu_ivf_pq.M48-nlist16K", "algo": "faiss_gpu_ivf_pq", "build_param": {"nlist":16384, "M":48}, "file": "deep-100M/faiss_gpu_ivf_pq/M48-nlist16K", "search_params": [ {"nprobe":10}, {"nprobe":20}, {"nprobe":30}, {"nprobe":40}, {"nprobe":50}, {"nprobe":100}, {"nprobe":200}, {"nprobe":500} ] }, { "name": "faiss_gpu_ivf_pq.M48-nlist50K", "algo": "faiss_gpu_ivf_pq", "build_param": {"nlist":50000, "M":48}, "file": "deep-100M/faiss_gpu_ivf_pq/M48-nlist50K", "search_params": [ {"nprobe":20}, {"nprobe":30}, {"nprobe":40}, {"nprobe":50}, {"nprobe":100}, {"nprobe":200}, {"nprobe":500}, {"nprobe":1000} ] }, { "name": "faiss_gpu_ivf_pq.M48-nlist100K", "algo": "faiss_gpu_ivf_pq", "build_param": {"nlist":100000, "M":48}, "file": "deep-100M/faiss_gpu_ivf_pq/M48-nlist100K", "search_params": [ {"nprobe":20}, {"nprobe":30}, {"nprobe":40}, {"nprobe":50}, {"nprobe":100}, {"nprobe":200}, {"nprobe":500}, {"nprobe":1000} ] }, { "name": "faiss_gpu_ivf_pq.M48-nlist200K", "algo": "faiss_gpu_ivf_pq", "build_param": {"nlist":200000, "M":48}, "file": "deep-100M/faiss_gpu_ivf_pq/M48-nlist200K", "search_params": [ {"nprobe":20}, {"nprobe":30}, {"nprobe":40}, {"nprobe":50}, {"nprobe":100}, {"nprobe":200}, {"nprobe":500}, {"nprobe":1000} ] }, { "name": "raft_ivf_flat.nlist50K", "algo": "raft_ivf_flat", "build_param": {"nlist": 50000, "niter": 25, "ratio": 5}, "file": "deep-100M/raft_ivf_flat/nlist50K", "search_params": [ {"max_batch":10000, "max_k":10, "nprobe":20}, {"max_batch":10000, "max_k":10, "nprobe":30}, {"max_batch":10000, "max_k":10, "nprobe":40}, {"max_batch":10000, "max_k":10, "nprobe":50}, {"max_batch":10000, "max_k":10, "nprobe":100}, {"max_batch":10000, "max_k":10, "nprobe":200}, {"max_batch":10000, "max_k":10, "nprobe":500}, {"max_batch":10000, "max_k":10, "nprobe":1000} ] }, { "name": "raft_ivf_flat.nlist100K", "algo": "raft_ivf_flat", "build_param": {"nlist": 100000, "niter": 25, "ratio": 5}, "file": "deep-100M/raft_ivf_flat/nlist100K", "search_params": [ {"max_batch":10000, "max_k":10, "nprobe":20}, {"max_batch":10000, "max_k":10, "nprobe":30}, {"max_batch":10000, "max_k":10, "nprobe":40}, {"max_batch":10000, "max_k":10, "nprobe":50}, {"max_batch":10000, "max_k":10, "nprobe":100}, {"max_batch":10000, "max_k":10, "nprobe":200}, {"max_batch":10000, "max_k":10, "nprobe":500}, {"max_batch":10000, "max_k":10, "nprobe":1000} ] }, { "name": "raft_ivf_flat.nlist200K", "algo": "raft_ivf_flat", "build_param": {"nlist": 200000, "niter": 25, "ratio": 5}, "file": "deep-100M/raft_ivf_flat/nlist200K", "search_params": [ {"max_batch":10000, "max_k":10, "nprobe":20}, {"max_batch":10000, "max_k":10, "nprobe":30}, {"max_batch":10000, "max_k":10, "nprobe":40}, {"max_batch":10000, "max_k":10, "nprobe":50}, {"max_batch":10000, "max_k":10, "nprobe":100}, {"max_batch":10000, "max_k":10, "nprobe":200}, {"max_batch":10000, "max_k":10, "nprobe":500}, {"max_batch":10000, "max_k":10, "nprobe":1000} ] }, { "name": "raft_ivf_pq.d96b5n50K", "algo": "raft_ivf_pq", "build_param": {"nlist": 50000, "pq_dim": 96, "pq_bits": 5, "ratio": 10, "niter": 25}, "file": "deep-100M/raft_ivf_pq/d96b5n50K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 2000, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 5000, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 2 }, { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 2000, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 5000, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 2000, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 5000, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 1000, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 2000, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 5000, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 2 }, { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 1000, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 2000, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 }, { "nprobe": 5000, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 2 } ] }, { "name": "raft_ivf_pq.d64b5n50K", "algo": "raft_ivf_pq", "build_param": {"nlist": 50000, "pq_dim": 64, "pq_bits": 5, "ratio": 10, "niter": 25}, "file": "deep-100M/raft_ivf_pq/d64b5n50K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 2000, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 5000, "internalDistanceDtype": "float", "smemLutDtype": "float", "refine_ratio": 4 }, { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 2000, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 5000, "internalDistanceDtype": "float", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 20, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 30, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 1000, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 2000, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 5000, "internalDistanceDtype": "float", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 1000, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 2000, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 5000, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 1000, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 2000, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 }, { "nprobe": 5000, "internalDistanceDtype": "half", "smemLutDtype": "fp8", "refine_ratio": 4 } ] }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/deep-image-96-angular/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ {"nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float"}, {"nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float"} ], "search_result_file": "result/deep-image-96-angular/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_cagra.dim32", "algo": "raft_cagra", "build_param": {"graph_degree": 32, "intermediate_graph_degree": 48}, "file": "deep-100M/raft_cagra/dim32", "search_params": [ {"itopk": 32, "search_width": 1, "max_iterations": 0, "algo": "single_cta"}, {"itopk": 32, "search_width": 1, "max_iterations": 32, "algo": "single_cta"}, {"itopk": 64, "search_width": 4, "max_iterations": 16, "algo": "single_cta"}, {"itopk": 64, "search_width": 1, "max_iterations": 64, "algo": "single_cta"}, {"itopk": 96, "search_width": 2, "max_iterations": 48, "algo": "single_cta"}, {"itopk": 128, "search_width": 8, "max_iterations": 16, "algo": "single_cta"}, {"itopk": 128, "search_width": 2, "max_iterations": 64, "algo": "single_cta"}, {"itopk": 192, "search_width": 8, "max_iterations": 24, "algo": "single_cta"}, {"itopk": 192, "search_width": 2, "max_iterations": 96, "algo": "single_cta"}, {"itopk": 256, "search_width": 8, "max_iterations": 32, "algo": "single_cta"}, {"itopk": 384, "search_width": 8, "max_iterations": 48, "algo": "single_cta"}, {"itopk": 512, "search_width": 8, "max_iterations": 64, "algo": "single_cta"} ] }, { "name": "raft_cagra.dim32.multi_cta", "algo": "raft_cagra", "build_param": {"graph_degree": 32, "intermediate_graph_degree": 48}, "file": "deep-100M/raft_cagra/dim32", "search_params": [ {"itopk": 32, "search_width": 1, "max_iterations": 0, "algo": "multi_cta"}, {"itopk": 32, "search_width": 1, "max_iterations": 32, "algo": "multi_cta"}, {"itopk": 64, "search_width": 4, "max_iterations": 16, "algo": "multi_cta"}, {"itopk": 64, "search_width": 1, "max_iterations": 64, "algo": "multi_cta"}, {"itopk": 96, "search_width": 2, "max_iterations": 48, "algo": "multi_cta"}, {"itopk": 128, "search_width": 8, "max_iterations": 16, "algo": "multi_cta"}, {"itopk": 128, "search_width": 2, "max_iterations": 64, "algo": "multi_cta"}, {"itopk": 192, "search_width": 8, "max_iterations": 24, "algo": "multi_cta"}, {"itopk": 192, "search_width": 2, "max_iterations": 96, "algo": "multi_cta"}, {"itopk": 256, "search_width": 8, "max_iterations": 32, "algo": "multi_cta"}, {"itopk": 384, "search_width": 8, "max_iterations": 48, "algo": "multi_cta"}, {"itopk": 512, "search_width": 8, "max_iterations": 64, "algo": "multi_cta"} ] }, { "name": "raft_cagra.dim32.multi_kernel", "algo": "raft_cagra", "build_param": {"graph_degree": 32, "intermediate_graph_degree": 48}, "file": "deep-100M/raft_cagra/dim32", "search_params": [ {"itopk": 32, "search_width": 1, "max_iterations": 0, "algo": "multi_kernel"}, {"itopk": 32, "search_width": 1, "max_iterations": 32, "algo": "multi_kernel"}, {"itopk": 64, "search_width": 4, "max_iterations": 16, "algo": "multi_kernel"}, {"itopk": 64, "search_width": 1, "max_iterations": 64, "algo": "multi_kernel"}, {"itopk": 96, "search_width": 2, "max_iterations": 48, "algo": "multi_kernel"}, {"itopk": 128, "search_width": 8, "max_iterations": 16, "algo": "multi_kernel"}, {"itopk": 128, "search_width": 2, "max_iterations": 64, "algo": "multi_kernel"}, {"itopk": 192, "search_width": 8, "max_iterations": 24, "algo": "multi_kernel"}, {"itopk": 192, "search_width": 2, "max_iterations": 96, "algo": "multi_kernel"}, {"itopk": 256, "search_width": 8, "max_iterations": 32, "algo": "multi_kernel"}, {"itopk": 384, "search_width": 8, "max_iterations": 48, "algo": "multi_kernel"}, {"itopk": 512, "search_width": 8, "max_iterations": 64, "algo": "multi_kernel"} ] }, { "name": "raft_cagra.dim64", "algo": "raft_cagra", "build_param": {"graph_degree": 64}, "file": "deep-100M/raft_cagra/dim64", "search_params": [ {"itopk": 32, "search_width": 1, "max_iterations": 0}, {"itopk": 32, "search_width": 1, "max_iterations": 32}, {"itopk": 64, "search_width": 4, "max_iterations": 16}, {"itopk": 64, "search_width": 1, "max_iterations": 64}, {"itopk": 96, "search_width": 2, "max_iterations": 48}, {"itopk": 128, "search_width": 8, "max_iterations": 16}, {"itopk": 128, "search_width": 2, "max_iterations": 64}, {"itopk": 192, "search_width": 8, "max_iterations": 24}, {"itopk": 192, "search_width": 2, "max_iterations": 96}, {"itopk": 256, "search_width": 8, "max_iterations": 32}, {"itopk": 384, "search_width": 8, "max_iterations": 48}, {"itopk": 512, "search_width": 8, "max_iterations": 64} ] } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/deep-1B.json
{ "dataset": { "name": "deep-1B", "base_file": "deep-1B/base.1B.fbin", "query_file": "deep-1B/query.public.10K.fbin", "groundtruth_neighbors_file": "deep-1B/groundtruth.neighbors.ibin", "distance": "inner_product" }, "search_basic_param": { "batch_size": 10000, "k": 10 }, "index": [ { "name": "faiss_gpu_ivf_pq.M48-nlist50K", "algo": "faiss_gpu_ivf_pq", "build_param": {"nlist":50000, "M":48}, "file": "deep-1B/faiss_gpu_ivf_pq/M48-nlist50K", "search_params": [ {"nprobe":1}, {"nprobe":5}, {"nprobe":10}, {"nprobe":50}, {"nprobe":100}, {"nprobe":200}, {"nprobe":500}, {"nprobe":1000}, {"nprobe":2000} ] } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/wiki_all_1M.json
{ "dataset": { "name": "wiki_all_1M", "base_file": "wiki_all_1M/base.1M.fbin", "subset_size": 1000000, "query_file": "wiki_all_1M/queries.fbin", "groundtruth_neighbors_file": "wiki_all_1M/groundtruth.1M.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 10000, "k": 10 }, "index": [ { "name": "hnswlib.M16.ef50", "algo": "hnswlib", "build_param": { "M": 16, "efConstruction": 50, "numThreads": 56 }, "file": "wiki_all_1M/hnswlib/M16.ef50", "search_params": [ { "ef": 10, "numThreads": 56 }, { "ef": 20, "numThreads": 56 }, { "ef": 40, "numThreads": 56 }, { "ef": 60, "numThreads": 56 }, { "ef": 80, "numThreads": 56 }, { "ef": 120, "numThreads": 56 }, { "ef": 200, "numThreads": 56 }, { "ef": 400, "numThreads": 56 }, { "ef": 600, "numThreads": 56 }, { "ef": 800, "numThreads": 56 } ] }, { "name": "faiss_ivf_pq.M32-nlist16K", "algo": "faiss_gpu_ivf_pq", "build_param": { "M": 32, "nlist": 16384, "ratio": 2 }, "file": "wiki_all_1M/faiss_ivf_pq/M32-nlist16K_ratio2", "search_params": [ { "nprobe": 10 }, { "nprobe": 20 }, { "nprobe": 30 }, { "nprobe": 40 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 } ] }, { "name": "faiss_ivf_pq.M64-nlist16K", "algo": "faiss_gpu_ivf_pq", "build_param": { "M": 64, "nlist": 16384, "ratio": 2 }, "file": "wiki_all_1M/faiss_ivf_pq/M64-nlist16K_ratio2", "search_params": [ { "nprobe": 10 }, { "nprobe": 20 }, { "nprobe": 30 }, { "nprobe": 40 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 } ] }, { "name": "raft_ivf_pq.d128-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 128, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_1M/raft_ivf_pq/d128-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 } ] }, { "name": "raft_ivf_pq.d64-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 64, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_1M/raft_ivf_pq/d64-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 } ] }, { "name": "raft_ivf_pq.d32-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 32, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_1M/raft_ivf_pq/d32-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 } ] }, { "name": "raft_ivf_pq.d32X-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 32, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_1M/raft_ivf_pq/d32-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 } ] }, { "name": "raft_cagra.dim32.multi_cta", "algo": "raft_cagra", "build_param": { "graph_degree": 32, "intermediate_graph_degree": 48, "graph_build_algo": "NN_DESCENT", "ivf_pq_build_pq_dim": 32, "ivf_pq_build_pq_bits": 8, "ivf_pq_build_nlist": 16384, "ivf_pq_build_niter": 10, "ivf_pq_build_ratio": 10, "ivf_pq_search_nprobe": 30, "ivf_pq_search_internalDistanceDtype": "half", "ivf_pq_search_smemLutDtype": "half", "ivf_pq_search_refine_ratio": 8, "nn_descent_max_iterations": 10, "nn_descent_intermediate_graph_degree": 72, "nn_descent_termination_threshold": 0.001 }, "file": "wiki_all_1M/raft_cagra/dim32.ibin", "search_params": [ { "itopk": 32, "search_width": 1, "max_iterations": 0, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 36, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 40, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 44, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 24, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 26, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 64, "search_width": 4, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 64, "search_width": 1, "max_iterations": 64, "algo": "multi_cta" }, { "itopk": 96, "search_width": 2, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 128, "search_width": 8, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 128, "search_width": 2, "max_iterations": 64, "algo": "multi_cta" }, { "itopk": 192, "search_width": 8, "max_iterations": 24, "algo": "multi_cta" }, { "itopk": 192, "search_width": 2, "max_iterations": 96, "algo": "multi_cta" }, { "itopk": 256, "search_width": 8, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 384, "search_width": 8, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 512, "search_width": 8, "max_iterations": 64, "algo": "multi_cta" } ] } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/wiki_all_10M.json
{ "dataset": { "name": "wiki_all_10M", "base_file": "wiki_all_10M/base.88M.fbin", "query_file": "wiki_all_10M/queries.fbin", "groundtruth_neighbors_file": "wiki_all_10M/groundtruth.88M.neighbors.ibin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 10000, "k": 10 }, "index": [ { "name": "hnswlib.M16.ef50", "algo": "hnswlib", "build_param": { "M": 16, "efConstruction": 50, "numThreads": 56 }, "file": "wiki_all_10M/hnswlib/M16.ef50", "search_params": [ { "ef": 10, "numThreads": 56 }, { "ef": 20, "numThreads": 56 }, { "ef": 40, "numThreads": 56 }, { "ef": 60, "numThreads": 56 }, { "ef": 80, "numThreads": 56 }, { "ef": 120, "numThreads": 56 }, { "ef": 200, "numThreads": 56 }, { "ef": 400, "numThreads": 56 }, { "ef": 600, "numThreads": 56 }, { "ef": 800, "numThreads": 56 } ] }, { "name": "faiss_ivf_pq.M32-nlist16K", "algo": "faiss_gpu_ivf_pq", "build_param": { "M": 32, "nlist": 16384, "ratio": 2 }, "file": "wiki_all_10M/faiss_ivf_pq/M32-nlist16K_ratio2", "search_params": [ { "nprobe": 10 }, { "nprobe": 20 }, { "nprobe": 30 }, { "nprobe": 40 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 } ] }, { "name": "faiss_ivf_pq.M64-nlist16K", "algo": "faiss_gpu_ivf_pq", "build_param": { "M": 64, "nlist": 16384, "ratio": 2 }, "file": "wiki_all_10M/faiss_ivf_pq/M64-nlist16K_ratio2", "search_params": [ { "nprobe": 10 }, { "nprobe": 20 }, { "nprobe": 30 }, { "nprobe": 40 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 } ] }, { "name": "raft_ivf_pq.d128-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 128, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_10M/raft_ivf_pq/d128-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 1 } ] }, { "name": "raft_ivf_pq.d64-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 64, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_10M/raft_ivf_pq/d64-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 } ] }, { "name": "raft_ivf_pq.d32-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 32, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_10M/raft_ivf_pq/d32-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 32 } ] }, { "name": "raft_ivf_pq.d32X-nlist16K", "algo": "raft_ivf_pq", "build_param": { "pq_dim": 32, "pq_bits": 8, "nlist": 16384, "niter": 10, "ratio": 10 }, "file": "wiki_all_10M/raft_ivf_pq/d32-nlist16K", "search_params": [ { "nprobe": 20, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 16 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 8 }, { "nprobe": 30, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 40, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 }, { "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half", "refine_ratio": 4 } ] }, { "name": "raft_cagra.dim32.multi_cta", "algo": "raft_cagra", "build_param": { "graph_degree": 32, "intermediate_graph_degree": 48 }, "file": "wiki_all_10M/raft_cagra/dim32.ibin", "search_params": [ { "itopk": 32, "search_width": 1, "max_iterations": 0, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 36, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 40, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 44, "algo": "multi_cta" }, { "itopk": 32, "search_width": 1, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 24, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 26, "algo": "multi_cta" }, { "itopk": 32, "search_width": 2, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 64, "search_width": 4, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 64, "search_width": 1, "max_iterations": 64, "algo": "multi_cta" }, { "itopk": 96, "search_width": 2, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 128, "search_width": 8, "max_iterations": 16, "algo": "multi_cta" }, { "itopk": 128, "search_width": 2, "max_iterations": 64, "algo": "multi_cta" }, { "itopk": 192, "search_width": 8, "max_iterations": 24, "algo": "multi_cta" }, { "itopk": 192, "search_width": 2, "max_iterations": 96, "algo": "multi_cta" }, { "itopk": 256, "search_width": 8, "max_iterations": 32, "algo": "multi_cta" }, { "itopk": 384, "search_width": 8, "max_iterations": 48, "algo": "multi_cta" }, { "itopk": 512, "search_width": 8, "max_iterations": 64, "algo": "multi_cta" } ] } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/glove-100-angular.json
{ "dataset": { "name": "glove-100-angular", "base_file": "glove-100-angular/base.fbin", "query_file": "glove-100-angular/query.fbin", "distance": "euclidean" }, "search_basic_param": { "batch_size": 5000, "k": 10, "run_count": 3 }, "index": [ { "name" : "hnswlib.M12", "algo" : "hnswlib", "build_param": {"M":12, "efConstruction":500, "numThreads":32}, "file" : "index/glove-100-angular/hnswlib/M12", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-100-angular/hnswlib/M12" }, { "name" : "hnswlib.M16", "algo" : "hnswlib", "build_param": {"M":16, "efConstruction":500, "numThreads":32}, "file" : "index/glove-100-angular/hnswlib/M16", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-100-angular/hnswlib/M16" }, { "name" : "hnswlib.M24", "algo" : "hnswlib", "build_param": {"M":24, "efConstruction":500, "numThreads":32}, "file" : "index/glove-100-angular/hnswlib/M24", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-100-angular/hnswlib/M24" }, { "name" : "hnswlib.M36", "algo" : "hnswlib", "build_param": {"M":36, "efConstruction":500, "numThreads":32}, "file" : "index/glove-100-angular/hnswlib/M36", "search_params" : [ {"ef":10}, {"ef":20}, {"ef":40}, {"ef":60}, {"ef":80}, {"ef":120}, {"ef":200}, {"ef":400}, {"ef":600}, {"ef":800} ], "search_result_file" : "result/glove-100-angular/hnswlib/M36" }, { "name": "raft_bfknn", "algo": "raft_bfknn", "build_param": {}, "file": "index/glove-100-angular/raft_bfknn/bfknn", "search_params": [ { "probe": 1 } ], "search_result_file": "result/glove-100-angular/raft_bfknn/bfknn" }, { "name": "faiss_gpu_ivf_flat.nlist1024", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 1024 }, "file": "index/glove-100-angular/faiss_gpu_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_flat/nlist1024" }, { "name": "faiss_gpu_ivf_flat.nlist2048", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 2048 }, "file": "index/glove-100-angular/faiss_gpu_ivf_flat/nlist2048", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_flat/nlist2048" }, { "name": "faiss_gpu_ivf_flat.nlist4096", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 4096 }, "file": "index/glove-100-angular/faiss_gpu_ivf_flat/nlist4096", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_flat/nlist4096" }, { "name": "faiss_gpu_ivf_flat.nlist8192", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 8192 }, "file": "index/glove-100-angular/faiss_gpu_ivf_flat/nlist8192", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_flat/nlist8192" }, { "name": "faiss_gpu_ivf_flat.nlist16384", "algo": "faiss_gpu_ivf_flat", "build_param": { "nlist": 16384 }, "file": "index/glove-100-angular/faiss_gpu_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_flat/nlist16384" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": true }, "file": "index/glove-100-angular/faiss_gpu_ivf_pq/M64-nlist1024", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_pq.M64-nlist1024.noprecomp", "algo": "faiss_gpu_ivf_pq", "build_param": { "nlist": 1024, "M": 64, "useFloat16": true, "usePrecomputed": false }, "file": "index/glove-100-angular/faiss_gpu_ivf_pq/M64-nlist1024.noprecomp", "search_params": [ { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_pq/M64-nlist1024" }, { "name": "faiss_gpu_ivf_sq.nlist1024-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "fp16" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist1024-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist1024-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist2048-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "fp16" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist2048-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist2048-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist4096-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "fp16" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist4096-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist4096-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist8192-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "fp16" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist8192-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist8192-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist16384-fp16", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "fp16" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist16384-fp16", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist16384-fp16" }, { "name": "faiss_gpu_ivf_sq.nlist1024-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 1024, "quantizer_type": "int8" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist1024-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist1024-int8" }, { "name": "faiss_gpu_ivf_sq.nlist2048-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 2048, "quantizer_type": "int8" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist2048-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist2048-int8" }, { "name": "faiss_gpu_ivf_sq.nlist4096-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 4096, "quantizer_type": "int8" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist4096-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist4096-int8" }, { "name": "faiss_gpu_ivf_sq.nlist8192-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 8192, "quantizer_type": "int8" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist8192-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist8192-int8" }, { "name": "faiss_gpu_ivf_sq.nlist16384-int8", "algo": "faiss_gpu_ivf_sq", "build_param": { "nlist": 16384, "quantizer_type": "int8" }, "file": "index/glove-100-angular/faiss_gpu_ivf_sq/nlist16384-int8", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-100-angular/faiss_gpu_ivf_sq/nlist16384-int8" }, { "name": "faiss_gpu_flat", "algo": "faiss_gpu_flat", "build_param": {}, "file": "index/glove-100-angular/faiss_gpu_flat/flat", "search_params": [ {} ], "search_result_file": "result/glove-100-angular/faiss_gpu_flat/flat" }, { "name": "raft_ivf_pq.dimpq128-cluster1024", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "half" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024-float-float", "search_params": [ { "k": 10, "nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 5, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024-float-float" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024-float-half", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq64-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq64-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq64-cluster1024-float-half", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 64, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq64-cluster1024-float-half", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "half" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "half" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq64-cluster1024-float-half" }, { "name": "raft_ivf_pq.dimpq32-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 32, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq32-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq32-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq16-cluster1024-float-fp8", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 16, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq16-cluster1024-float-fp8", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "fp8" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "fp8" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq16-cluster1024-float-fp8" }, { "name": "raft_ivf_pq.dimpq128-cluster1024-half-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 128, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024-half-float", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "half", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "half", "smemLutDtype": "float" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq128-cluster1024-half-float" }, { "name": "raft_ivf_pq.dimpq512-cluster1024-float-float", "algo": "raft_ivf_pq", "build_param": { "nlist": 1024, "pq_dim": 512, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_pq/dimpq512-cluster1024-float-float", "search_params": [ { "k": 10, "nprobe": 10, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 50, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 100, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 200, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 500, "internalDistanceDtype": "float", "smemLutDtype": "float" }, { "k": 10, "nprobe": 1024, "internalDistanceDtype": "float", "smemLutDtype": "float" } ], "search_result_file": "result/glove-100-angular/raft_ivf_pq/dimpq512-cluster1024-float-float" }, { "name": "raft_ivf_flat.nlist1024", "algo": "raft_ivf_flat", "build_param": { "nlist": 1024, "ratio": 1, "niter": 25 }, "file": "index/glove-100-angular/raft_ivf_flat/nlist1024", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 } ], "search_result_file": "result/glove-100-angular/raft_ivf_flat/nlist1024" }, { "name": "raft_ivf_flat.nlist16384", "algo": "raft_ivf_flat", "build_param": { "nlist": 16384, "ratio": 2, "niter": 20 }, "file": "index/glove-100-angular/raft_ivf_flat/nlist16384", "search_params": [ { "nprobe": 1 }, { "nprobe": 5 }, { "nprobe": 10 }, { "nprobe": 50 }, { "nprobe": 100 }, { "nprobe": 200 }, { "nprobe": 500 }, { "nprobe": 1000 }, { "nprobe": 2000 } ], "search_result_file": "result/glove-100-angular/raft_ivf_flat/nlist16384" }, { "name" : "raft_cagra.dim32", "algo" : "raft_cagra", "build_param": { "graph_degree" : 32 }, "file" : "index/glove-100-angular/raft_cagra/dim32", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/glove-100-angular/raft_cagra/dim32" }, { "name" : "raft_cagra.dim64", "algo" : "raft_cagra", "build_param": { "graph_degree" : 64 }, "file" : "index/glove-100-angular/raft_cagra/dim64", "search_params" : [ {"itopk": 32}, {"itopk": 64}, {"itopk": 128} ], "search_result_file" : "result/glove-100-angular/raft_cagra/dim64" } ] }
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/algos/faiss_gpu_ivf_flat.yaml
name: faiss_gpu_ivf_flat groups: base: build: nlist: [2048] ratio: [1, 4, 10] useFloat16: [False] search: nprobe: [2048] refine_ratio: [1]
0
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf
rapidsai_public_repos/raft/python/raft-ann-bench/src/raft-ann-bench/run/conf/algos/raft_ivf_flat.yaml
name: raft_ivf_flat groups: base: build: nlist: [1024, 2048, 4096, 8192, 16384, 32000, 64000] ratio: [1, 2, 4] niter: [20, 25] search: nprobe: [1, 5, 10, 50, 100, 200, 500, 1000, 2000]
0