Skip to main content

OpenTelemetry auto instrumentation for pytorch

Project description

torchtel

torchtel provides OpenTelemetry auto instrumentation for pytorch

Requirements

  • Python 3.10 or higher
  • PyTorch

Install from pypi

$ pip install torchtel

Usage

Instrumenting PyTorch

Import the PyTorchInstrumentor class, call the instrument() passing your model, see below:

from torchtel import PyTorchInstrumentor

# create your PyTorch model
model = ...

# Register the model for PyTorch Instrumentation
instrumentor = PyTorchInstrumentor().instrument(model=model)

# Run the model
...

# Uninstrument PyTorch
instrumentor.uninstrument()

Check out the training 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.

Maintainers

torchtel is actively maintained by Lucca Bertoncini, and Billy Campoli.

License

torchtel 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

torchtel-0.0.3.tar.gz (610.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchtel-0.0.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file torchtel-0.0.3.tar.gz.

File metadata

  • Download URL: torchtel-0.0.3.tar.gz
  • Upload date:
  • Size: 610.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for torchtel-0.0.3.tar.gz
Algorithm Hash digest
SHA256 12f7c0efdc837e2605b47411e818a7d2c240fa18ee0137d1037d313e7fdd1353
MD5 11627a419a2b636524c7980bf8e9a821
BLAKE2b-256 2d3ff721a7c42c27f818d14515c5b9c35cd77c2461144474da9a7843e85482d1

See more details on using hashes here.

File details

Details for the file torchtel-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: torchtel-0.0.3-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

Hashes for torchtel-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0e55adfdf3d79bf352f0bde9ecb26c3e748a7628d307e9cef912b5b221920f7a
MD5 34de04c8f53c10849b6ed23af63553a1
BLAKE2b-256 db51a16ed7948e11c1d417ebff40353f250064adb06eb2f1210098b279bb055f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page