@wahack/pi-coding-agent 15.11.7 → 15.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -4
- package/src/tiny/device.ts +15 -2
- package/src/tiny/dtype.ts +17 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@wahack/pi-coding-agent",
|
|
4
|
-
"version": "15.11.
|
|
4
|
+
"version": "15.11.8",
|
|
5
5
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -75,9 +75,7 @@
|
|
|
75
75
|
"turndown-plugin-gfm": "^1.0.2",
|
|
76
76
|
"zod": "^3.24.0"
|
|
77
77
|
},
|
|
78
|
-
"optionalDependencies": {
|
|
79
|
-
"@huggingface/transformers": "^4.2.0"
|
|
80
|
-
},
|
|
78
|
+
"optionalDependencies": {},
|
|
81
79
|
"devDependencies": {
|
|
82
80
|
"@types/bun": "^1.3.14"
|
|
83
81
|
},
|
package/src/tiny/device.ts
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import type { DeviceType } from "@huggingface/transformers";
|
|
2
1
|
import { $env } from "@oh-my-pi/pi-utils";
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
/** Device type for local tiny models (mirrors transformers.js DeviceType). */
|
|
4
|
+
export type TinyModelDevice =
|
|
5
|
+
| "auto"
|
|
6
|
+
| "gpu"
|
|
7
|
+
| "cpu"
|
|
8
|
+
| "wasm"
|
|
9
|
+
| "webgpu"
|
|
10
|
+
| "cuda"
|
|
11
|
+
| "dml"
|
|
12
|
+
| "coreml"
|
|
13
|
+
| "webnn"
|
|
14
|
+
| "webnn-npu"
|
|
15
|
+
| "webnn-gpu"
|
|
16
|
+
| "webnn-cpu";
|
|
17
|
+
import { $env } from "@oh-my-pi/pi-utils";
|
|
5
18
|
|
|
6
19
|
export interface TinyModelDevicePreference {
|
|
7
20
|
device: TinyModelDevice;
|
package/src/tiny/dtype.ts
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
import type { DataType } from "@huggingface/transformers";
|
|
2
1
|
import { $env } from "@oh-my-pi/pi-utils";
|
|
3
2
|
|
|
4
|
-
/** ONNX quantization / precision for local tiny models (transformers.js
|
|
5
|
-
export type TinyModelDtype =
|
|
3
|
+
/** ONNX quantization / precision for local tiny models (mirrors transformers.js DataType). */
|
|
4
|
+
export type TinyModelDtype =
|
|
5
|
+
| "auto"
|
|
6
|
+
| "fp32"
|
|
7
|
+
| "fp16"
|
|
8
|
+
| "q8"
|
|
9
|
+
| "int8"
|
|
10
|
+
| "uint8"
|
|
11
|
+
| "q4"
|
|
12
|
+
| "bnb4"
|
|
13
|
+
| "q4f16"
|
|
14
|
+
| "q2"
|
|
15
|
+
| "q2f16"
|
|
16
|
+
| "q1"
|
|
17
|
+
| "q1f16";
|
|
18
|
+
import { $env } from "@oh-my-pi/pi-utils";
|
|
19
|
+
|
|
6
20
|
|
|
7
21
|
const DTYPE_VALUES: Record<TinyModelDtype, true> = {
|
|
8
22
|
auto: true,
|