pyxet icon indicating copy to clipboard operation
pyxet copied to clipboard

Feature request: pyxet commit hash information

Open xdssio opened this issue 1 year ago • 0 comments

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))

xdssio avatar Aug 14 '23 10:08 xdssio