Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 731 Bytes

DEVELOPMENT.md

File metadata and controls

38 lines (25 loc) · 731 Bytes

kord development

Get libtorch on windows

You need to set the right environment variable so tch-rs can find the libtorch library, and download it.

The one that works best right now is 12.1.

export TORCH_CUDA_VERSION="cu121"

This will automatically download the right binaries, but you may need to turn off any VPNs you are using.

Publish to Cargo

$ cargo publish

Publish to NPM

$ wasm-pack build --features ml_infer --features wasm

Rename package to kordweb,

$ wasm-pack publish

Publish to wasmer

$ cargo wasi build --release --no-default-features --features wasi --features cli --features ml_infer --features analyze_file
$ wasmer publish