v0.4.0
Feature added
Admin Groups enhancements
Now system admin is able to connect and disconnect resources like image
, instancetype
, and volume
. When a resource is connected to a group, the member of the group can access the resource.
$ primehub admin groups connect-image <group_id> <image_id>
$ primehub admin groups connect-instancetype <group_id> <instancetype_id>
$ primehub admin groups connect-volume <group_id> <volume_id>
$ primehub admin groups disconnect-image <group_id> <image_id>
$ primehub admin groups disconnect-instancetype <group_id> <instancetype_id>
$ primehub admin groups disconnect-volume <group_id> <volume_id>
System admin can manage resources. Create a resource with a group directly, and list resources.
$ primehub admin groups create-image <group_id> --file /tmp/image.json
$ primehub admin groups create-instancetype <group_id> --file /tmp/instancetype.json
$ primehub admin groups create-volume <group_id> --file /tmp/volume.json
$ primehub admin groups list-images <group_id>
$ primehub admin groups list-instancetypes <group_id>
$ primehub admin groups list-volumes <group_id>
System admin can manage users. Add users to a group, and list group users.
$ primehub admin groups list-users <group_id>
$ primehub admin groups connect-user <group_id> <user_id>
Admin Images, InstanceTypes, and Volumes enhancements
It’s similar with admin groups
, but from resource perspective. System admin can manage groups for resources.
$ primehub admin images add-group <id> <group_id>
$ primehub admin images remove-group <id> <group_id>
$ primehub admin images list-groups <id>
$ primehub admin instancetypes add-group <id> <group_id>
$ primehub admin instancetypes remove-group <id> <group_id>
$ primehub admin instancetypes list-groups <id>
$ primehub admin volumes add-group <id> <group_id>
$ primehub admin volumes remove-group <id> <group_id>
$ primehub admin volumes list-groups <id>
Admin reports added
System admin now can download and list reports.
$ primehub admin reports list
$ primehub admin reports download <url>
Group admin enhancements
Note: This is required PrimeHub v4.0
Group admin now can manage members.
$ primehub groups add-user <group_id> <user_id>
$ primehub groups remove-user <group_id> <user_id>
$ primehub groups list-users <group_id>
Group admin can set/unset MLflow settings.
$ primehub groups set-mlflow <group_id> --file /tmp/mlflow.json
$ primehub groups unset-mlflow <group_id>
$ primehub groups get-mlflow <group_id>
Group images enhancements
Group admin now can create or delete group images
$ primehub images create --file /tmp/base-notebook-group-1.json
primehub images delete <image_name>
MLflow model registry
Note: This is required PrimeHub v4.0
models
now supports model registry and related functions.
$ primehub models list-runs <experiment_name>
$ primehub models list-artifacts <run_id>
$ primehub models register <name> <run_id> <path>
- For more details, please check the doc: https://github.com/InfuseAI/primehub-python-sdk/blob/main/docs/CLI/models.md#example-register-a-model
Files enhancements
files
can easily obtain PHFS Uri. Add phfsUri
field to list outputs and add a new function get-phfs-uri
to get PHFS Uri by path directly.
$ primehub files list /
name size lastModified phfsUri
------------- ------ -------------- ---------------------
jobArtifacts/ 0 phfs:///jobArtifacts/
$ primehub files get-phfs-uri <path>