Theme

COW

A wide cream room seen from the front. A tall stack of large plain binders fills the left wall, one small black strongbox stands on the right holding the same material, and a single cream page held between them on a teal stand shows the two match.

COW stands for Compressed Open Weights. COW stores the large weight files of language models in less space and gives back the exact same bytes whenever you ask, entirely on your own computer.

Get COW on GitHub Ask About a Commercial License See How Much Space It Saves

What COW Is

A computer that keeps several language models, their fine-tuned versions, and smaller versions of each fills its disk quickly, and much of that space holds bytes that repeat or carry little information. COW is a Rust library and a command-line tool, cowctl, that keeps those files in a compact store and returns every file byte for byte.

Result
The same bytes you stored, checked every time
Where
On your own computer, with no network connection
Any File
Model weight files are packed tensor by tensor; every other file is stored whole

What COW Does

  • Gives Back Exactly What Went In

    Every file COW returns is identical to the file that was stored, down to the last byte. COW records a fingerprint of each whole file when the file is stored and checks the fingerprint every time the file is restored or sent on.

  • Stays on Your Computer

    A COW store is a folder of plain files. COW opens no network connections, downloads nothing, and sends your model weights nowhere else.

  • Stops Instead of Guessing

    A missing piece, a damaged piece, or a fingerprint that does not match is reported as an error. COW never quietly hands back something that is almost right, and anything it writes is checked before it is put in place.

  • Stores Repeats Only Once

    Models that start from the same base often share most of their weights. COW finds the identical pieces across files and across models and keeps one copy of each, so a family of close relatives costs far less than the sum of its members.

  • Straight to the Graphics Card

    An inference engine can read weights straight out of the store, one piece at a time, without first unpacking a second full copy onto the disk. A plugin for vLLM is included.

  • Unpack, Change, and Store Again

    Take a model out of the store to work on, then put it back. If nothing changed, storing it again is nearly instant. If something changed, only the changes are stored, and COW will only delete the working copy once it has proved the store holds every byte.

How Much Space COW Saves

The saving depends on what the files hold, so treat these numbers as a guide and not a promise. Each one is the share of disk space freed, measured on real weight files that were restored and compared byte for byte with the originals.

BF16 Weights
About 34%. What remains is close to the least space this format can take without losing anything.
FP8 Weights
About 17% to 18%
F32 Checkpoints
About 19%
Packed FP4 and GGUF Files
About 3% to 5%, because those files are already dense
A Mixed Collection
About 29% less space overall for one collection of several hundred gigabytes in which many models share weights

Weights that two files have in common are stored once. A collection full of close relatives, such as fine-tunes of one base model, saves more than these single-file figures, and a collection with nothing in common saves about what each file would on its own.

How COW Works

Split
A weight file is split into its header and each of its tensors, and large tensors are cut into pieces.
Match
A piece that is already in the store is not written again, across files and across models.
Pack
Numbers made of several bytes are separated by kind, so the parts that repeat a lot shrink while the parts that look random are left alone.
Check
Every piece and every whole file is compared with the fingerprint recorded when it was stored, before any byte is handed back.

What COW Needs

Computer
A computer running Linux, on an x86-64 or an ARM64 processor
Installation
Build from source with a current stable Rust toolchain. The cowctl program and the cow library come from the same build.
Direct to the Graphics Card
The plugin for vLLM is plain Python and loads weights from the store with --load-format cow. Other engines can read the same stream from Rust.

Licensing

COW is dual-licensed. You may use COW under the GNU Affero General Public License, version 3 only (AGPL-3.0-only), or under a commercial license from Chiron Courseworks.

Frequently Asked Questions

Can I use COW without paying?
Yes. The AGPL-3.0-only license lets you use, study, change, and share COW. In return, if you distribute COW, or let others use a modified version over a network, you must make the corresponding source code available under the same license.
When do I need a commercial license for COW?
When those conditions do not work for you: for example, building COW into a product or service whose source you will not release, or working in an organization whose policies do not permit AGPL software. A commercial license releases you from the AGPL obligations. Contact us to ask for one.
Is anything lost when COW stores a file?
No. COW is lossless. Every file that comes back is compared with the fingerprint of the whole file recorded when the file was stored, and a file that does not match is reported as an error and never handed back.
Does COW delete my original files?
No. Storing a file only reads the original. You delete the originals yourself, when you are satisfied with the store.
How do I get COW?
COW is released on GitHub at github.com/mdmurphy822/COW, the official source for the code. For a commercial license, contact us.
Does COW need an internet connection?
No. COW opens no network connections and downloads nothing.

Get COW on GitHub Ask About a Commercial License