craftslab commited on
Commit
5dcc0eb
·
verified ·
1 Parent(s): 9b793d4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -24
README.md CHANGED
@@ -71,21 +71,21 @@ Load the adapter on the pinned MiniCPM5-2B revision with `peft` + SemIf / AFM-D
71
 
72
  ## How to use
73
 
74
- Load through **AFM-D Python serve**, **Aria Engine**, or **[Ollaya](https://ollaya.dev)** (merged GGUF).
75
 
76
- ### AFM-D Python (`afm_d.dd.serve`)
77
 
78
- From the [model](https://github.com/ariacompute/model) tree (`afm-d/`), with SemIf + `peft` in the venv:
79
 
80
  ```bash
81
- python -m afm_d.dd.serve \
82
- --model openbmb/MiniCPM5-2B \
83
- --revision 12a3808a956f869c767195e9266b59c4d21d92e2 \
84
- --checkpoint /path/to/afm-dd \
85
- --port 8011
86
  ```
87
 
88
- **System One** (`POST /v1/systemone`, default `http://127.0.0.1:8011`):
89
 
90
  ```bash
91
  curl -s http://127.0.0.1:8011/v1/systemone \
@@ -107,22 +107,10 @@ curl -s http://127.0.0.1:8011/v1/systemone \
107
 
108
  | `type` | `criteria` |
109
  | --- | --- |
110
- | `choice` | object: option name → description (2–16 options) |
111
  | `score` | array of 2–10 ordered level strings |
112
  | `noul` | object with `true` / `false` (optional) |
113
 
114
- ### Aria Engine
115
-
116
- Native AFM runtime: CLI, `POST /v1/systemone`, FFI, and language SDKs. Docs: [engine README](https://github.com/ariacompute/engine). Decoder System One default port **8011**.
117
-
118
- ```bash
119
- aria-engine setup
120
- aria-engine download afm-dd # → ~/.ariacompute/models/afm-dd
121
-
122
- aria-engine decide --track decoder --model-name afm-dd --file record.json
123
- aria-engine serve --track decoder --model-name afm-dd --bind 127.0.0.1:8011
124
- ```
125
-
126
  **Python SDK** (`pip install aria-engine`; needs `libaria-engine_ffi` or `ARIA_FFI_LIB`):
127
 
128
  ```python
@@ -150,19 +138,25 @@ Also: TypeScript `@ariacompute/engine-ts`, Rust `ariacompute-engine`, Go / Flutt
150
 
151
  ### Ollaya
152
 
153
- [Ollaya](https://ollaya.dev) pulls the **merged Q8_0 GGUF** (`afm-dd:latest`) and serves TypeSafe-compatible `/v1/systemone`. Use the **AFM-D-enabled** builds from [ariacompute/ollaya releases](https://github.com/ariacompute/ollaya/releases). This Hub repo must be **public** and contain `gguf/afm-dd-2b-Q8_0.gguf` at a pinned commit. Weights stay on Hugging Face / ModelScope (Ollaya does not re-host).
154
 
155
  ```bash
 
156
  curl -fsSL https://raw.githubusercontent.com/ariacompute/ollaya/main/scripts/install.sh \
157
  | OLLAYA_REPO=ariacompute/ollaya sh
 
 
 
158
 
159
  # weights: HF (ariacompute/afm-dd) or ModelScope (AriaCompute/afm-dd)
160
- # OLLAYA_HUB=huggingface|modelscope|auto
161
  ollaya pull afm-dd
162
  ollaya run afm-dd --preset triage \
163
  "Third time this year you've double-charged me. Refund it today or I'm cancelling."
164
  ```
165
 
 
 
166
  HTTP (daemon default `http://localhost:11435`):
167
 
168
  ```bash
 
71
 
72
  ## How to use
73
 
74
+ Load through **Aria Engine** (native AFM runtime) or **[Ollaya](https://ollaya.dev)** (Ollama-style local decision daemon).
75
 
76
+ ### Aria Engine
77
 
78
+ Native AFM runtime: CLI, `POST /v1/systemone`, FFI, and language SDKs. Docs: [engine README](https://github.com/ariacompute/engine). Decoder System One default port **8011**.
79
 
80
  ```bash
81
+ aria-engine setup
82
+ aria-engine download afm-dd # → ~/.ariacompute/models/afm-dd
83
+
84
+ aria-engine decide --track decoder --model-name afm-dd --file record.json
85
+ aria-engine serve --track decoder --model-name afm-dd --bind 127.0.0.1:8011
86
  ```
87
 
88
+ **System One** body (`POST /v1/systemone` or `decide`):
89
 
90
  ```bash
91
  curl -s http://127.0.0.1:8011/v1/systemone \
 
107
 
108
  | `type` | `criteria` |
109
  | --- | --- |
110
+ | `choice` | object: option name → description |
111
  | `score` | array of 2–10 ordered level strings |
112
  | `noul` | object with `true` / `false` (optional) |
113
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  **Python SDK** (`pip install aria-engine`; needs `libaria-engine_ffi` or `ARIA_FFI_LIB`):
115
 
116
  ```python
 
138
 
139
  ### Ollaya
140
 
141
+ [Ollaya](https://ollaya.dev) pulls AFM-D by name and serves TypeSafe-compatible `/v1/systemone`. Use the **AFM-D-enabled** builds from [ariacompute/ollaya releases](https://github.com/ariacompute/ollaya/releases) (not the default `ollaya-dev/ollaya` channel). Weights stay on Hugging Face / ModelScope (Ollaya does not re-host).
142
 
143
  ```bash
144
+ # install from https://github.com/ariacompute/ollaya/releases (latest AFM-D build)
145
  curl -fsSL https://raw.githubusercontent.com/ariacompute/ollaya/main/scripts/install.sh \
146
  | OLLAYA_REPO=ariacompute/ollaya sh
147
+ # pin a release: OLLAYA_REPO=ariacompute/ollaya OLLAYA_VERSION=0.7.5+afm-d.1.0.0
148
+ # Windows (PowerShell):
149
+ # $env:OLLAYA_REPO='ariacompute/ollaya'; irm https://raw.githubusercontent.com/ariacompute/ollaya/main/scripts/install.ps1 | iex
150
 
151
  # weights: HF (ariacompute/afm-dd) or ModelScope (AriaCompute/afm-dd)
152
+ # OLLAYA_HUB=huggingface|modelscope|auto (auto → ModelScope when LANG looks Chinese)
153
  ollaya pull afm-dd
154
  ollaya run afm-dd --preset triage \
155
  "Third time this year you've double-charged me. Refund it today or I'm cancelling."
156
  ```
157
 
158
+ Or download a platform asset from the [releases page](https://github.com/ariacompute/ollaya/releases) (e.g. `ollaya-linux-amd64.tar.zst`, `ollaya-darwin-arm64.tgz`, `ollaya-windows-amd64.zip`), unpack, put `ollaya` on `PATH`, then `pull` / `run` as above.
159
+
160
  HTTP (daemon default `http://localhost:11435`):
161
 
162
  ```bash