-
Notifications
You must be signed in to change notification settings - Fork 55
Implement local filesystem option for studioml experiment storage/database. #387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement local filesystem option for studioml experiment storage/database. #387
Conversation
for local (file system based) artifact storage + db provider.
Made LocalArtifactStore a default one for LocalDbProvider.
elif config['type'].lower() == 's3': | ||
return S3ArtifactStore(config, verbose=verbose) | ||
elif config['type'].lower() == 'local': | ||
return LocalArtifactStore(config, verbose=verbose) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding "local" option to our selector.
@@ -0,0 +1,64 @@ | |||
import calendar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation is as straightforward as it gets:
basically, we just copy files around with no intent to optimize things.
@@ -0,0 +1,51 @@ | |||
import os | |||
import json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Database low-level logic implemented simply as directory with file names being the keys
and json values serialized into files themselves.
blocking_auth=blocking_auth) | ||
artifact_store = db_provider.get_artifact_store() | ||
|
||
elif db_config['type'].lower() == 'local': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding "local" option to our selector.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good for a narrow tire kicker case.
Fixes #386
Simple implementation for experiment storage and/or database in the local (experiment host)
filesystem.
Added basic document describing studioml configuration for this use case.