Skip to main content

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.

Metadata

Release files for torchtel 0.0.3

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

Source distribution (sdist)

Source distribution for torchtel 0.0.3
File Size Uploaded
torchtel-0.0.3.tar.gz 610.5 kB Details

Built distribution (wheel)

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

Total release size: 619.0 kB

Release files / torchtel-0.0.3.tar.gz

Download URL torchtel-0.0.3.tar.gz
Size 610.5 kB
Tags Source
SHA-256 checksum
How to use checksums
12f7c0efdc837e2605b47411e818a7d2c240fa18ee0137d1037d313e7fdd1353
BLAKE2b-256 checksum
How to use checksums
2d3ff721a7c42c27f818d14515c5b9c35cd77c2461144474da9a7843e85482d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / torchtel-0.0.3-py3-none-any.whl

Download URL torchtel-0.0.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e55adfdf3d79bf352f0bde9ecb26c3e748a7628d307e9cef912b5b221920f7a
BLAKE2b-256 checksum
How to use checksums
db51a16ed7948e11c1d417ebff40353f250064adb06eb2f1210098b279bb055f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

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