neptune-scale is the official Python client library for Neptune.ai, an MLOps platform for experiment tracking and model management. It enables users to log, visualize, and compare machine learning metadata such as metrics, parameters, and files at scale, especially designed for foundation model training. The library is actively developed, with the current stable version being 0.30.0 and frequent alpha/beta releases.
pip install neptune-scaleVerified import paths — ran on the pinned version, not inferred.
This quickstart initializes a Neptune Run, logs a configuration parameter and a series of metric values. It demonstrates the recommended use of environment variables for API token and project name, and the 'main guard' for safe execution.
Consult the official Neptune.ai migration guide for detailed instructions on updating your codebase.
Remove the `resume` parameter from `Run()` calls. Provide `run_id` to resume an existing run.
Review existing error handling logic for `RUN_CONFLICTING` scenarios. Adjust if you expect an exception to be raised, or update monitoring to check for warnings.
Wrap your Neptune `Run` initialization and main logic within an `if __name__ == '__main__':` block.
If strict error handling for non-finite values is required, set the environment variable `NEPTUNE_INVALID_VALUE_ACTION=raise`.
Set the `NEPTUNE_API_TOKEN` environment variable with your API token, or pass the token directly to the `neptune.init()` function.
Regenerate your Neptune API token from your Neptune workspace settings and update it in your environment variables or scripts.
Install the `neptune-scale` library using `pip install neptune-scale`. If `neptune-client` was previously installed, uninstall it first (`pip uninstall neptune-client`) before installing `neptune-scale`.
Ensure you are using the latest `neptune-scale` library and update your imports to use `from neptune_scale import init` or `import neptune_scale as neptune; neptune.init(...)`.
This is often a temporary issue; retrying the operation or checking your internet connection might resolve it. Neptune's client has built-in retry logic, but persistent issues might require checking network stability or Neptune's service status.