Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-python-sdk-testing.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Description

File saved to W&B. Represents a single file stored in W&B. Includes access to file metadata. Files are associated with a specific run and can include text files, model weights, datasets, visualizations, and other artifacts. You can download the file, delete the file, and access file properties. Specify one or more attributes in a dictionary to fine a specific file logged to a specific run. You can search using the following keys:
  • id (str): The ID of the run that contains the file
  • name (str): Name of the file
  • url (str): path to file
  • direct_url (str): path to file in the bucket
  • sizeBytes (int): size of file in bytes
  • md5 (str): md5 of file
  • mimetype (str): mimetype of file
  • updated_at (str): timestamp of last update
  • path_uri (str): path to file in the bucket, currently only available for S3 objects and reference files

Args:

  • client: The run object that contains the file
  • attrs: A dictionary of attributes that define the file
  • run: The run object that contains the file

Properties:

size

Returns the size of the file in bytes.

path_uri

Returns the URI path to the file in the storage bucket.

Methods:

delete

Delete the file from the W&B server.

display

Display this object in jupyter.

download

Downloads a file previously saved by a run from the wandb server.