mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 08:19:11 +02:00
72511f1bd7
LyCORIS extraction with use_sparse_bias saves bias_indices/bias_values/ bias_size per module: the sparse weight-shaped remainder of the SVD extraction, named bias for historical reasons. The keys were dropped by both loader paths, so extracted adapters applied without the residual correction; the dense-bias branch in finalize_updown that consumes it was unreachable. - rebuild the COO tensor in NetworkModule.__init__ (int16 indices cast to long), shared by the native and generic loaders; kept sparse so the dense += sparse in finalize_updown materializes per module at apply instead of near-model-size densification at load - accept the triplet suffixes in LORA_SUFFIXES; fused targets skip with the weight-shaped-bias warning - cover an extraction-faithful numeric round-trip and the fused skip in the offline suite