You need to set the right environment variable so tch-rs
can find the libtorch library.
The one that works best right now is 11.8
.
export TORCH_CUDA_VERSION="cu118"
$ cargo publish
$ wasm-pack build --features ml_infer --features wasm
Rename package to kordweb
,
$ wasm-pack publish
$ cargo wasi build --release --no-default-features --features wasi --features cli --features ml_infer --features analyze_file
$ wasmer publish