Skip to content

Quickstart ​

Once you've installed Hectiq Lab and authenticated with the CLI, you can start tracking your experiments.

Below is an example of common tasks you can do with Hectiq Lab.

Track a training and save a model ​

python
from pyhectiqlab import Run, Config
import pyhectiqlab.functional as hl

with Run(title="My first run", project="hectiq-ai/demo"): 
    config = Config(a=1, b=2)
    hl.add_artifact("my-image.png")
    hl.add_config(config)

    for step in range(200):
        hl.add_metric("loss", step=step, value=3)

    # Save your model
    hl.create_model(name="model_name", path="path/to/model")