ainouche-abderahmane commited on
Commit
056e2b0
·
verified ·
1 Parent(s): ff109dd

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +14 -14
  2. manifest.json +2 -2
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- library_name: mimirai
3
  license: other
4
  license_name: mythologic-community-license
5
  license_link: LICENSE
@@ -63,15 +63,15 @@ tool calls, verifying claims.
63
 
64
  ## Installation
65
 
66
- The `mimirai` package is launched and is the way to use this model:
67
 
68
  ```bash
69
- pip install "mimirai[local]" # CPU engine
70
- pip install "mimirai[local-gpu]" # CUDA engine
71
- pip install mimirai # data models and HTTP client only
72
  ```
73
 
74
- Python 3.11 or later. `mimirai` is the package, `mimir` the import.
75
 
76
  ## Quickstart
77
 
@@ -119,18 +119,18 @@ state — and `decide_many` batches many decisions while every method has an asy
119
 
120
  ## Load paths
121
 
122
- **This repo holds all three load paths.** The release root is the `mimirai` contract
123
  (ONNX graphs plus certified policy); the same weights ship as plain `transformers` under
124
  a subfolder, and only what you load is downloaded:
125
 
126
  | Path | Format | Best at |
127
  |---|---|---|
128
- | **`Mythologic/MIMIR-1`** (this repo root) | ONNX graphs + certified policy via `mimirai` | routing, gating, verification |
129
  | **`Mythologic/MIMIR-1`, `subfolder="transformers"`** | same weights for plain `transformers` | research, custom runtimes |
130
 
131
  ### Package mode (recommended)
132
 
133
- `mimirai` handles chunking, typed readouts, evidence, the distance gate and the
134
  certificate in one call, and additionally serves them over HTTP and MCP:
135
 
136
  ```bash
@@ -144,7 +144,7 @@ the full API reference are in the package repository, with a docs site.
144
 
145
  ### Transformers mode
146
 
147
- With no `mimirai` install (tested `transformers==5.17`):
148
 
149
  ```python
150
  from transformers import AutoModel, AutoTokenizer
