Skip to main content

Welcome to xpuls.ai 👋

MLMonitor - Automatic Instrumentation for ML Frameworks

Twitter Follow Discord

PyPI version GitHub version

Roadmap 🚀

Framework Status
Langchain ✅
LLamaIndex Planned
PyTorch Planned
SKLearn Planned
Transformers Planned
Stable Diffusion Next

💡 If support of any framework/feature is useful for you, please feel free to reach out to us via Discord or Github Discussions

🔗 Installation

  1. Install from PyPI
pip install xpuls-mlmonitor

🧩 Usage Example

from xpuls.mlmonitor.langchain.instrument import LangchainTelemetry
import os

# Enable this for advance tracking with our xpuls-ml platform
os.environ["XPULSAI_TRACING_ENABLED"] = "true"

# Add default labels that will be added to all captured metrics
default_labels = {"service": "ml-project-service", "k8s_cluster": "app0", "namespace": "dev", "agent_name": "fallback_value"}

# Enable the auto-telemetry
LangchainTelemetry(
  default_labels=default_labels,
  xpuls_host_url="http://app.xpuls.ai" # Optional param, required when XPULSAI_TRACING is enabled
).auto_instrument()

## [Optional] Override labels for scope of decorator [Useful if you have multiple scopes where you need to override the default label values]
@TelemetryOverrideLabels(agent_name="chat_agent_alpha")
def get_response_using_agent_alpha(prompt, query):
    agent = initialize_agent(llm=chat_model,
                             verbose=True,
                             agent=CONVERSATIONAL_REACT_DESCRIPTION,
                             memory=memory)

    res = agent.run(f"{prompt}. \n Query: {query}")

ℹ️ Complete Usage Guides

🧾 License

This project is licensed under the Apache License 2.0. See the LICENSE file for more details.

📢 Contributing

We welcome contributions to MLMonitor! If you're interested in contributing.

If you encounter any issues or have feature requests, please file an issue on our GitHub repository.

💬 Get in touch

👉 Join our Discord community!

🐦 Follow the latest from xpuls.ai team on Twitter @xpulsai

Metadata

Release files for xpuls-mlmonitor 0.2.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 xpuls-mlmonitor 0.2.0
File Size Uploaded Provenance Actions
xpuls-mlmonitor-0.2.0.tar.gz 19.4 kB Without provenance Details for xpuls-mlmonitor-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xpuls-mlmonitor 0.2.0
File Interpreter ABI Platform Actions
xpuls_mlmonitor-0.2.0-py3-none-any.whl Python 3 none any Details for xpuls_mlmonitor-0.2.0-py3-none-any.whl

Total release size: 45.5 kB

Release files / xpuls-mlmonitor-0.2.0.tar.gz

Download URL xpuls-mlmonitor-0.2.0.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
31cf5f568e0a93bd9eeeefc9ed4e5a95544ee75c23ee12a3c55f5a76b42efd03
BLAKE2b-256 checksum
How to use checksums
5d1d835482674eecfc578abffd7f853e64b8a9a401f664dcb501c2dc218ec2f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / xpuls_mlmonitor-0.2.0-py3-none-any.whl

Download URL xpuls_mlmonitor-0.2.0-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfc177be73bf9f56e47b90ee216e3b9d18e45f129fed31dd508ee4316d9a8466
BLAKE2b-256 checksum
How to use checksums
e8d99b6ec23cc3c5d4da81c64912c57a8811d52f7eab0a2dfb614ba590ad3f02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for xpuls-mlmonitor 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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