You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the API design in annlite? Is this what we are expected:
def save_model(self, name: Union[str, PathLike]):
if isinstance(name, str):
# save to hubble with the given name `name`
else:
# save to local path
The user journal looks like:
index = Annlite(...)
index.train(...)
# upload the model parameters
index.save_model('pca128_pq64')
# load the model parameters
index = Annlite(..., model_path='pca128_pq64')
index.index(...)
index.search(...)
Since we move to
jcloud
deployment, it's necessary to support uploading/downloading PCA/PQ model to/fromHubble
.Thus, we need to implement these APIs:
self._projector_codec.upload(artifact='...')
self._projector_codec.download(artifact='...')
The
artifact
is determined by users and should be consistency throughout the whole pipeline. And also should be passed tojcloud.yaml
.The text was updated successfully, but these errors were encountered: