Spaces:
Sleeping
Sleeping
Demo the lossless codec (compress): 79%/88% fewer, lossless, fact kept — replaces the shrink-allocator demo
Browse files
README.md
CHANGED
|
@@ -1,19 +1,22 @@
|
|
| 1 |
---
|
| 2 |
title: Foveance
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: indigo
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
app_file: app.py
|
| 8 |
pinned: true
|
| 9 |
license: apache-2.0
|
| 10 |
-
short_description:
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# Foveance —
|
| 14 |
|
| 15 |
-
Interactive demo of [Foveance](https://github.com/aimaghsoodi/foveance): cut
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
`pip install foveance`
|
|
|
|
| 1 |
---
|
| 2 |
title: Foveance
|
| 3 |
+
emoji: 🗜️
|
| 4 |
colorFrom: indigo
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
app_file: app.py
|
| 8 |
pinned: true
|
| 9 |
license: apache-2.0
|
| 10 |
+
short_description: Lossless token codec for LLM context, up to 82% fewer
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Foveance — a lossless token codec for LLM context, live
|
| 14 |
|
| 15 |
+
Interactive demo of [Foveance](https://github.com/aimaghsoodi/foveance): cut LLM input tokens up to
|
| 16 |
+
**82% — losslessly**. Agent context is full of repetition (the same listings, tool outputs and stack
|
| 17 |
+
traces on every turn); like `gzip` finds repeated bytes, Foveance finds text that already appeared
|
| 18 |
+
and replaces it with a compact back-reference, removing tokens without removing information. Nothing
|
| 19 |
+
is summarised or dropped — every fact survives (`unpack(pack(x)) == x`). Paste a `messages` list and
|
| 20 |
+
watch it compress. Runs offline — no API key, no model call.
|
| 21 |
|
| 22 |
+
`pip install foveance` · `foveance wrap --codec --agentic-codec claude`
|