We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have set interOpNumThreads and intraOpNumThreads option,but the cpu usage is 3200%, it's to high. so how to reduce the cpu usage ,such as 400%.
interOpNumThreads
intraOpNumThreads
val criteria = Criteria.builder .optApplication(Application.NLP.TEXT_CLASSIFICATION) .optModelUrls(model_path) .setTypes(classOf[Longs], classOf[Floats]) .optTranslator(new BertTranslator()) .optEngine("OnnxRuntime") .optOption("interOpNumThreads", "1") .optOption("intraOpNumThreads", "1") .optOption("executionMode", "SEQUENTIAL") .optOption("optLevel", "NO_OPT") .optOption("memoryPatternOptimization", "true") .optOption("cpuArenaAllocator", "false") .optOption("disablePerSessionThreads", "true") .build
The text was updated successfully, but these errors were encountered:
If you send NUM_OMP_THREADS=1, it should only use 1 CPU at a time. How many java thread are you using for inference?
Sorry, something went wrong.
No branches or pull requests
Description
I have set
interOpNumThreads
andintraOpNumThreads
option,but the cpu usage is 3200%, it's to high.so how to reduce the cpu usage ,such as 400%.
Code
Cpu
The text was updated successfully, but these errors were encountered: