Skip to content

Add inference time layer fusion optimisations via PreTrainedModel.from_pretrained(fuse_layers=True)#44942

Closed
hmellor wants to merge 4 commits into
huggingface:mainfrom
hmellor:inference-fusions
Closed

Add inference time layer fusion optimisations via PreTrainedModel.from_pretrained(fuse_layers=True)#44942
hmellor wants to merge 4 commits into
huggingface:mainfrom
hmellor:inference-fusions

Conversation

@hmellor

@hmellor hmellor commented Mar 23, 2026

Copy link
Copy Markdown
Member

No description provided.

hmellor added 3 commits March 23, 2026 11:38
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@hmellor hmellor force-pushed the inference-fusions branch from 962f580 to bbf93c4 Compare March 23, 2026 10:48
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@hmellor hmellor force-pushed the inference-fusions branch from 8661387 to 20e2571 Compare March 23, 2026 11:43
@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: llama

@hmellor

hmellor commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

Closing as, while it does work, the current implementation is too invasive to be practically used across all architectures

@hmellor hmellor closed this Jun 12, 2026
@hmellor hmellor deleted the inference-fusions branch June 12, 2026 13:21
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.

3 participants