ManniX-ITA commited on
Commit
f0fcdab
·
verified ·
1 Parent(s): 8a13ad3

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +76 -0
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - llamafile
5
+ - llama.cpp
6
+ - gguf
7
+ - inference-engine
8
+ - cuda
9
+ - opencoti
10
+ ---
11
+
12
+ # opencoti-llamafile
13
+
14
+ Self-contained single-file inference engine from the
15
+ [opencoti](https://github.com/mann1x/opencoti) project — a
16
+ [Mozilla-Ocho llamafile](https://github.com/Mozilla-Ocho/llamafile)
17
+ 0.10.3 base carrying the opencoti patch series: advanced KV
18
+ residency/quantization (PolyKV/TurboQuant/TCQ), rolling-KV window with
19
+ host-RAM spill, DCA long-context extension, MTP speculative decode,
20
+ sparse attention, RYS layer duplication, and a runtime
21
+ introspection/control API.
22
+
23
+ **Start with [USAGE.md](./USAGE.md)** — it explains exactly how this
24
+ engine diverges from upstream llamafile, every added feature, its
25
+ flags, defaults, limitations, and which features compose.
26
+
27
+ This repo hosts the packaged release artifacts (they exceed GitHub's
28
+ 2 GiB release-asset cap) plus the full patch series under
29
+ [`patches/`](./patches) and the project documentation under
30
+ [`docs/`](./docs). Release notes and per-release `SHA256SUMS` live
31
+ under [`releases/`](./releases) and are mirrored on the corresponding
32
+ GitHub release at
33
+ [mann1x/opencoti](https://github.com/mann1x/opencoti/releases).
34
+
35
+ ## Artifacts
36
+
37
+ | Artifact | Platform | GPU |
38
+ |---|---|---|
39
+ | `opencoti-llamafile-<ver>-<tag>-x86_64.llamafile` | x86_64 + aarch64 (fat APE; Linux/macOS/Windows/BSD) | CUDA 13.2, x86_64-linux (sm_75/80/86/89/90/120f) |
40
+ | `opencoti-llamafile-<ver>-<tag>-aarch64.llamafile` *(planned)* | same fat APE | CUDA 13.2, sbsa/aarch64 (sm_110f Jetson Thor, sm_121a DGX Spark GB10) |
41
+
42
+ The APE host binary runs natively on both x86_64 and aarch64; the two
43
+ artifacts differ only in the embedded `ggml-cuda.so`. On a platform
44
+ with no matching DSO, inference falls back to CPU.
45
+
46
+ ## Usage
47
+
48
+ ```bash
49
+ chmod +x opencoti-llamafile-*.llamafile
50
+ # server mode
51
+ sh ./opencoti-llamafile-*.llamafile --server --port 8080 \
52
+ -m <model>.gguf -ngl 99 --flash-attn on
53
+ # without --server it starts the interactive chat CLI
54
+ ```
55
+
56
+ On the first GPU run the embedded CUDA DSO self-extracts to
57
+ `~/.llamafile/v/<ver>/`. `--version` prints the opencoti version
58
+ string; `GET /props` exposes an `opencoti` introspection section at
59
+ runtime (see USAGE.md §introspection).
60
+
61
+ ## Verification
62
+
63
+ Each artifact ships with a `MANIFEST.json` recording the artifact
64
+ sha256, versionString, gitCommit, the full patch list, and the sha256
65
+ of every embedded backend DSO; `releases/<tag>/SHA256SUMS` is the
66
+ committed contract (CI verifies this repo's LFS blobs against it on
67
+ every release tag). Verify the embedded DSO without running:
68
+
69
+ ```bash
70
+ unzip -p opencoti-llamafile-*.llamafile ggml-cuda.so | sha256sum
71
+ ```
72
+
73
+ ## License
74
+
75
+ Apache-2.0 (llamafile) + MIT (llama.cpp and bundled projects).
76
+ opencoti patches and packaging are MIT.