init
This commit is contained in:
commit
f2b8bdca98
1 changed files with 2068 additions and 0 deletions
55
wasm/inference-models/Cargo.toml
Normal file
55
wasm/inference-models/Cargo.toml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
[package]
|
||||
name = "inference-models"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
|
||||
[dependencies]
|
||||
## Models
|
||||
model-ai-text.workspace = true
|
||||
model-ai-text.optional = true
|
||||
## Wasm
|
||||
wasm-bindgen.workspace = true
|
||||
wasm-bindgen-futures.workspace = true
|
||||
js-sys.workspace = true
|
||||
gloo.workspace = true
|
||||
wasm-tracing.workspace = true
|
||||
console_error_panic_hook.workspace = true
|
||||
## Logging
|
||||
tracing.workspace = true
|
||||
## Inf
|
||||
burn.workspace = true
|
||||
burn.features = ["ndarray", "webgpu"]
|
||||
burn-store.workspace = true
|
||||
burn-store.features = ["burnpack"]
|
||||
tokenizers.workspace = true
|
||||
## Seri
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
## Codegen
|
||||
thiserror.workspace = true
|
||||
## Wrkrnd
|
||||
getrandom_v4.workspace = true
|
||||
getrandom_v3.workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
hf-hub.workspace = true
|
||||
burn-onnx.workspace = true
|
||||
serde_json.workspace = true
|
||||
|
||||
[features]
|
||||
ai_text = ["dep:model-ai-text"]
|
||||
|
||||
[package.metadata.wasm-pack]
|
||||
profile.release.wasm-opt = [
|
||||
"-O4",
|
||||
"-ffm",
|
||||
"--enable-simd",
|
||||
"--enable-bulk-memory",
|
||||
"--enable-reference-types",
|
||||
"--enable-nontrapping-float-to-int",
|
||||
"--strip-debug",
|
||||
"--strip-producers",
|
||||
]
|
||||
Loading…
Reference in a new issue