Skip to main content

parse_rwkv7_compression_backend_method

Function parse_rwkv7_compression_backend_method 

Source
pub fn parse_rwkv7_compression_backend_method(
    method: Option<&str>,
    coder: CoderType,
    options: &CompressionBackendShorthandOptions,
) -> SpecResult<CompressionBackend>
Expand description

Parse RWKV7 compression backend shorthand into a canonical backend configuration.

When method is empty or absent, this falls back to CompressionBackendShorthandOptions::default_rwkv_model_path. If the backend-rwkv feature is disabled, this returns a spec error.