Class GenAISupportedModels
java.lang.Object
smile.onnx.genai.GenAISupportedModels
Allowlist of architectures supported by ONNX Runtime GenAI for chat.
Updated as onnx-genai gains models. Whisper is listed but not chat-capable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumChat-capable (and Whisper) families tracked for Olive / OGA conversion. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisChatConvertible(Path checkpointDir, String modelSpec) Returns whether a plain HF checkpoint is eligible for Olive → OGA conversion for chat (excludes Whisper and unknown families).static Optional<GenAISupportedModels.Family> Matches a local HF checkpoint directory viaconfig.json.static Optional<GenAISupportedModels.Family> matchRepoId(String modelSpec) Matches a Hugging Face repo id or directory name heuristic.
-
Method Details
-
match
Matches a local HF checkpoint directory viaconfig.json.- Parameters:
checkpointDir- model directory.- Returns:
- chat-capable family when listed; empty when unknown or Whisper.
-
matchRepoId
Matches a Hugging Face repo id or directory name heuristic.- Parameters:
modelSpec-owner/nameor leaf directory name.- Returns:
- chat-capable family when listed.
-
isChatConvertible
Returns whether a plain HF checkpoint is eligible for Olive → OGA conversion for chat (excludes Whisper and unknown families).- Parameters:
checkpointDir- local dir, ornullto usemodelSpeconly.modelSpec- HF id or path string.- Returns:
truewhen allowlisted for chat OGA.
-