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§
- Compression
Stats - Statistics from a compression operation.
- Compressor
- Main compressor/decompressor that combines RWKV7 inference with entropy coding.
- Header
- Header structure for compressed data files.
- Online
Config - Configuration for online RWKV model instantiation and adaptation.
- Runtime
Snapshot - Snapshot of mutable runtime state used for reversible scoring.
Enums§
- Method
Spec - Parsed RWKV method specification.
- Online
Train Mode - 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.