Skip to content

Parmar

Parmar is an AI pre-filter designed to optimize LZMA data compression by utilizing BPE tokenization.

Freemium · GitHub (open-source)

720p. 480p is half that. Minimum 5 cents a video.
Ten minutes of talking video costs $2.
We run open models on our own GPUs. When our cost per minute falls, so does the price.
Make a photo talkDevelopers: there is an API

What is Parmar?

Parmar is a subword-tokenization pre-filter tool developed by shallowbyte that enables researchers, developers, and data scientists to improve the efficiency of byte-level data compression. It functions as an offline research harness to test the effectiveness of using Byte Pair Encoding (BPE) tokenization as a pre-filter for standard byte-level compression algorithms like LZMA, xz, zstd, gzip, and bzip2. The tool's pipeline tokenizes text using tiktoken, packs the resulting token IDs, and then streams this processed data directly into a chosen compressor, often leading to both smaller file sizes and faster compression speeds.

Key Features of Parmar

Parmar integrates several technical capabilities to achieve its compression optimization goals, focusing on pre-processing and rigorous evaluation.

  • BPE Tokenization Pre-filter: Utilizes tiktoken for subword tokenization, a technique derived from large language models, to pre-process text.
  • LZMA Data Compression Optimization: Specifically designed to enhance the performance of LZMA and other byte-level compressors.
  • Simultaneous Size and Speed Improvements: Achieves both smaller compressed files and faster compression times by reducing input data volume.
  • Streaming Architecture: Processes data in chunks, preventing full materialization in memory for efficient handling of large datasets.
  • Comprehensive Benchmarking Harness: Includes a sophisticated system (matrix.py, run_cell.py, analyze.py) to evaluate performance across various parameters and compression backends.
  • Support for Multiple Compressors: Compatible with xz, zstd, gzip, and bzip2 as backend compression algorithms.
  • Security Transparency: Explicitly details its security posture as an offline research harness, noting the absence of authentication and encryption.

Who Should Use Parmar?

Parmar is primarily designed for technical users engaged in data compression research and development, offering tools for experimentation and performance analysis.

  • Researchers: For exploring the interaction of tokenization with various compression algorithms and evaluating novel compression strategies.
  • Developers: For implementing subword-tokenization pre-filtering for byte-level compressors in their applications.
  • Data Scientists: For improving compression ratios and speeds for text data, including source code, and benchmarking different configurations.
  • Benchmarking Specialists: For systematically testing tokenizer, packing, and compression backend configurations at scale.

How to Use Parmar

Parmar operates as a command-line research harness, requiring Python and access to its GitHub repository for setup and execution.

  1. Clone the GitHub repository: Obtain the source code from https://www.github.con/shallowbyte/parmar.
  2. Install dependencies: Ensure tiktoken and other required Python libraries are installed.
  3. Configure experiments: Modify matrix.py or similar scripts to define desired tokenizer, packing, and compression backend configurations.
  4. Run the benchmarking rig: Execute run_cell.py to perform compression tests across specified parameters.
  5. Analyze results: Utilize analyze.py to process and visualize the performance data, including compression ratios and speeds.
  6. Integrate pre-filtering: Adapt parmar_core.py or parmar.py to apply BPE tokenization as a pre-filter in custom compression pipelines.

Parmar Pricing & Plans

Parmar is an open-source project available on GitHub, making it free to use. The project explicitly states it is a 'personal research project, not a funded product,' indicating no commercial pricing tiers or subscription plans.

  • Freemium: Free to use, modify, and distribute under its open-source license.

Pros

  • Achieves simultaneous improvements in compression ratio (up to 9.6% smaller) and speed for many backend compressors.
  • Utilizes AI-driven BPE tokenization (tiktoken) as a pre-filter, a novel approach for byte-level compression.
  • Provides a robust and 'paranoid' benchmarking rig for systematic evaluation of compression strategies across 452 configurations.
  • Open-source and free to use, fostering community contributions and research.
  • Streaming architecture ensures efficient processing of large datasets without full in-memory materialization.
  • Compatible with multiple established byte-level compressors (xz, zstd, gzip, bzip2).

Cons

  • Primarily an offline research harness, not a hardened, production-ready archival format with built-in security features like authentication or encryption.
  • Requires technical expertise in Python, compression, and tokenization to set up and utilize effectively.
  • Performance gains are primarily observed for text-based data, with less applicability to arbitrary binary data.
  • As a pre-filter, it adds an additional processing step to the compression pipeline, potentially increasing overall complexity.
  • The project is a 'personal research project,' which may imply less formal support or long-term maintenance compared to commercial products.

Parmar vs Competitors

Parmar distinguishes itself by focusing on AI-driven pre-filtering for existing byte-level compressors, rather than being a standalone compression algorithm. Its competitive advantage lies in its research-oriented benchmarking rigor and its specific application of subword tokenization.

See every Parmar alternative, compared

Parmar

Freemium · GitHub (open-source)

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking