client_python icon indicating copy to clipboard operation
client_python copied to clipboard

Pin transformers version in pyproject.toml to prevent observability issues

Open kosmalapg opened this issue 6 months ago • 2 comments

It may be beneficial to pin the transformers dependency in pyproject.toml:

AutoEmbeddings = [
    "transformers>=4.25, <4.53",

The latest versions of transformers register a global TracerProvider, which can break the observability stack for some Arize users.

See the relevant code in the transformers repository.

kosmalapg avatar Jul 03 '25 10:07 kosmalapg

@fjcasti1 could you take a look here

arizedatngo avatar Jul 16 '25 13:07 arizedatngo

They fixed it on main but it's not released as of now https://github.com/huggingface/transformers/pull/39422

kosmalapg avatar Jul 16 '25 13:07 kosmalapg