Create README.md
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889## Hi there 👋
<div align="center">
<img src="https://raw.githubusercontent.com/Lobtensor/.github/main/profile/lobtensor.svg" width="112" height="112" alt="Lobtensor logo">
# Lobtensor
**Tensor-native version control for AI models.**
[](https://github.com/Lobtensor/lobcli)[](https://github.com/Lobtensor/lobcli/blob/main/LICENSE)[](https://github.com/Lobtensor/lobcli/blob/main/Cargo.toml)[](https://github.com/huggingface/safetensors)[](https://github.com/Lobtensor/lobcli)
</div>
---
## What is Lobtensor?
Lobtensor (`lob`) is version control built for tensors. Git manages source code;Lobtensor manages model weights, tensor metadata and tensor transformations; and**Tensormorph** visualizes, inspects and edits them.
```textGit manages source codeLobtensor manages tensors, model weights, tensor metadata, transformationsTensormorph visualizes, edits and understands them```
A Git user should be able to manage the history of a multi-terabyte model with Git'sconceptual simplicity, without the system pretending tensors are just large files.The verbs are the same. The atom is different: the unit of change is the **tensor** andits **8 MiB chunks**, not the file.
## How it differs from Git and Git LFS
| | Git / Git LFS | Lobtensor ||---|---|---|| Unit of change | a file | a tensor, split into 8 MiB chunks || Identity | hash of file bytes | BLAKE3 over canonical CBOR, in a content-addressed Tensor Merkle DAG || Diff | bytes or "binary files differ" | numerical: `max\|Δ\|`, cosine, tolerance-aware || Cost of a commit | the whole changed file | only the chunks that changed || Round-trip | byte copy of the file | every tensor's canonical bytes reproduced bit-for-bit || Compute | — | CPU is always complete; GPUs (CUDA, wgpu, Metal) only accelerate |
## A first session
```bashlob initlob import models/model.safetensorslob statuslob commit -m "import checkpoint"lob loglob export HEAD --format safetensors -o out/lob fsck```
`out/model.safetensors` reproduces every tensor bit-for-bit. Beyond this path, `lob`has branches and merge, numerical `diff`, tensor deltas, remotes (`file://`, S3 layoutand its own `lob://` protocol), SSH signing, policy checks, Git pinning and hooks, and alocal API server.
## Principles
- **Bit-exact or it is a bug.** Export reproduces every tensor's canonical bytes.- **Stable identity.** Anything that decides an object ID is specified, independently written and pinned by golden vectors.- **Cost scales with change.** Fine-tune one layer, store one layer's chunks.- **CPU complete, GPU optional.** Every operation runs on CPU; accelerators only make it faster.- **One container format first.** SafeTensors (single, sharded and indexed) is the tracked format today; other adapters arrive by design decision, not by accident.
## Status
Working, pre-1.0. `lob` round-trips real SafeTensors checkpoints bit-exact, and theon-disk format freeze (v1) is the next milestone. Expect formats to change until then.
## Repositories
| Repository | What it is ||---|---|| [lobcli](https://github.com/Lobtensor/lobcli) | the `lob` command-line tool and its Rust crates |
<div align="center"><sub>Part of the Tensormorph ecosystem · Apache-2.0</sub></div>README.mdAdded+89