Skip to main content

Mlsolid-py

mlsolid-py is a python client for mlsolid MLOps platform. This python SDK allows you to track experiments and save artifacts to the mlsolid server. With Model Registries, you can easily version your machine learning models, and quickly access them in your production code.

Installation

# Install grpc client code
pip install zeddo123-mlsolid-grpc-python --extra-index-url https://buf.build/gen/python

# Install mlsolid-py module
pip install mlsolidpy

Usage

mlsolid provides an easy way to track your experiment runs:

from mlsolidpy.mlsolid import Mlsolid

client = Mlsolid('localhost:5000')

print('Experiments', client.experiments)

print('Run ', client.run("urbane-wagon"))

with client.start_run('my_experiment') as run:
    run.log({'checkpoint': "path/to/checkpoint"})
    run.log({'batch-size': 23})

    run.log({'mae': 0.2333, 'loss': 100.0})
    run.log({'mae': 0.2000, 'loss': 90})
    run.log({'mae': 0.1134, 'loss': 10})
    run.log({'metrics': [0.2000, 0.333, 0.2223]})

Model Registry example:

client = Mlsolid('localhost:5000')

created = client.create_model_registry('test_registry_1')

if not created:
    print('could not create model registry')
    exit()

run_id = None

with client.start_run('my_experiment') as run:
    run_id = run.run_id
    run.add_plaintext_artifact('./tests/data/plain_text_file.txt')
    run.add_model('./tests/data/mobile_sam.pt')

added = client.add_model('test_registry_1', run_id, 'mobile_sam.pt', ['latest'])
if not added:
    print('could not add model to registry')
    exit()

client.artifact(run_id, 'plain_text_file.txt')

client.tagged_model('test_registry_1', 'latest')

Metadata

Release files for mlsolidpy 0.0.2

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

Source distribution (sdist)

Source distribution for mlsolidpy 0.0.2
File Size Uploaded
mlsolidpy-0.0.2.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlsolidpy 0.0.2
File Interpreter ABI Platform
mlsolidpy-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / mlsolidpy-0.0.2.tar.gz

Download URL mlsolidpy-0.0.2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
79ca945c944df7a2434ede6e5ebee64b22c62134b64863002344d4ced015f314
BLAKE2b-256 checksum
How to use checksums
841dae91a044c3b6b841ae671eecc6f6058163beb2b3561ff0ff336a74791d91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"EndeavourOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mlsolidpy-0.0.2-py3-none-any.whl

Download URL mlsolidpy-0.0.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5efbea8d79a08cea9c6f356cc32f7b3a77e7f27a76676d2615654acfaeedfd50
BLAKE2b-256 checksum
How to use checksums
36cb253e11029009361345835955fb9611d9541c4fdc67a5c3de013a10d938de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"EndeavourOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.0.2 This release

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