Automated telemetry and monitoring for ML & LLM Frameworks
Project description
MLMonitor - Automatic Instrumentation for ML Frameworks
Roadmap
- Prometheus Support for major ML & LLM frameworks
- Langchain - Done
- LLamaIndex - Coming Soon
- SKLearn - Coming Soon
- transformers - Coming Soon
- pytorch - Coming Soon
Installation
- Install from PyPI
pip install xpuls-mlmonitor
Usage Example
from xpuls.mlmonitor.langchain.instrument import LangchainTelemetry
# 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).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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xpuls-mlmonitor-0.0.5.tar.gz
(12.5 kB
view details)
Built Distribution
File details
Details for the file xpuls-mlmonitor-0.0.5.tar.gz
.
File metadata
- Download URL: xpuls-mlmonitor-0.0.5.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dacc933587447424fe146861e437d54a28341df1e2e476e662a152639ade8be6 |
|
MD5 | e046b2a9c81b21e848b3132d4c8c3a0c |
|
BLAKE2b-256 | 13f4374f58f645b15763506b2178b72c4b67683383dcaefd22940355f4f81734 |
File details
Details for the file xpuls_mlmonitor-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: xpuls_mlmonitor-0.0.5-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34f4f86b55ba398b900467690c20c70dcd02458371e7368db88621b68d895c0 |
|
MD5 | e1a3175290c4368294fb9a7419327097 |
|
BLAKE2b-256 | dd45cd635bd084503a55d8caf1b4934a3189ecb6dfe5b7e52a000d2cb31fdfbd |