Enforce configurable OpenRouter quantization presets #61
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log!61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rage/openrouter-quantization-presets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #5 (
rage/4-unified-config).What this adds
high-precisionpreset:fp32,fp16,bf16,fp8balancedandall-knownpresetsunknownomitted from every built-in presetprovider.quantizationsresearch/LLM-LOG-RESEARCH-003-openrouter-quantization-policy.orgDefaults
high-precisionis active by default:Endpoints reported by OpenRouter as
unknownare not eligible.fp4andint4are also excluded by the default preset.Explicit opt-in remains possible by defining a custom preset containing
unknown.OpenRouter contract
OpenRouter documents
provider.quantizationsas a provider endpoint filter and exposesunknownas a distinct quantization value. The implementation relies on that reported metadata rather than inferring precision from provider reputation or hardware.Validation
unknownopt-inpython -m unittest discover -s tests -vandnix flake checkstill need to run in a normal repo checkout; this repository intentionally does not use GitHub Actions as its development loopView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.