Skip to content
View as Markdown

tinker.types.UploadURL

Generated from tinker 0.40.0 at commit 3e952a8. Source links point at that snapshot.

class tinker.types.UploadURL()

Where to upload one file of an external weights upload.

Fields:

  • url (str) – Signed URL to PUT the file to
  • headers (Mapping[str, str]) – Headers the PUT must send

upload(path)

Upload the file at path, streaming it in an HTTP PUT that sends headers.

Parameters:

  • path (str | os.PathLike[str])

Returns: None

Referenced by