mirror of
https://github.com/huggingface/candle.git
synced 2025-06-14 18:06:36 +00:00

* Add stable diffusion 3 example Add get_qkv_linear to handle different dimensionality in linears Add stable diffusion 3 example Add use_quant_conv and use_post_quant_conv for vae in stable diffusion adapt existing AutoEncoderKLConfig to the change add forward_until_encoder_layer to ClipTextTransformer rename sd3 config to sd3_medium in mmdit; minor clean-up Enable flash-attn for mmdit impl when the feature is enabled. Add sd3 example codebase add document crediting references pass the cargo fmt test pass the clippy test * fix typos * expose cfg_scale and time_shift as options * Replace the sample image with JPG version. Change image output format accordingly. * make meaningful error messages * remove the tail-end assignment in sd3_vae_vb_rename * remove the CUDA requirement * use default_value in clap args * add use_flash_attn to turn on/off flash-attn for MMDiT at runtime * resolve clippy errors and warnings * use default_value_t * Pin the web-sys dependency. * Clippy fix. --------- Co-authored-by: Laurent <laurent.mazare@gmail.com>
58 lines
1.2 KiB
TOML
58 lines
1.2 KiB
TOML
[package]
|
|
name = "candle-wasm-example-yolo"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description.workspace = true
|
|
repository.workspace = true
|
|
keywords.workspace = true
|
|
categories.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
candle = { workspace = true }
|
|
candle-nn = { workspace = true }
|
|
num-traits = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
image = { workspace = true }
|
|
|
|
# App crates.
|
|
anyhow = { workspace = true }
|
|
byteorder = { workspace = true }
|
|
log = { workspace = true }
|
|
rand = { workspace = true }
|
|
safetensors = { workspace = true }
|
|
|
|
# Wasm specific crates.
|
|
console_error_panic_hook = "0.1.7"
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
gloo = "0.11"
|
|
js-sys = "0.3.64"
|
|
wasm-bindgen = "0.2.87"
|
|
wasm-bindgen-futures = "0.4.37"
|
|
wasm-logger = "0.2"
|
|
yew-agent = "0.2.0"
|
|
yew = { version = "0.20.0", features = ["csr"] }
|
|
|
|
[dependencies.web-sys]
|
|
version = "=0.3.70"
|
|
features = [
|
|
'Blob',
|
|
'CanvasRenderingContext2d',
|
|
'Document',
|
|
'Element',
|
|
'HtmlElement',
|
|
'HtmlCanvasElement',
|
|
'HtmlImageElement',
|
|
'ImageData',
|
|
'Node',
|
|
'Window',
|
|
'Request',
|
|
'RequestCache',
|
|
'RequestInit',
|
|
'RequestMode',
|
|
'Response',
|
|
'Performance',
|
|
'TextMetrics',
|
|
]
|