Skip to main content

neptune.ai

Quickstart   •   Website   •   Docs   •   Examples   •   Blog  

Neptune is an experiment tracker purpose-built for foundation model training.

With Neptune, you can monitor thousands of per-layer metrics—losses, gradients, and activations—at any scale. Visualize them with no lag and no missed spikes. Drill down into logs and debug training issues fast. Keep your model training stable while reducing wasted GPU cycles.

Watch a 3min explainer video →  

Play with a live example project in the Neptune app →  

Get started

Neptune consists of a Python API and a web application.

Install the Python client library:

pip install neptune-scale

Configure the API token and project:

  1. Log in to your Neptune workspace.

  2. Get your API token from your user menu in the bottom left corner.

    To create shared API tokens, see how to set up a service account.

  3. In the environment where neptune-scale is installed, save your API token to the NEPTUNE_API_TOKEN environment variable:

    export NEPTUNE_API_TOKEN="h0dHBzOi8aHR0cHM6...Y2MifQ=="
    
  4. Create a project, or find an existing project you want to send the run metadata to.

    To create a project via API:

    from neptune_scale.projects import create_project
    
    create_project(
        name="project-x",
        workspace="team-alpha",
    )
    
  5. (optional) In the environment where neptune-scale is installed, save your full project path to the NEPTUNE_PROJECT environment variable:

    export NEPTUNE_PROJECT="team-alpha/project-x"
    

    If you skip this step, you need to pass the project name as an argument each time you start a run.

You're ready to start using Neptune.

For more help with setup, see Get started in the Neptune documentation.

Example usage

Create an experiment:

from neptune_scale import Run


run = Run(experiment_name="MyExperimentName")

Then, call logging methods on the run and pass the metadata as a dictionary.

Log configuration or other simple values with log_configs():

run.log_configs(
    {
        "learning_rate": 0.001,
        "batch_size": 64,
    }
)

Inside a training loop or other iteration, use log_metrics() to append metric values:

# inside a loop
for step in range(100):
    run.log_metrics(
        data={"acc": 0.89, "loss": 0.17},
        step=step,
    )

Upload files:

run.assign_files(
    {
        "dataset/data_sample": "sample_data.csv",
        "dataset/image_sample": "input/images/img1.png",
    }
)

Log series of histograms:

from neptune_scale.types import Histogram


for step in epoch:
    # your training loop

    my_histogram = Histogram(...)

    run.log_histograms(
        histograms={
            "layers/1/activations": my_histogram
        },
        step=step,
    )

To help organize and group runs, apply tags:

run.add_tags(tags=["testing", "data v1.0"])

# To assign the run to groups, apply group tags
run.add_tags(
    tags=["group1", "group2"]
    group_tags=True,
)

When logging is no longer needed, use close() to stop the run:

run.close()

To explore your experiment, open the project in Neptune and navigate to Runs. For an example, see the demo project →

For more instructions, see the Neptune documentation:

Getting help

For help and support, visit our Support Center.

 


People behind Neptune

Created with ❤️ by the neptune.ai team →

Release files for neptune-scale 0.30.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neptune-scale 0.30.0
File Size Uploaded
neptune_scale-0.30.0.tar.gz 72.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neptune-scale 0.30.0
File Interpreter ABI Platform
neptune_scale-0.30.0-py3-none-any.whl Python 3 none any Details

Total release size: 159.1 kB

Release files / neptune_scale-0.30.0.tar.gz

Download URL neptune_scale-0.30.0.tar.gz
Size 72.4 kB
Tags Source
SHA-256 checksum
How to use checksums
980f5fba0a82bd06eff2df5a14908a9b1be4d6170568a6e562611c5693f7b6f7
BLAKE2b-256 checksum
How to use checksums
02b0c1639afb6c37793e00e09be12874eb8b89435c721ad015d2e5967baf20ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / neptune_scale-0.30.0-py3-none-any.whl

Download URL neptune_scale-0.30.0-py3-none-any.whl
Size 86.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abf01370f4fa2a4c4256023c09afd99aebac318d16068ea281f891768cffb7dd
BLAKE2b-256 checksum
How to use checksums
8a719e75ae4bd22d76c80587ca7cd575fd908dc982ce5a1cb0155ecd9180f32c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.30.0 This release

2 release files

0.29.0

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.25.1

2 release files

0.22.0

2 release files

0.19.0

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.1

2 release files

0.13.0

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page