(load-model model-dir)(load-model model-dir opts)Load a local model directory containing model.onnx and tokenizer.json.
Options include :pooling (:mean, :mean-sqrt-len, :cls, :max),
:normalize?, :max-length, and :execution-providers, a vector of
provider keywords or maps such as [:coreml], [:cuda], or
[{:provider :cuda :device-id 0}]. CPU remains the implicit fallback when
execution providers are absent or empty.
Load a local model directory containing `model.onnx` and `tokenizer.json`.
Options include `:pooling` (`:mean`, `:mean-sqrt-len`, `:cls`, `:max`),
`:normalize?`, `:max-length`, and `:execution-providers`, a vector of
provider keywords or maps such as `[:coreml]`, `[:cuda]`, or
`[{:provider :cuda :device-id 0}]`. CPU remains the implicit fallback when
execution providers are absent or empty.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |