pyxet
pyxet copied to clipboard
Feature request: pyxet commit hash information
When using pyxet for uploading and downloading, returning the commit information.
Use case
- Upload a model and return the commit to find it later.
Example
model_info = {
"accuracy": ...
"data_commit": ...
"code_commit": ...
}
with fs.transaction:
pickle.dumps(fs.open('xet://.../model.pickle'), model)
info = fs.get_transaction_info()
model_info['model_commit'] = info["hash"]
with fs.open('xet//.../model-card.json'):
fs.write(json.dumps(info))