Skip to content

Updated boot_transformers to use local hf_config, if provided#1279

Merged
jlarson4 merged 1 commit intodevfrom
fix/bridge-offline-hf-model-846
May 5, 2026
Merged

Updated boot_transformers to use local hf_config, if provided#1279
jlarson4 merged 1 commit intodevfrom
fix/bridge-offline-hf-model-846

Conversation

@jlarson4
Copy link
Copy Markdown
Collaborator

@jlarson4 jlarson4 commented May 5, 2026

Description

When a local hf_model is provided, default to using that models hf_config object rather than requesting from HuggingFace again. This saves a network call to HF and will working better for users with limited access.

Added tests to confirm this new load path works as expected.

Fixes #846

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have not rewritten tests relating to key interfaces which would affect backward compatibility

…el is passed. This avoids unnecessary networks calls.
@jlarson4 jlarson4 merged commit 0636214 into dev May 5, 2026
42 of 44 checks 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