RepoPilot

huggingface/transformers · Architecture

A static read of how huggingface/transformers is wired together — module coupling, layering, and circular dependencies — derived from its import graph.

C
Architecture grade
score 66/100
8
Import cycles
lower is better
400
Modules parsed
1353 edges
90%
Layeredness
clean-layer ratio

Most-depended-on modules

These are the highest-fan-in files — change them and the blast radius is largest. Read them first.

  • src/transformers/__init__.py98 importers · radius 200
  • src/transformers/modeling_utils.py76 importers · radius 202
  • src/transformers/configuration_utils.py67 importers · radius 202
  • src/transformers/modeling_outputs.py57 importers · radius 229
  • src/transformers/masking_utils.py51 importers · radius 215
  • src/transformers/cache_utils.py47 importers · radius 206
  • src/transformers/activations.py44 importers · radius 201
  • src/transformers/modeling_layers.py42 importers · radius 200

Modules (24)

Source directories grouped from the import graph. Each links to a per-module page with its files and how it couples to the rest.

Circular dependencies (8)

  • src/transformers/__init__.py to src/transformers/backbone_utils.py to src/transformers/configuration_utils.py to src/transformers/__init__.py
  • src/transformers/__init__.py to src/transformers/backbone_utils.py to src/transformers/configuration_utils.py to src/transformers/generation/configuration_utils.py to src/transformers/__init__.py
  • src/transformers/configuration_utils.py to src/transformers/generation/configuration_utils.py to src/transformers/configuration_utils.py
  • src/transformers/__init__.py to src/transformers/backbone_utils.py to src/transformers/configuration_utils.py to src/transformers/generation/configuration_utils.py to src/transformers/modeling_utils.py to src/transformers/__init__.py
  • src/transformers/configuration_utils.py to src/transformers/generation/configuration_utils.py to src/transformers/modeling_utils.py to src/transformers/configuration_utils.py
  • src/transformers/modeling_utils.py to src/transformers/conversion_mapping.py to src/transformers/core_model_loading.py to src/transformers/integrations/accelerate.py to src/transformers/integrations/deepspeed.py to src/transformers/initialization.py to src/transformers/modeling_utils.py

Ask AI about huggingface/transformers

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question

Informational only. RepoPilot summarises public signals at the time of analysis; they can be incomplete or stale. Not professional, security, or legal advice.