Skip to content

Add LayoutLM to NormalizedConfigManager - #2475

Open
BortnikMaxim wants to merge 1 commit into
huggingface:mainfrom
BortnikMaxim:codex/add-layoutlm-normalized-config
Open

Add LayoutLM to NormalizedConfigManager#2475
BortnikMaxim wants to merge 1 commit into
huggingface:mainfrom
BortnikMaxim:codex/add-layoutlm-normalized-config

Conversation

@BortnikMaxim

Copy link
Copy Markdown

What does this PR do?

Registers LayoutLM with NormalizedConfigManager using NormalizedTextConfig, and removes it from the unsupported-model note.

LayoutLMConfig exposes the standard hidden_size, num_attention_heads, and num_hidden_layers attributes. The new offline regression test verifies that all three are normalized correctly.

Addresses the LayoutLM subtask in #351.

Validation

  • Targeted regression test: 1 passed
  • Black check on changed files: passed
  • Ruff check on changed files: passed
  • Python compile check on changed files: passed
  • git diff --check: passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant