Git Product home page Git Product logo

Comments (3)

powturbo avatar powturbo commented on June 18, 2024

Integer Compression is highly depending on the distribution of the data.
Simply start icapp, it prints the best functions for your data.

One of the efficient ways to compress ML models is quantization.
The quantized data can compressed with TurboPFor (just try icapp).
You can also try lossy floating point compression with TurboRazor "fprazor32"

If you don't need a fine grained direct but block based access, you can further compress the quantized data using an entry coder such "asymmetric Numeral Systems"
see my propositions here (user dnd)

from turbopfor-integer-compression.

patelprateek avatar patelprateek commented on June 18, 2024

can you point me to some example , it seems like icapp binary would need data in a specific format to ?

Regarding ml models : agreed , we do use quantization , but i am trying to compress some parameters that are learnt by non quantized models for storage and bandiwdth improvement , so trying approaches where we are able to efficiently compress this data : for example large emebedding tables from pre-trained models.
Hence i wanted to see

  1. if there are lossless floating point compressions in this library that works well for embedding of dimension ranging from 32 to 2048 floating point numbers
  2. Lossy compression where i am able to tune error rate (for not we use fp16, scalar 8 bit quantization , brain float 16) , so i would like to evaluate how the compression techniques here compare when it comes toa. specific modeling or indexing task

from turbopfor-integer-compression.

powturbo avatar powturbo commented on June 18, 2024

There is no specific format for icapp, just provide your data as raw or text (see Readme or the benchmarks in the issues).
For raw 16-bits floats or integers use "icapp file -Fs", for 32 bits use "icapp file" (32 bits is default), or "icapp file -Fu".
The data will be encoded using a block size of 128 (or 256 for avx2) floats/integers.
If yo have variable block size, then you must write your own application.
You can provide a sample and I'll check that for you.

You can also try the integer or quasi integer mode like in this benchmark.
For lossy compression check this

from turbopfor-integer-compression.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.