@infernetprotocol/cli 0.1.91 → 0.1.92
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/commands/house-models.js +1 -2
- package/commands/setup.js +2 -4
- package/commands/start.js +1 -3
- package/lib/house-models.js +8 -12
- package/package.json +9 -9
package/commands/house-models.js
CHANGED
|
@@ -36,8 +36,7 @@ Flags:
|
|
|
36
36
|
--help Show this help
|
|
37
37
|
|
|
38
38
|
Environment (beats config.json): INFERNET_HOUSE_MODELS=0,
|
|
39
|
-
INFERNET_UNCENSORED_MODELS=
|
|
40
|
-
INFERNET_HOUSE_MODELS_MAX_GB=<n>.
|
|
39
|
+
INFERNET_UNCENSORED_MODELS=0, INFERNET_HOUSE_MODELS_MAX_GB=<n>.
|
|
41
40
|
|
|
42
41
|
House models are ON by default. The daemon checks
|
|
43
42
|
https://infernetprotocol.com/house-models.json on start and every 6 hours,
|
package/commands/setup.js
CHANGED
|
@@ -50,8 +50,7 @@ Flags:
|
|
|
50
50
|
--no-abliterated Don't default to the abliterated (uncensored) model
|
|
51
51
|
when it fits; pick the largest stock Qwen instead.
|
|
52
52
|
--no-house-models Don't pull Infernet house models (saved to config).
|
|
53
|
-
--uncensored-models
|
|
54
|
-
--no-uncensored-models Skip uncensored house models (the default; saved to config).
|
|
53
|
+
--no-uncensored-models Skip uncensored house models only (saved to config).
|
|
55
54
|
--house-models-max-gb <n>
|
|
56
55
|
Cap the disk house models may use (saved to config).
|
|
57
56
|
--backend <kind> Pin engine backend (vllm | ollama | mojo | stub). Default: auto (prefers vLLM, falls back to Ollama).
|
|
@@ -862,7 +861,6 @@ export default async function setup(args) {
|
|
|
862
861
|
if (isProvider) {
|
|
863
862
|
const patch = {};
|
|
864
863
|
if (args.has("no-house-models")) patch.enabled = false;
|
|
865
|
-
if (args.has("uncensored-models")) patch.uncensored = true;
|
|
866
864
|
if (args.has("no-uncensored-models")) patch.uncensored = false;
|
|
867
865
|
const capArg = Number(args.get("house-models-max-gb"));
|
|
868
866
|
if (args.get("house-models-max-gb") !== undefined && Number.isFinite(capArg)) patch.maxDiskGb = capArg;
|
|
@@ -993,7 +991,7 @@ export default async function setup(args) {
|
|
|
993
991
|
ok(`house models: ON — this node will pull the models listed at ${hs.manifestUrl}`);
|
|
994
992
|
process.stdout.write(` that fit it (RAM, and always leaving 10% of the disk free, 10-50 GB${hs.maxDiskGb != null ? `, capped at ${hs.maxDiskGb} GB` : ""}),\n`);
|
|
995
993
|
process.stdout.write(` in the background, and serve them on Infernet. Uncensored house models: ${hs.uncensored ? "on" : "off"}.\n`);
|
|
996
|
-
process.stdout.write(" Opt out: infernet house-models off (uncensored
|
|
994
|
+
process.stdout.write(" Opt out: infernet house-models off (uncensored only: infernet house-models uncensored off)\n");
|
|
997
995
|
} else {
|
|
998
996
|
ok("house models: off (turn on with `infernet house-models on`)");
|
|
999
997
|
}
|
package/commands/start.js
CHANGED
|
@@ -87,8 +87,7 @@ Flags:
|
|
|
87
87
|
--once Run one heartbeat + one poll and exit (debug)
|
|
88
88
|
--no-house-models Don't pull Infernet house models for this run
|
|
89
89
|
(persist with \`infernet house-models off\`)
|
|
90
|
-
--uncensored-models
|
|
91
|
-
--no-uncensored-models Skip uncensored house models (the default)
|
|
90
|
+
--no-uncensored-models Skip uncensored house models only
|
|
92
91
|
--house-models-max-gb <n> Cap the disk house models may use
|
|
93
92
|
--help Show this help
|
|
94
93
|
|
|
@@ -173,7 +172,6 @@ function passthroughArgs(args) {
|
|
|
173
172
|
if (args.has('no-advertise')) passthrough.push('--no-advertise');
|
|
174
173
|
if (args.has('once')) passthrough.push('--once');
|
|
175
174
|
if (args.has('no-house-models')) passthrough.push('--no-house-models');
|
|
176
|
-
if (args.has('uncensored-models')) passthrough.push('--uncensored-models');
|
|
177
175
|
if (args.has('no-uncensored-models')) passthrough.push('--no-uncensored-models');
|
|
178
176
|
const houseCap = args.get('house-models-max-gb');
|
|
179
177
|
if (houseCap) passthrough.push('--house-models-max-gb', houseCap);
|
package/lib/house-models.js
CHANGED
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
* (10% of the disk, at least 10 GB, at most 50 GB), and house models as a
|
|
20
20
|
* whole stay under the operator's disk cap if one is set.
|
|
21
21
|
* - Opt out of everything with `--no-house-models`, `infernet house-models
|
|
22
|
-
* off` or INFERNET_HOUSE_MODELS=0
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* the daemon pulled.
|
|
22
|
+
* off` or INFERNET_HOUSE_MODELS=0; opt out of uncensored ones only with
|
|
23
|
+
* `--no-uncensored-models`, `infernet house-models uncensored off` or
|
|
24
|
+
* INFERNET_UNCENSORED_MODELS=0. Opting out removes what the daemon pulled.
|
|
26
25
|
*/
|
|
27
26
|
|
|
28
27
|
import fs from 'node:fs/promises';
|
|
@@ -160,17 +159,15 @@ export async function fetchManifest({ url = DEFAULT_MANIFEST_URL, fetchImpl = fe
|
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
/**
|
|
163
|
-
* Effective settings: CLI flags beat env, env beats config.json
|
|
164
|
-
* default ON
|
|
165
|
-
* (`--uncensored-models`, `infernet house-models uncensored on`,
|
|
166
|
-
* INFERNET_UNCENSORED_MODELS=1), so nobody serves them without choosing to.
|
|
162
|
+
* Effective settings: CLI flags beat env, env beats config.json, and the
|
|
163
|
+
* default is ON (house models and uncensored house models both).
|
|
167
164
|
*/
|
|
168
165
|
export function resolveSettings({ config = {}, env = process.env, args = null } = {}) {
|
|
169
166
|
const cfg = config?.houseModels ?? {};
|
|
170
167
|
let enabled = cfg.enabled !== false;
|
|
171
|
-
let uncensored = cfg.uncensored
|
|
168
|
+
let uncensored = cfg.uncensored !== false;
|
|
172
169
|
let maxDiskGb = Number.isFinite(Number(cfg.maxDiskGb)) && cfg.maxDiskGb !== null ? Number(cfg.maxDiskGb) : null;
|
|
173
|
-
const sources = { enabled: cfg.enabled === false ? 'config' : 'default', uncensored:
|
|
170
|
+
const sources = { enabled: cfg.enabled === false ? 'config' : 'default', uncensored: cfg.uncensored === false ? 'config' : 'default' };
|
|
174
171
|
|
|
175
172
|
if (isOff(env.INFERNET_HOUSE_MODELS)) { enabled = false; sources.enabled = 'env INFERNET_HOUSE_MODELS'; }
|
|
176
173
|
else if (isOn(env.INFERNET_HOUSE_MODELS)) { enabled = true; sources.enabled = 'env INFERNET_HOUSE_MODELS'; }
|
|
@@ -184,7 +181,6 @@ export function resolveSettings({ config = {}, env = process.env, args = null }
|
|
|
184
181
|
}
|
|
185
182
|
|
|
186
183
|
if (args?.has?.('no-house-models')) { enabled = false; sources.enabled = '--no-house-models'; }
|
|
187
|
-
if (args?.has?.('uncensored-models')) { uncensored = true; sources.uncensored = '--uncensored-models'; }
|
|
188
184
|
if (args?.has?.('no-uncensored-models')) { uncensored = false; sources.uncensored = '--no-uncensored-models'; }
|
|
189
185
|
const argCap = Number(args?.get?.('house-models-max-gb'));
|
|
190
186
|
if (Number.isFinite(argCap) && args?.get?.('house-models-max-gb') !== undefined) maxDiskGb = argCap;
|
|
@@ -614,6 +610,6 @@ export function formatStatus({ settings, state, installed = null }) {
|
|
|
614
610
|
lines.push(` last sync: ${ls.at}${ls.errors?.length ? `, ${ls.errors.length} error(s): ${ls.errors.map((e) => `${e.name ?? 'manifest'}: ${e.error}`).join('; ')}` : ''}`);
|
|
615
611
|
for (const s of ls.skipped ?? []) lines.push(` skipped ${s.name}: ${s.reason}`);
|
|
616
612
|
}
|
|
617
|
-
lines.push(' opt out: infernet house-models off | uncensored
|
|
613
|
+
lines.push(' opt out: infernet house-models off | uncensored only: infernet house-models uncensored off');
|
|
618
614
|
return lines.join('\n');
|
|
619
615
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infernetprotocol/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.92",
|
|
4
4
|
"description": "GPU-node CLI / daemon for the Infernet Protocol — register a GPU server with a Supabase control plane and start earning.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"ora": "^9.4.1",
|
|
33
33
|
"react": "^17.0.2",
|
|
34
34
|
"react-blessed": "^0.7.2",
|
|
35
|
-
"@infernetprotocol/auth": "0.1.
|
|
36
|
-
"@infernetprotocol/config": "0.1.
|
|
37
|
-
"@infernetprotocol/
|
|
38
|
-
"@infernetprotocol/
|
|
39
|
-
"@infernetprotocol/gpu": "0.1.
|
|
40
|
-
"@infernetprotocol/liquid-agent": "0.1.
|
|
41
|
-
"@infernetprotocol/
|
|
42
|
-
"@infernetprotocol/
|
|
35
|
+
"@infernetprotocol/auth": "0.1.92",
|
|
36
|
+
"@infernetprotocol/config": "0.1.92",
|
|
37
|
+
"@infernetprotocol/engine": "0.1.92",
|
|
38
|
+
"@infernetprotocol/deploy-providers": "0.1.92",
|
|
39
|
+
"@infernetprotocol/gpu": "0.1.92",
|
|
40
|
+
"@infernetprotocol/liquid-agent": "0.1.92",
|
|
41
|
+
"@infernetprotocol/training": "0.1.92",
|
|
42
|
+
"@infernetprotocol/rpc-adapter": "0.1.92"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|