apheris-foundry-cli 2.6.0__tar.gz → 2.7.1__tar.gz
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.
- {apheris_foundry_cli-2.6.0/src/apheris_foundry_cli.egg-info → apheris_foundry_cli-2.7.1}/PKG-INFO +140 -19
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/README.md +139 -18
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/pyproject.toml +1 -1
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1/src/apheris_foundry_cli.egg-info}/PKG-INFO +140 -19
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apheris_foundry_cli.egg-info/SOURCES.txt +5 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/commands/foundry.py +13 -11
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/commands/skills.py +8 -4
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/commands/weights.py +316 -13
- apheris_foundry_cli-2.7.1/src/apherisfold_cli/core/archive_paths.py +9 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/hub_requests.py +23 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/input_archive.py +6 -12
- apheris_foundry_cli-2.7.1/src/apherisfold_cli/core/io.py +69 -0
- apheris_foundry_cli-2.7.1/src/apherisfold_cli/core/weight_archive.py +124 -0
- apheris_foundry_cli-2.7.1/src/apherisfold_cli/core/weight_import.py +263 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/main.py +27 -4
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/skills/apheris-foundry-hub/SKILL.md +117 -23
- apheris_foundry_cli-2.7.1/src/apherisfold_cli/version.py +1 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_cli.py +231 -7
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_hub_requests.py +54 -0
- apheris_foundry_cli-2.7.1/tests/test_io.py +164 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_skills.py +51 -1
- apheris_foundry_cli-2.7.1/tests/test_weight_archive.py +202 -0
- apheris_foundry_cli-2.7.1/tests/test_weight_import.py +848 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_weights.py +3 -1
- apheris_foundry_cli-2.6.0/src/apherisfold_cli/core/io.py +0 -115
- apheris_foundry_cli-2.6.0/src/apherisfold_cli/version.py +0 -1
- apheris_foundry_cli-2.6.0/tests/test_io.py +0 -335
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/LICENSE +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/setup.cfg +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apheris_foundry_cli.egg-info/dependency_links.txt +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apheris_foundry_cli.egg-info/entry_points.txt +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apheris_foundry_cli.egg-info/requires.txt +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apheris_foundry_cli.egg-info/top_level.txt +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/__init__.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/commands/__init__.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/commands/compounds.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/commands/docs.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/commands/login.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/commands/settings.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/__init__.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/auth.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/browser.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/config.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/context.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/documents.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/errors.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/limits.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/login_profiles.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/msa.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/pubchem.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/render.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/result_artifacts.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/core/transient.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/src/apherisfold_cli/handlers.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_auth.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_auth_lifecycle.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_benchmark_examples.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_browser.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_config.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_docs.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_documents.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_dry_run_guard.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_foundry_execution.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_foundry_helpers.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_foundry_warnings.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_handlers.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_input_archive.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_jobs_metadata.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_jobs_update.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_login_callback.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_main.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_model_discovery.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_msa.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_pubchem.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_render.py +0 -0
- {apheris_foundry_cli-2.6.0 → apheris_foundry_cli-2.7.1}/tests/test_result_artifacts.py +0 -0
{apheris_foundry_cli-2.6.0/src/apheris_foundry_cli.egg-info → apheris_foundry_cli-2.7.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apheris-foundry-cli
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.1
|
|
4
4
|
Summary: Command-line interface for Apheris Foundry workflows.
|
|
5
5
|
Author: Apheris
|
|
6
6
|
License-Expression: LicenseRef-Apheris-Foundry-Software-License
|
|
@@ -120,7 +120,7 @@ workflow guidance directly from your Hub:
|
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
122
|
apheris-foundry workflows list
|
|
123
|
-
apheris-foundry skills install --workflow predict --agent codex
|
|
123
|
+
apheris-foundry skills install --workflow structure-predict --agent codex
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
Use `--path ./.agents/skills` instead of `--agent` for another agent or a
|
|
@@ -133,8 +133,8 @@ workflow skills are quietly skipped. Display the selected skill without installi
|
|
|
133
133
|
|
|
134
134
|
```bash
|
|
135
135
|
apheris-foundry skills show apheris-foundry-hub
|
|
136
|
-
apheris-foundry skills show --workflow predict
|
|
137
|
-
apheris-foundry skills show apheris-workflow-predict
|
|
136
|
+
apheris-foundry skills show --workflow structure-predict
|
|
137
|
+
apheris-foundry skills show apheris-workflow-structure-predict
|
|
138
138
|
# Install every bundled and Hub workflow skill after login:
|
|
139
139
|
apheris-foundry skills install --all --agent codex
|
|
140
140
|
```
|
|
@@ -175,9 +175,9 @@ for details about preference scope and scripting.
|
|
|
175
175
|
After login, check that your Hub offers prediction:
|
|
176
176
|
|
|
177
177
|
```bash
|
|
178
|
-
apheris-foundry workflows get --workflow predict
|
|
179
|
-
apheris-foundry workflows docs --workflow predict
|
|
180
|
-
apheris-foundry workflows models --workflow predict
|
|
178
|
+
apheris-foundry workflows get --workflow structure-predict
|
|
179
|
+
apheris-foundry workflows docs --workflow structure-predict
|
|
180
|
+
apheris-foundry workflows models --workflow structure-predict
|
|
181
181
|
```
|
|
182
182
|
|
|
183
183
|
Save this small example as `request.json`:
|
|
@@ -197,13 +197,13 @@ Save this small example as `request.json`:
|
|
|
197
197
|
Submit it using your Hub's default model settings:
|
|
198
198
|
|
|
199
199
|
```bash
|
|
200
|
-
apheris-foundry workflows run --workflow predict --input request.json
|
|
200
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json
|
|
201
201
|
```
|
|
202
202
|
|
|
203
203
|
Optionally add a name and one or more tags when submitting:
|
|
204
204
|
|
|
205
205
|
```bash
|
|
206
|
-
apheris-foundry workflows run --workflow predict --input request.json \
|
|
206
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json \
|
|
207
207
|
--name "Kinase pilot" --tag kinase --tag pilot
|
|
208
208
|
```
|
|
209
209
|
|
|
@@ -261,9 +261,9 @@ Override model parameters inline or from a JSON/YAML file. Select models and wei
|
|
|
261
261
|
advertised by `workflows models`:
|
|
262
262
|
|
|
263
263
|
```bash
|
|
264
|
-
apheris-foundry workflows run --workflow predict --input request.json \
|
|
264
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json \
|
|
265
265
|
--model-params '{"seeds":[7,9],"num_diffusion_samples":3}'
|
|
266
|
-
apheris-foundry workflows run --workflow predict --input request.json \
|
|
266
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json \
|
|
267
267
|
--model <model-id> --weight <weight-version> \
|
|
268
268
|
--model-params @./model-params.yaml
|
|
269
269
|
```
|
|
@@ -288,10 +288,10 @@ needed for the workflow's one-sample, seed-42 defaults.
|
|
|
288
288
|
|
|
289
289
|
```bash
|
|
290
290
|
# 1. Discover: one row per model and weight (* = default); --weight shows one in detail
|
|
291
|
-
apheris-foundry workflows models --workflow predict
|
|
292
|
-
apheris-foundry workflows models --workflow predict --weight of3p2
|
|
291
|
+
apheris-foundry workflows models --workflow structure-predict
|
|
292
|
+
apheris-foundry workflows models --workflow structure-predict --weight of3p2
|
|
293
293
|
# 2. Use a listed model and weight (rejected if not listed; never substituted)
|
|
294
|
-
apheris-foundry workflows run --workflow predict --input request.json --model openfold3 --weight of3p2
|
|
294
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json --model openfold3 --weight of3p2
|
|
295
295
|
# 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
|
|
296
296
|
apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
|
|
297
297
|
# 4. It now appears as a weight in step 1; manage it by ID
|
|
@@ -355,8 +355,8 @@ the metadata change notification.
|
|
|
355
355
|
| `apheris-foundry jobs update --id <job-id> [--name <name>] [--tag <tag> ... \| --clear-tags]` | Edit metadata; omitted fields stay unchanged, tags replace all existing tags, and `--name ""` / `--clear-tags` clear fields |
|
|
356
356
|
| `apheris-foundry jobs logs --id <job-id>` | Print logs for a job |
|
|
357
357
|
| `apheris-foundry jobs error --id <job-id>` | Print the saved error for a failed job |
|
|
358
|
-
| `apheris-foundry jobs download --id <job-id>` | Download results for a completed job |
|
|
359
|
-
| `apheris-foundry jobs cancel --id <job-id>` | Cancel a pending or running job |
|
|
358
|
+
| `apheris-foundry jobs download --id <job-id>` | Download results for a completed job into `./job_<job-id>_results/`, or `--output <dir>` |
|
|
359
|
+
| `apheris-foundry jobs cancel --id <job-id>` | Cancel a pending or running job (`--yes` skips confirmation) |
|
|
360
360
|
| `apheris-foundry jobs delete --id <job-id>` | Permanently delete a terminal job and its stored data (`--yes` skips confirmation) |
|
|
361
361
|
|
|
362
362
|
Use `--help` on any command for the full option reference and examples:
|
|
@@ -459,7 +459,7 @@ Contact [support@apheris.com](mailto:support@apheris.com) for access and deploym
|
|
|
459
459
|
|
|
460
460
|
### Model weights (`weights`)
|
|
461
461
|
|
|
462
|
-
`weights` manages weights enabled from completed jobs: enable, list, inspect,
|
|
462
|
+
`weights` manages weights enabled from completed jobs or imported from local files: enable, import, list, inspect,
|
|
463
463
|
rename or relabel, share and delete. Every command accepts `--json`, which
|
|
464
464
|
prints Hub's response unchanged.
|
|
465
465
|
|
|
@@ -514,7 +514,120 @@ This setting applies only to the enable request and cannot override a shorter se
|
|
|
514
514
|
network timeout. If the outcome is uncertain, check `weights list --run-id`
|
|
515
515
|
before retrying; the CLI does not automatically retry the write.
|
|
516
516
|
|
|
517
|
-
|
|
517
|
+
#### Import external checkpoints
|
|
518
|
+
|
|
519
|
+
Start by listing the models and versions that the connected Hub accepts for import:
|
|
520
|
+
|
|
521
|
+
```sh
|
|
522
|
+
apheris-foundry weights models
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
Example discovery output (your Hub's entries may differ):
|
|
526
|
+
|
|
527
|
+
```text
|
|
528
|
+
MODEL VERSION LABEL
|
|
529
|
+
openfold3 openfold3:of3ob Preview 2
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
Copy `MODEL` into `--model` and `VERSION` into `--version` from the same row.
|
|
533
|
+
The version identifies the installed model build that will consume the checkpoint;
|
|
534
|
+
it is not a name for your checkpoint or the Hub release number. Use `--name` to name
|
|
535
|
+
your imported weights. You may omit `--version` when that model has exactly one
|
|
536
|
+
available version. If it has several, the CLI lists the choices and requires an
|
|
537
|
+
explicit `--version` before uploading.
|
|
538
|
+
|
|
539
|
+
For the example row above:
|
|
540
|
+
|
|
541
|
+
```sh
|
|
542
|
+
# Raw checkpoint, with an explicit model version
|
|
543
|
+
apheris-foundry weights import --name kinase-ft --model openfold3 --version openfold3:of3ob --checkpoint ./model.pt
|
|
544
|
+
|
|
545
|
+
# Short form: only valid when openfold3 has exactly one available version
|
|
546
|
+
apheris-foundry weights import --name kinase-ft --model openfold3 --checkpoint ./model.pt
|
|
547
|
+
|
|
548
|
+
# ZIP: select weights/model.pt after removing the archive's common root directory
|
|
549
|
+
apheris-foundry weights import --name kinase-bundle --model openfold3 --version openfold3:of3ob --archive ./weights.zip --checkpoint-path weights/model.pt --strip-archive-root
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
For scripts and agents, `weights models --json` returns the Hub's
|
|
553
|
+
catalog: `models[].id` supplies `--model`; that model's `targets[].version`
|
|
554
|
+
supplies `--version`; `targets[].label` is display text, not an accepted identifier.
|
|
555
|
+
Discovery does not upload anything and cannot be combined with import arguments.
|
|
556
|
+
Use the import catalog rather than `weights list`, which lists registered weights.
|
|
557
|
+
|
|
558
|
+
After a successful import, use the returned weight ID:
|
|
559
|
+
|
|
560
|
+
```sh
|
|
561
|
+
apheris-foundry weights get --id <returned-weight-id>
|
|
562
|
+
apheris-foundry workflows models --workflow <workflow-id> --json
|
|
563
|
+
apheris-foundry workflows run --workflow <workflow-id> --input ./input --weight <returned-weight-id>
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
Discovery and registration do not verify scientific compatibility. No producing
|
|
567
|
+
job, run ID, task or caller-supplied capabilities are needed. Hub derives
|
|
568
|
+
capabilities from the selected model version.
|
|
569
|
+
|
|
570
|
+
Use exactly one of `--checkpoint` or `--archive`. For ZIPs, `--checkpoint-path`
|
|
571
|
+
selects a file or directory; `.` selects the entire bundle. With
|
|
572
|
+
`--strip-archive-root`, the path is relative to the normalized archive after its
|
|
573
|
+
common root directory is removed. These two flags apply only to ZIPs. Local
|
|
574
|
+
directories and URLs are not accepted. The CLI checks ZIP metadata without
|
|
575
|
+
extracting files: it sums declared uncompressed sizes and confirms the selected
|
|
576
|
+
path exists. OS metadata such as `__MACOSX` and `.DS_Store` is ignored; ordinary
|
|
577
|
+
hidden companion files count. A single root folder is stripped only when every
|
|
578
|
+
retained file is nested under it. Empty directory entries do not create selectable
|
|
579
|
+
directories. A raw `--checkpoint` is not inspected as an archive, even when its
|
|
580
|
+
format internally uses ZIP (for example, a PyTorch checkpoint).
|
|
581
|
+
|
|
582
|
+
Imports accept repeated `--tag`, `--description` and `--public/--private`. On
|
|
583
|
+
authenticated Hubs, imports are private by default and visibility is fixed at
|
|
584
|
+
registration. On a Hub with authentication disabled, `--public` fails before
|
|
585
|
+
upload; omit it. Private/shared controls provide no privacy isolation there,
|
|
586
|
+
including with `--private`. Human import output shows `no auth`; JSON preserves
|
|
587
|
+
the Hub's `isPublic` field without redefining it.
|
|
588
|
+
|
|
589
|
+
`--dry-run true weights import ...` checks availability, target and local input,
|
|
590
|
+
including the same ZIP metadata checks, and previews without uploading or
|
|
591
|
+
registering anything. Every import uses a live preflight; it does not trust cached
|
|
592
|
+
availability to submit an upload. Real imports inspect ZIP metadata once on the
|
|
593
|
+
opened file before each upload attempt, including an authentication retry.
|
|
594
|
+
|
|
595
|
+
Uploads stream with bounded memory. The payload limit comes from
|
|
596
|
+
`weights models` (`maxUploadBytes`, normally 10 GiB); both the uploaded file and
|
|
597
|
+
the aggregate declared expanded ZIP size must independently fit that limit.
|
|
598
|
+
Selecting one checkpoint does not exclude companion files from the total.
|
|
599
|
+
The CLI also limits ZIP metadata reads to 8 MiB to bound local preflight resources.
|
|
600
|
+
If that budget is exceeded, repackage with fewer entries or shorter names/comments.
|
|
601
|
+
This is a separate CLI resource limit, not Hub's upload limit. Hub remains
|
|
602
|
+
responsible for actual expanded-byte limits, checksums, extraction safety and
|
|
603
|
+
storage capacity; a successful dry-run does not guarantee registration or
|
|
604
|
+
scientific compatibility.
|
|
605
|
+
`--timeout` defaults to 300 seconds and accepts a positive integer. Interactive
|
|
606
|
+
progress goes to stderr and is disabled for `--json` and `--quiet true`.
|
|
607
|
+
Reaching 100% uploaded is not success: the CLI waits for Hub to confirm
|
|
608
|
+
registration with HTTP 201 and the created weight ID. If the connection is lost
|
|
609
|
+
or the response is ambiguous, check `weights list --json` before retrying. Uploads
|
|
610
|
+
are not resumed or automatically replayed after these failures; an explicit 401
|
|
611
|
+
may refresh authentication once and restart the upload.
|
|
612
|
+
|
|
613
|
+
**Availability and offline help.** The CLI uses endpoint capabilities, not a
|
|
614
|
+
comparison of CLI and Hub release numbers. Successful discovery makes the `models` and `import`
|
|
615
|
+
commands visible in `weights --help` and shell completion. A 404 (older Hub or
|
|
616
|
+
disabled feature) hides them; directly invoking either command still checks the
|
|
617
|
+
Hub and explains how to resolve unavailability. Authentication, network, server
|
|
618
|
+
and malformed-response errors are distinct from confirmed lack of support.
|
|
619
|
+
An empty model list means import is supported but no eligible target is available.
|
|
620
|
+
|
|
621
|
+
Help, completion and `apheris-foundry --version` never make discovery requests. Help uses a
|
|
622
|
+
five-minute capability cache bound to the current Hub configuration and session;
|
|
623
|
+
switching either invalidates the result. Before discovery or after expiry,
|
|
624
|
+
`weights models` and `weights import` are hidden and help explains that availability is unknown. Run
|
|
625
|
+
`weights models` to refresh, including after enabling the feature or
|
|
626
|
+
upgrading Hub. An unwritable cache does not block imports.
|
|
627
|
+
|
|
628
|
+
#### Sharing and deletion
|
|
629
|
+
|
|
630
|
+
**Sharing.** Enabled and imported weights are private by default. `--public` shares a weight with every
|
|
518
631
|
authenticated user of this Hub; they can list, inspect and run with it, but only
|
|
519
632
|
the owner can update or delete it. Hub fixes visibility when enabling: to stop
|
|
520
633
|
sharing a weight, delete it, and enable under a new name if you still need a
|
|
@@ -581,6 +694,14 @@ Responses are cached locally for 30 days; offline use marks stale entries. Use
|
|
|
581
694
|
The shared chemical-identity and foundry-scientific-integrity skills also work
|
|
582
695
|
without Hub through documented official APIs.
|
|
583
696
|
|
|
697
|
+
Without `--output`, `jobs download` extracts into `./job_<job-id>_results/`
|
|
698
|
+
in the current directory, matching the FCP CLI naming convention, and
|
|
699
|
+
`--artifact-id` saves the file under
|
|
700
|
+
`./job_<job-id>_results/artifacts/`. The CLI prints the absolute path and
|
|
701
|
+
refuses to write into a non-empty directory unless `--overwrite=true` is set.
|
|
702
|
+
CLI versions up to 2.7.0 used the hidden `./.apherisfold/runs/foundry-results/`
|
|
703
|
+
directory; those files stay there.
|
|
704
|
+
|
|
584
705
|
`jobs download` preserves the workflow's `result.json`; the CLI's download
|
|
585
706
|
manifest is `cli-result.json`. A conflicting artifact with that name is rejected
|
|
586
707
|
rather than overwritten. `--result-view` controls that CLI manifest's detail.
|
|
@@ -591,7 +712,7 @@ Find jobs by name, ID, or tag:
|
|
|
591
712
|
|
|
592
713
|
```sh
|
|
593
714
|
apheris-foundry jobs list --search 'screen_1'
|
|
594
|
-
apheris-foundry jobs list --workflow predict --status succeeded --limit 10
|
|
715
|
+
apheris-foundry jobs list --workflow structure-predict --status succeeded --limit 10
|
|
595
716
|
```
|
|
596
717
|
|
|
597
718
|
Search is literal (no wildcards). Workflow and status filters can be repeated.
|
|
@@ -94,7 +94,7 @@ workflow guidance directly from your Hub:
|
|
|
94
94
|
|
|
95
95
|
```bash
|
|
96
96
|
apheris-foundry workflows list
|
|
97
|
-
apheris-foundry skills install --workflow predict --agent codex
|
|
97
|
+
apheris-foundry skills install --workflow structure-predict --agent codex
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
Use `--path ./.agents/skills` instead of `--agent` for another agent or a
|
|
@@ -107,8 +107,8 @@ workflow skills are quietly skipped. Display the selected skill without installi
|
|
|
107
107
|
|
|
108
108
|
```bash
|
|
109
109
|
apheris-foundry skills show apheris-foundry-hub
|
|
110
|
-
apheris-foundry skills show --workflow predict
|
|
111
|
-
apheris-foundry skills show apheris-workflow-predict
|
|
110
|
+
apheris-foundry skills show --workflow structure-predict
|
|
111
|
+
apheris-foundry skills show apheris-workflow-structure-predict
|
|
112
112
|
# Install every bundled and Hub workflow skill after login:
|
|
113
113
|
apheris-foundry skills install --all --agent codex
|
|
114
114
|
```
|
|
@@ -149,9 +149,9 @@ for details about preference scope and scripting.
|
|
|
149
149
|
After login, check that your Hub offers prediction:
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
|
-
apheris-foundry workflows get --workflow predict
|
|
153
|
-
apheris-foundry workflows docs --workflow predict
|
|
154
|
-
apheris-foundry workflows models --workflow predict
|
|
152
|
+
apheris-foundry workflows get --workflow structure-predict
|
|
153
|
+
apheris-foundry workflows docs --workflow structure-predict
|
|
154
|
+
apheris-foundry workflows models --workflow structure-predict
|
|
155
155
|
```
|
|
156
156
|
|
|
157
157
|
Save this small example as `request.json`:
|
|
@@ -171,13 +171,13 @@ Save this small example as `request.json`:
|
|
|
171
171
|
Submit it using your Hub's default model settings:
|
|
172
172
|
|
|
173
173
|
```bash
|
|
174
|
-
apheris-foundry workflows run --workflow predict --input request.json
|
|
174
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
Optionally add a name and one or more tags when submitting:
|
|
178
178
|
|
|
179
179
|
```bash
|
|
180
|
-
apheris-foundry workflows run --workflow predict --input request.json \
|
|
180
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json \
|
|
181
181
|
--name "Kinase pilot" --tag kinase --tag pilot
|
|
182
182
|
```
|
|
183
183
|
|
|
@@ -235,9 +235,9 @@ Override model parameters inline or from a JSON/YAML file. Select models and wei
|
|
|
235
235
|
advertised by `workflows models`:
|
|
236
236
|
|
|
237
237
|
```bash
|
|
238
|
-
apheris-foundry workflows run --workflow predict --input request.json \
|
|
238
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json \
|
|
239
239
|
--model-params '{"seeds":[7,9],"num_diffusion_samples":3}'
|
|
240
|
-
apheris-foundry workflows run --workflow predict --input request.json \
|
|
240
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json \
|
|
241
241
|
--model <model-id> --weight <weight-version> \
|
|
242
242
|
--model-params @./model-params.yaml
|
|
243
243
|
```
|
|
@@ -262,10 +262,10 @@ needed for the workflow's one-sample, seed-42 defaults.
|
|
|
262
262
|
|
|
263
263
|
```bash
|
|
264
264
|
# 1. Discover: one row per model and weight (* = default); --weight shows one in detail
|
|
265
|
-
apheris-foundry workflows models --workflow predict
|
|
266
|
-
apheris-foundry workflows models --workflow predict --weight of3p2
|
|
265
|
+
apheris-foundry workflows models --workflow structure-predict
|
|
266
|
+
apheris-foundry workflows models --workflow structure-predict --weight of3p2
|
|
267
267
|
# 2. Use a listed model and weight (rejected if not listed; never substituted)
|
|
268
|
-
apheris-foundry workflows run --workflow predict --input request.json --model openfold3 --weight of3p2
|
|
268
|
+
apheris-foundry workflows run --workflow structure-predict --input request.json --model openfold3 --weight of3p2
|
|
269
269
|
# 3. Make a fine-tuned checkpoint available: private, or --public for everyone on this Hub
|
|
270
270
|
apheris-foundry weights enable --name my-kinase-ft --run-id <finetune-job-id> --path <checkpoint-path> --tag kinase
|
|
271
271
|
# 4. It now appears as a weight in step 1; manage it by ID
|
|
@@ -329,8 +329,8 @@ the metadata change notification.
|
|
|
329
329
|
| `apheris-foundry jobs update --id <job-id> [--name <name>] [--tag <tag> ... \| --clear-tags]` | Edit metadata; omitted fields stay unchanged, tags replace all existing tags, and `--name ""` / `--clear-tags` clear fields |
|
|
330
330
|
| `apheris-foundry jobs logs --id <job-id>` | Print logs for a job |
|
|
331
331
|
| `apheris-foundry jobs error --id <job-id>` | Print the saved error for a failed job |
|
|
332
|
-
| `apheris-foundry jobs download --id <job-id>` | Download results for a completed job |
|
|
333
|
-
| `apheris-foundry jobs cancel --id <job-id>` | Cancel a pending or running job |
|
|
332
|
+
| `apheris-foundry jobs download --id <job-id>` | Download results for a completed job into `./job_<job-id>_results/`, or `--output <dir>` |
|
|
333
|
+
| `apheris-foundry jobs cancel --id <job-id>` | Cancel a pending or running job (`--yes` skips confirmation) |
|
|
334
334
|
| `apheris-foundry jobs delete --id <job-id>` | Permanently delete a terminal job and its stored data (`--yes` skips confirmation) |
|
|
335
335
|
|
|
336
336
|
Use `--help` on any command for the full option reference and examples:
|
|
@@ -433,7 +433,7 @@ Contact [support@apheris.com](mailto:support@apheris.com) for access and deploym
|
|
|
433
433
|
|
|
434
434
|
### Model weights (`weights`)
|
|
435
435
|
|
|
436
|
-
`weights` manages weights enabled from completed jobs: enable, list, inspect,
|
|
436
|
+
`weights` manages weights enabled from completed jobs or imported from local files: enable, import, list, inspect,
|
|
437
437
|
rename or relabel, share and delete. Every command accepts `--json`, which
|
|
438
438
|
prints Hub's response unchanged.
|
|
439
439
|
|
|
@@ -488,7 +488,120 @@ This setting applies only to the enable request and cannot override a shorter se
|
|
|
488
488
|
network timeout. If the outcome is uncertain, check `weights list --run-id`
|
|
489
489
|
before retrying; the CLI does not automatically retry the write.
|
|
490
490
|
|
|
491
|
-
|
|
491
|
+
#### Import external checkpoints
|
|
492
|
+
|
|
493
|
+
Start by listing the models and versions that the connected Hub accepts for import:
|
|
494
|
+
|
|
495
|
+
```sh
|
|
496
|
+
apheris-foundry weights models
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
Example discovery output (your Hub's entries may differ):
|
|
500
|
+
|
|
501
|
+
```text
|
|
502
|
+
MODEL VERSION LABEL
|
|
503
|
+
openfold3 openfold3:of3ob Preview 2
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
Copy `MODEL` into `--model` and `VERSION` into `--version` from the same row.
|
|
507
|
+
The version identifies the installed model build that will consume the checkpoint;
|
|
508
|
+
it is not a name for your checkpoint or the Hub release number. Use `--name` to name
|
|
509
|
+
your imported weights. You may omit `--version` when that model has exactly one
|
|
510
|
+
available version. If it has several, the CLI lists the choices and requires an
|
|
511
|
+
explicit `--version` before uploading.
|
|
512
|
+
|
|
513
|
+
For the example row above:
|
|
514
|
+
|
|
515
|
+
```sh
|
|
516
|
+
# Raw checkpoint, with an explicit model version
|
|
517
|
+
apheris-foundry weights import --name kinase-ft --model openfold3 --version openfold3:of3ob --checkpoint ./model.pt
|
|
518
|
+
|
|
519
|
+
# Short form: only valid when openfold3 has exactly one available version
|
|
520
|
+
apheris-foundry weights import --name kinase-ft --model openfold3 --checkpoint ./model.pt
|
|
521
|
+
|
|
522
|
+
# ZIP: select weights/model.pt after removing the archive's common root directory
|
|
523
|
+
apheris-foundry weights import --name kinase-bundle --model openfold3 --version openfold3:of3ob --archive ./weights.zip --checkpoint-path weights/model.pt --strip-archive-root
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
For scripts and agents, `weights models --json` returns the Hub's
|
|
527
|
+
catalog: `models[].id` supplies `--model`; that model's `targets[].version`
|
|
528
|
+
supplies `--version`; `targets[].label` is display text, not an accepted identifier.
|
|
529
|
+
Discovery does not upload anything and cannot be combined with import arguments.
|
|
530
|
+
Use the import catalog rather than `weights list`, which lists registered weights.
|
|
531
|
+
|
|
532
|
+
After a successful import, use the returned weight ID:
|
|
533
|
+
|
|
534
|
+
```sh
|
|
535
|
+
apheris-foundry weights get --id <returned-weight-id>
|
|
536
|
+
apheris-foundry workflows models --workflow <workflow-id> --json
|
|
537
|
+
apheris-foundry workflows run --workflow <workflow-id> --input ./input --weight <returned-weight-id>
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
Discovery and registration do not verify scientific compatibility. No producing
|
|
541
|
+
job, run ID, task or caller-supplied capabilities are needed. Hub derives
|
|
542
|
+
capabilities from the selected model version.
|
|
543
|
+
|
|
544
|
+
Use exactly one of `--checkpoint` or `--archive`. For ZIPs, `--checkpoint-path`
|
|
545
|
+
selects a file or directory; `.` selects the entire bundle. With
|
|
546
|
+
`--strip-archive-root`, the path is relative to the normalized archive after its
|
|
547
|
+
common root directory is removed. These two flags apply only to ZIPs. Local
|
|
548
|
+
directories and URLs are not accepted. The CLI checks ZIP metadata without
|
|
549
|
+
extracting files: it sums declared uncompressed sizes and confirms the selected
|
|
550
|
+
path exists. OS metadata such as `__MACOSX` and `.DS_Store` is ignored; ordinary
|
|
551
|
+
hidden companion files count. A single root folder is stripped only when every
|
|
552
|
+
retained file is nested under it. Empty directory entries do not create selectable
|
|
553
|
+
directories. A raw `--checkpoint` is not inspected as an archive, even when its
|
|
554
|
+
format internally uses ZIP (for example, a PyTorch checkpoint).
|
|
555
|
+
|
|
556
|
+
Imports accept repeated `--tag`, `--description` and `--public/--private`. On
|
|
557
|
+
authenticated Hubs, imports are private by default and visibility is fixed at
|
|
558
|
+
registration. On a Hub with authentication disabled, `--public` fails before
|
|
559
|
+
upload; omit it. Private/shared controls provide no privacy isolation there,
|
|
560
|
+
including with `--private`. Human import output shows `no auth`; JSON preserves
|
|
561
|
+
the Hub's `isPublic` field without redefining it.
|
|
562
|
+
|
|
563
|
+
`--dry-run true weights import ...` checks availability, target and local input,
|
|
564
|
+
including the same ZIP metadata checks, and previews without uploading or
|
|
565
|
+
registering anything. Every import uses a live preflight; it does not trust cached
|
|
566
|
+
availability to submit an upload. Real imports inspect ZIP metadata once on the
|
|
567
|
+
opened file before each upload attempt, including an authentication retry.
|
|
568
|
+
|
|
569
|
+
Uploads stream with bounded memory. The payload limit comes from
|
|
570
|
+
`weights models` (`maxUploadBytes`, normally 10 GiB); both the uploaded file and
|
|
571
|
+
the aggregate declared expanded ZIP size must independently fit that limit.
|
|
572
|
+
Selecting one checkpoint does not exclude companion files from the total.
|
|
573
|
+
The CLI also limits ZIP metadata reads to 8 MiB to bound local preflight resources.
|
|
574
|
+
If that budget is exceeded, repackage with fewer entries or shorter names/comments.
|
|
575
|
+
This is a separate CLI resource limit, not Hub's upload limit. Hub remains
|
|
576
|
+
responsible for actual expanded-byte limits, checksums, extraction safety and
|
|
577
|
+
storage capacity; a successful dry-run does not guarantee registration or
|
|
578
|
+
scientific compatibility.
|
|
579
|
+
`--timeout` defaults to 300 seconds and accepts a positive integer. Interactive
|
|
580
|
+
progress goes to stderr and is disabled for `--json` and `--quiet true`.
|
|
581
|
+
Reaching 100% uploaded is not success: the CLI waits for Hub to confirm
|
|
582
|
+
registration with HTTP 201 and the created weight ID. If the connection is lost
|
|
583
|
+
or the response is ambiguous, check `weights list --json` before retrying. Uploads
|
|
584
|
+
are not resumed or automatically replayed after these failures; an explicit 401
|
|
585
|
+
may refresh authentication once and restart the upload.
|
|
586
|
+
|
|
587
|
+
**Availability and offline help.** The CLI uses endpoint capabilities, not a
|
|
588
|
+
comparison of CLI and Hub release numbers. Successful discovery makes the `models` and `import`
|
|
589
|
+
commands visible in `weights --help` and shell completion. A 404 (older Hub or
|
|
590
|
+
disabled feature) hides them; directly invoking either command still checks the
|
|
591
|
+
Hub and explains how to resolve unavailability. Authentication, network, server
|
|
592
|
+
and malformed-response errors are distinct from confirmed lack of support.
|
|
593
|
+
An empty model list means import is supported but no eligible target is available.
|
|
594
|
+
|
|
595
|
+
Help, completion and `apheris-foundry --version` never make discovery requests. Help uses a
|
|
596
|
+
five-minute capability cache bound to the current Hub configuration and session;
|
|
597
|
+
switching either invalidates the result. Before discovery or after expiry,
|
|
598
|
+
`weights models` and `weights import` are hidden and help explains that availability is unknown. Run
|
|
599
|
+
`weights models` to refresh, including after enabling the feature or
|
|
600
|
+
upgrading Hub. An unwritable cache does not block imports.
|
|
601
|
+
|
|
602
|
+
#### Sharing and deletion
|
|
603
|
+
|
|
604
|
+
**Sharing.** Enabled and imported weights are private by default. `--public` shares a weight with every
|
|
492
605
|
authenticated user of this Hub; they can list, inspect and run with it, but only
|
|
493
606
|
the owner can update or delete it. Hub fixes visibility when enabling: to stop
|
|
494
607
|
sharing a weight, delete it, and enable under a new name if you still need a
|
|
@@ -555,6 +668,14 @@ Responses are cached locally for 30 days; offline use marks stale entries. Use
|
|
|
555
668
|
The shared chemical-identity and foundry-scientific-integrity skills also work
|
|
556
669
|
without Hub through documented official APIs.
|
|
557
670
|
|
|
671
|
+
Without `--output`, `jobs download` extracts into `./job_<job-id>_results/`
|
|
672
|
+
in the current directory, matching the FCP CLI naming convention, and
|
|
673
|
+
`--artifact-id` saves the file under
|
|
674
|
+
`./job_<job-id>_results/artifacts/`. The CLI prints the absolute path and
|
|
675
|
+
refuses to write into a non-empty directory unless `--overwrite=true` is set.
|
|
676
|
+
CLI versions up to 2.7.0 used the hidden `./.apherisfold/runs/foundry-results/`
|
|
677
|
+
directory; those files stay there.
|
|
678
|
+
|
|
558
679
|
`jobs download` preserves the workflow's `result.json`; the CLI's download
|
|
559
680
|
manifest is `cli-result.json`. A conflicting artifact with that name is rejected
|
|
560
681
|
rather than overwritten. `--result-view` controls that CLI manifest's detail.
|
|
@@ -565,7 +686,7 @@ Find jobs by name, ID, or tag:
|
|
|
565
686
|
|
|
566
687
|
```sh
|
|
567
688
|
apheris-foundry jobs list --search 'screen_1'
|
|
568
|
-
apheris-foundry jobs list --workflow predict --status succeeded --limit 10
|
|
689
|
+
apheris-foundry jobs list --workflow structure-predict --status succeeded --limit 10
|
|
569
690
|
```
|
|
570
691
|
|
|
571
692
|
Search is literal (no wildcards). Workflow and status filters can be repeated.
|