@@ -158,7 +158,7 @@ outputs.utilities # [4 depths, records, candidates]: every depth's readouts
158
  ```
159
 
160
  Load plus forward on pre-encoded batches only: text handling, calibration, the server
161
- and MCP stay in `mimirai`. The staged modelling code holds the inference-only head
162
  forward — no loss, no training machinery — the same computation the shipped `model.onnx`
163
  already carries.
164
 
@@ -277,7 +277,7 @@ shipped decision must match.
277
  | `transformers/config.json` | encoder and head shapes, `auto_map`, architectures |
278
  | `transformers/modeling_mimir.py`, `transformers/configuration_mimir.py` | the architecture, `transformers` and `torch` only |
279
  | `tokenizer.json` | the 50,368-entry vocabulary |
280
- | `config.json` | variants, limits, layout and graph contract for `mimirai` |
281
  | `policy/fp32.json` (+ `.npz`) | the certified selective thresholds |
282
  | `equivalence/` | 200 records with inputs, so any CPU replays the graph |
283
  | `manifest.json` | SHA-256 of every file above |
@@ -286,8 +286,8 @@ No optimiser state, no scheduler state, no RNG. Training cannot be resumed from
286
 
287
  ## Links
288
 
289
- - Package: `mimirai` on PyPI (`https://pypi.org/project/mimirai/`), `from mimir import Mimir`
290
- - Code: [abderahmane-ai/mimirai](https://github.com/abderahmane-ai/mimirai) on GitHub
291
 
292
  ## Licence
293
 
 
1
  ---
2
+ library_name: mimir
3
  license: other
4
  license_name: mythologic-community-license
5
  license_link: LICENSE
 
63
 
64
  ## Installation
65
 
66
+ The `mimir` package is launched and is the way to use this model:
67
 
68
  ```bash
69
+ pip install "mimir[local]" # CPU engine
70
+ pip install "mimir[local-gpu]" # CUDA engine
71
+ pip install mimir # data models and HTTP client only
72
  ```
73
 
74
+ Python 3.11 or later. The distribution and the import are both `mimir`.
75
 
76
  ## Quickstart
77
 
 
119
 
120
  ## Load paths
121
 
122
+ **This repo holds all three load paths.** The release root is the `mimir` contract
123
  (ONNX graphs plus certified policy); the same weights ship as plain `transformers` under
124
  a subfolder, and only what you load is downloaded:
125
 
126
  | Path | Format | Best at |
127
  |---|---|---|
128
+ | **`Mythologic/MIMIR-1`** (this repo root) | ONNX graphs + certified policy via `mimir` | routing, gating, verification |
129
  | **`Mythologic/MIMIR-1`, `subfolder="transformers"`** | same weights for plain `transformers` | research, custom runtimes |
130
 
131
  ### Package mode (recommended)
132
 
133
+ `mimir` handles chunking, typed readouts, evidence, the distance gate and the
134
  certificate in one call, and additionally serves them over HTTP and MCP:
135
 
136
  ```bash
 
144
 
145
  ### Transformers mode
146
 
147
+ With no `mimir` install (tested `transformers==5.17`):
148
 
149
  ```python
150
  from transformers import AutoModel, AutoTokenizer
 
158
  ```
159
 
160
  Load plus forward on pre-encoded batches only: text handling, calibration, the server
161
+ and MCP stay in `mimir`. The staged modelling code holds the inference-only head
162
  forward — no loss, no training machinery — the same computation the shipped `model.onnx`
163
  already carries.
164
 
 
277
  | `transformers/config.json` | encoder and head shapes, `auto_map`, architectures |
278
  | `transformers/modeling_mimir.py`, `transformers/configuration_mimir.py` | the architecture, `transformers` and `torch` only |
279
  | `tokenizer.json` | the 50,368-entry vocabulary |
280
+ | `config.json` | variants, limits, layout and graph contract for `mimir` |
281
  | `policy/fp32.json` (+ `.npz`) | the certified selective thresholds |
282
  | `equivalence/` | 200 records with inputs, so any CPU replays the graph |
283
  | `manifest.json` | SHA-256 of every file above |
 
286
 
287
  ## Links
288
 
289
+ - Package: `mimir` on PyPI (`https://pypi.org/project/mimir/`), `from mimir import Mimir`
290
+ - Code: [abderahmane-ai/mimir](https://github.com/abderahmane-ai/mimir) on GitHub
291
 
292
  ## Licence
293
 
manifest.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "format_version": 1,
3
  "files": {
4
- "README.md": "750154de4a18eb8fe5d6ed9477df66a54370e8bf9bb3f3ff2897018c856e1045",
5
  "config.json": "10cbc7c171d2ce17fcf214f8ba31e08a8a8f68ea422e7bb92930c719b30c1ce4",
6
  "equivalence/expected.npz": "8317cc5b1e8c1e7168b991fdd030ea7e1eb45fbbbbd7922a07d302876bd67118",
7
  "equivalence/inputs.npz": "53777dff2852935d1009f556834f0607f1a25d9775c215632a13bd544300b29c",
@@ -21,6 +21,6 @@
21
  "transformers/tokenizer.json": "bc2788d5ddc9e2ced5d7a6aa695b30bb0c56751e60fd65ac595b16b9f0784812"
22
  },
23
  "loadable_by": {
24
- "mimirai": ">=1,<2"
25
  }
26
  }
 
1
  {
2
  "format_version": 1,
3
  "files": {
4
+ "README.md": "3520fdf73a5c2c299b1d1d57d98996c7f84f7ac108e4163ae0a869ae807816b1",
5
  "config.json": "10cbc7c171d2ce17fcf214f8ba31e08a8a8f68ea422e7bb92930c719b30c1ce4",
6
  "equivalence/expected.npz": "8317cc5b1e8c1e7168b991fdd030ea7e1eb45fbbbbd7922a07d302876bd67118",
7
  "equivalence/inputs.npz": "53777dff2852935d1009f556834f0607f1a25d9775c215632a13bd544300b29c",
 
21
  "transformers/tokenizer.json": "bc2788d5ddc9e2ced5d7a6aa695b30bb0c56751e60fd65ac595b16b9f0784812"
22
  },
23
  "loadable_by": {
24
+ "mimir": ">=1,<2"
25
  }
26
  }