Skip to content

feat: add linear and attention scale overrides - #1964

Merged
leejet merged 1 commit into
masterfrom
feat/linear-attention-scale-overrides
Sep 11, 2026
Merged

feat: add linear and attention scale overrides#1964
leejet merged 1 commit into
masterfrom
feat/linear-attention-scale-overrides

Conversation

@leejet

@leejet leejet commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add floating-point --linear-scale and --attn-scale overrides to CLI/server startup options and the C API to help mitigate backend numerical overflow.
  • Propagate overrides across model components and validate scale values before loading models. Keep model defaults at 0; disable scaling at 1. Attention scaling applies to Flash Attention.
  • Add troubleshooting guidance for NaNs and completely black or white images/videos, with links from the README, CLI/server docs, and issue entry points.

Related Issue / Discussion

N/A

Additional Information

N/A

Checklist

@leejet
leejet merged commit 7f410a3 into master Sep 11, 2026
1 of 9 checks passed
@leejet
leejet deleted the feat/linear-attention-scale-overrides branch September 11, 2026 17:41
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