Module rwkvzip

Module rwkvzip 

Source
Expand description

RWKV7-based rate/compression backend.

Re-exports§

pub use crate::coders;
pub use crate::coders::CoderType;
pub use rwkv7::Config;
pub use rwkv7::Model;
pub use rwkv7::ScratchBuffers;
pub use rwkv7::State;

Modules§

rwkv7
RWKV7 model core (weights/state/kernels). High-performance RWKV7 inference kernel.

Structs§

CompressionStats
Statistics from a compression operation.
Compressor
Main compressor/decompressor that combines RWKV7 inference with entropy coding.
Header
Header structure for compressed data files.
OnlineConfig
Configuration for online RWKV model instantiation and adaptation.
RuntimeSnapshot
Snapshot of mutable runtime state used for reversible scoring.

Enums§

MethodSpec
Parsed RWKV method specification.
OnlineTrainMode
Online adaptation mode for RWKV output-bias updates.

Constants§

MAGIC
File format magic number: “GPTZ” in little-endian (0x47505A54 as ASCII). Used to identify valid rwkvzip compressed files.
VERSION
File format version. Increment on breaking changes to ensure compatibility.
VOCAB_SIZE
Vocabulary size for byte-level compression. Each byte (0-255) is treated as a separate symbol.

Functions§

compress_with_stats
Compress data and return both the compressed output and statistics.
crc32
Compute CRC32 checksum for data integrity verification.
parse_method_spec
Parse a method string into a concrete RWKV method specification.