Skip to content

Unable to set device type to GPU while using llm-guard[onnxruntime-gpu] for optimization #228

Open
@manali04shyam

Description

@manali04shyam

Hi Team,
I have followed the below documentation for optimization of llm guard to use GPU using onnxruntime-gpu library but even after that during code compilation I see device type as "cpu". Are there any additional steps in the code to enable gpu for llm guard in order to improve speed?

https://llm-guard.com/tutorials/optimization/#onnx-runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions