Closed WillEngler closed 5 months ago
scripts for migrating past DLHub models, updating models, etc: https://github.com/blaiszik/dlhub_publish/tree/main/utils
For testing models: if any of the models are mentioned in this repo, there will be a testing cell with test input in one of the notebooks. If they import data or pre process the data in some way, just take the dimensions of the input and call it with numpy.zeros to simplify. The important part is calling it with the correct input shape
Here's a working proof of concept. Given a working DLHub model, we can make it invokable as a Garden entrypoint like so. (This is a method on GardenClient)
def make_entrypoint_from_function_id(self, fid: str, entrypoint_metadata: EntrypointMetadata) -> str:
kludge_entrypoint = RegisteredEntrypoint(
**entrypoint_metadata.dict(),
func_uuid=fid,
container_uuid=fid
)
local_data.put_local_entrypoint(kludge_entrypoint)
print("Added")
Calling this done now that we have this ingredient - moving on to containers
We'll need a script or utility in Garden to do the core part of the migration.
Given a published funcx function id for a DLHub model plus metadata, create a Garden entrypoint that calls the already-registered function.
Assumptions:
1. 2.
Acceptance Criteria
Given..., when..., then...