Skip to content

gguf-py: fix np_roundf dropping the sign - #31310

Merged
ngxson merged 4 commits into
masterfrom
xsn/numpy_ver
Oct 28, 2026
Merged

ngxson merged 4 commits into
masterfrom
xsn/numpy_ver

Conversation

@ngxson

@ngxson ngxson commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Overview

fix for numpy < 2.3 on Python 3.14 making np_roundf to drop the sign, affecting the output of --outtype q8_0 in the conversion script

Requirements

@ngxson
ngxson requested a review from CISC as a code owner October 28, 2026 11:14
Comment thread requirements/requirements-convert_legacy_llama.txt Outdated
@CISC

CISC commented Oct 28, 2026

Copy link
Copy Markdown
Member

Strange though, was verified to have been fixed on 2.2.6: #28438 (comment)

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
@ngxson

ngxson commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator Author

it's broken on one single version of python:

Python numpy Negative output
3.11.12 2.2.6 49.6% (correct)
3.14.3 2.2.6 0% (bug)
3.14.3 2.4.6 49.6% (correct)

Comment thread tools/server/tests/requirements.txt Outdated
@CISC

CISC commented Oct 28, 2026

Copy link
Copy Markdown
Member

it's broken on one single version of python:
3.14.3 2.2.6 0% (bug)

Funny thing is it only affects certain builds as well, I could never reproduce this (on two different systems).

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
@ngxson
ngxson merged commit 28cb47c into master Oct 28, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants