Skip to main content
Hugging Face Transformers

Installation

Install both the Netra SDK and Hugging Face Transformers:

Usage

Initialize the Netra SDK with Hugging Face instrumentation enabled. The SDK automatically traces all Transformers operations once initialized.

Streaming Responses

The SDK automatically handles streaming responses from Hugging Face models:

Different Task Types

Various Transformers tasks are automatically instrumented:

Selective Instrumentation

Control which integrations are enabled using the instruments or blockInstruments configuration:

Next Steps

Last modified on March 17, 2026