Comments (3)
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.
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
- 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
- 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.
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)
- Benchmark: TurboTranspose+iccodecs vs Quantile Compression
- Turbopfor 256 performs worse than Turbopfor 128 HOT 5
- macos 13.3.1 m1 build issue HOT 8
- D1 Differential Coding HOT 2
- Boundary check in idxqry.C HOT 3
- Benchmark: TurboPFor Integer Compression on APPLE M1
- Just some questions about TurboPFor Implementation HOT 3
- p4ddec32 HOT 1
- Cross-compiling for iOS HOT 1
- python support HOT 1
- negative ints? HOT 1
- Streaming Data HOT 3
- icapp I and J arguments HOT 1
- -E option HOT 2
- fpxenc8 error
- Is lzturbo dead?
- Messy project management, fixes randomly reverted HOT 10
- vlccomp32, vhicomp32 corrupt memory for small input buffers
- Fastest Integer Decompression Algorithms? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turbopfor-integer-compression.