OpenTelemetry auto instrumentation for pytorch
Project description
torchtel
torchtel provides OpenTelemetry auto instrumentation for pytorch
Requirements
- Python 3.10 or higher
- PyTorch
- OpenTelemetry API
- OpenTelemetry Instrumentation ≥0.56b0
Install from pypi
$ pip install torchtel
Usage
Instrument PyTorch
To instrument PyTorch, you need to import the PyTorchInstrumentor class, call the instrument() method, and register your model, see below:
from torchtel import PyTorchInstrumentor
# create your PyTorch model
model = ...
# Registed the model for PyTorch Instrumentation
instrumentor = PyTorchInstrumentor().instrument(model=model)
# Run the model
...
# Uninstrument PyTorch
instrumentor.uninstrument()
Check out the model example to see OpenTelemetry autoinstrumentation in action.
Observability
To visualize traces and metrics collected by TorchTel, see our complete observability setup guide with Docker Compose configurations for Jaeger, Prometheus, and Grafana.
Contributing
Read our contributing guide to learn about our development process, how to propose bugfixes and feature requests, and how to build your changes.
Code of Conduct
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
Mantainers
clusterscope is actively maintained by Lucca Bertoncini, and Billy Campoli.
License
clusterscope is licensed under the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torchtel-0.0.2.tar.gz.
File metadata
- Download URL: torchtel-0.0.2.tar.gz
- Upload date:
- Size: 92.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40471d3ee83b1c0cb86efaf12afc122064b1f7ef680730931b7866dc18fb7813
|
|
| MD5 |
34f54a715ddf321b2c30678c35a050ff
|
|
| BLAKE2b-256 |
95655a504dc40287a1df6e8b92263c6ff9169495b0545a4ae911881360a2b138
|
File details
Details for the file torchtel-0.0.2-py3-none-any.whl.
File metadata
- Download URL: torchtel-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ec63e68da84d39dded85b63c4ce8264e283ffc687f9f6791bd293e18aa61ec2
|
|
| MD5 |
c0c8ae3f2308043b103904986f6c8bdc
|
|
| BLAKE2b-256 |
35c2fb0541fc573df1ef430eb0217869410745a77e75e518f6fddc6d770d8682
|