[GH-ISSUE #11933] s390x: mxfp4_test.go:116 test fails on Alpine Linux #7920

Open
opened 2026-04-12 20:05:15 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @OTLabs on GitHub (Aug 16, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11933

What is the issue?

I am building ollama 0.11.4 package for Alpine Linux. The mxfp4_test.go test fails on s390x platform only, https://gitlab.alpinelinux.org/otlabs/aports/-/jobs/1975190#L467.

Relevant log output

--- FAIL: TestMXFP4Ops (17.39s)
    --- FAIL: TestMXFP4Ops/cpu (17.38s)
        --- FAIL: TestMXFP4Ops/cpu/mulmatid (17.37s)
            --- FAIL: TestMXFP4Ops/cpu/mulmatid/exact (0.00s)
                mxfp4_test.go:116: expected (f32): 
                    [[-491549.97],
                     [ 0.00],
                     [-491549.97],
                     [ 0.00]]
                    
                     but got (mxfp4): 
                    [[-30721.87],
                     [ 0.00],
                     [-30721.87],
                     [ 0.00]]
        --- FAIL: TestMXFP4Ops/cpu/mm (0.01s)
            --- FAIL: TestMXFP4Ops/cpu/mm/exact/3x3 (0.00s)
                mxfp4_test.go:501: expected (f32): 
                    [[[-491549.9688]],
                    
                     [[-246966.9844]]]
                    
                     but got (mxfp4): 
                    [[[-30721.8730]],
                    
                     [[-964.7148]]]
            --- FAIL: TestMXFP4Ops/cpu/mm/exact/2x2 (0.01s)
                mxfp4_test.go:545: expected (f32): 
                    [[ 0.0000,  95387473936384.0000, -137446309888.0000, ...,  2846512.0000, -0.4101, -0.0064],
                     [ 270630.0312, -0.0004, -35.5042, ..., -0.0034, -5932104274475491524608.0000, -56.8811],
                     [ 0.0000,  0.0000, -2.7275, ...,  6841568.0000,  0.0000, -0.0000],
                     ..., 
                     [-0.0000,  0.0000, -641644632315382122250351149056.0000, ...,  0.0000, -3399.2966, -6570912.5000],
                     [ 6088888418304.0000, -5650080.5000,  0.0000, ...,  0.0000, -3735.4531, -809931120064856064.0000],
                     [ 15.3796,  0.0000,  0.0000, ...,  15270958596096.0000,  108214368600064.0000,  0.0000]]
                    
                     but got (mxfp4): 
                    [[ 0.0000,  95387473936384.0000, -34361577472.0000, ...,  2846512.0000, -0.0256, -0.0064],
                     [ 270630.0312, -0.0014, -35.5042, ..., -0.0034, -1518618694265725830299648.0000, -56.8811],
                     [ 0.0000,  0.0000, -10.9099, ...,  6841568.0000,  0.0000, -0.0000],
                     ..., 
                     [-0.0000,  0.0000, -641644632315382122250351149056.0000, ...,  0.0000, -13597.1865, -26283650.0000],
                     [ 6088888418304.0000, -1412520.1250,  0.0000, ...,  0.0000, -933.8633, -809931120064856064.0000],
                     [ 3.8449,  0.0000,  0.0000, ...,  15270958596096.0000,  1690849509376.0000,  0.0000]]
            --- FAIL: TestMXFP4Ops/cpu/mm/range/2d (0.00s)
                mxfp4_test.go:652: similarity: 1.000000
                mxfp4_test.go:654: expected (f32): 
                    [[ 0.00, -0.00, -0.00,  75361166659359744793894606340096.00],
                     [ NaN,  0.00,  2870649571581389438976.00, -234738752.00],
                     [-0.00, -1628357556185955682001879040.00,  51643.27, -5984.28],
                     [-0.00,  3804595943513184218023850840185372672.00,  3021600073877180690923188649984.00, -71868937808535687038404176904192.00]]
                    
                     but got (mxfp4): 
                    [[ 0.00, -0.00, -0.00,  75361166659359744793894606340096.00],
                     [ NaN,  0.00,  11482598286325557755904.00, -234738752.00],
                     [-0.00, -1628357556185955682001879040.00,  51643.27, -5984.28],
                     [-0.00,  951148985878296054505962710046343168.00,  3021600073877180690923188649984.00, -71868937808535687038404176904192.00]]
time=2025-08-16T05:06:47.167Z level=INFO source=ggml.go:92 msg="" architecture=test file_type=unknown name="" description="" num_tensors=1 num_key_values=3

OS

Linux

GPU

No response

CPU

Other

Ollama version

0.11.4

Originally created by @OTLabs on GitHub (Aug 16, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11933 ### What is the issue? I am building ollama 0.11.4 package for Alpine Linux. The mxfp4_test.go test fails on s390x platform only, https://gitlab.alpinelinux.org/otlabs/aports/-/jobs/1975190#L467. ### Relevant log output ```shell --- FAIL: TestMXFP4Ops (17.39s) --- FAIL: TestMXFP4Ops/cpu (17.38s) --- FAIL: TestMXFP4Ops/cpu/mulmatid (17.37s) --- FAIL: TestMXFP4Ops/cpu/mulmatid/exact (0.00s) mxfp4_test.go:116: expected (f32): [[-491549.97], [ 0.00], [-491549.97], [ 0.00]] but got (mxfp4): [[-30721.87], [ 0.00], [-30721.87], [ 0.00]] --- FAIL: TestMXFP4Ops/cpu/mm (0.01s) --- FAIL: TestMXFP4Ops/cpu/mm/exact/3x3 (0.00s) mxfp4_test.go:501: expected (f32): [[[-491549.9688]], [[-246966.9844]]] but got (mxfp4): [[[-30721.8730]], [[-964.7148]]] --- FAIL: TestMXFP4Ops/cpu/mm/exact/2x2 (0.01s) mxfp4_test.go:545: expected (f32): [[ 0.0000, 95387473936384.0000, -137446309888.0000, ..., 2846512.0000, -0.4101, -0.0064], [ 270630.0312, -0.0004, -35.5042, ..., -0.0034, -5932104274475491524608.0000, -56.8811], [ 0.0000, 0.0000, -2.7275, ..., 6841568.0000, 0.0000, -0.0000], ..., [-0.0000, 0.0000, -641644632315382122250351149056.0000, ..., 0.0000, -3399.2966, -6570912.5000], [ 6088888418304.0000, -5650080.5000, 0.0000, ..., 0.0000, -3735.4531, -809931120064856064.0000], [ 15.3796, 0.0000, 0.0000, ..., 15270958596096.0000, 108214368600064.0000, 0.0000]] but got (mxfp4): [[ 0.0000, 95387473936384.0000, -34361577472.0000, ..., 2846512.0000, -0.0256, -0.0064], [ 270630.0312, -0.0014, -35.5042, ..., -0.0034, -1518618694265725830299648.0000, -56.8811], [ 0.0000, 0.0000, -10.9099, ..., 6841568.0000, 0.0000, -0.0000], ..., [-0.0000, 0.0000, -641644632315382122250351149056.0000, ..., 0.0000, -13597.1865, -26283650.0000], [ 6088888418304.0000, -1412520.1250, 0.0000, ..., 0.0000, -933.8633, -809931120064856064.0000], [ 3.8449, 0.0000, 0.0000, ..., 15270958596096.0000, 1690849509376.0000, 0.0000]] --- FAIL: TestMXFP4Ops/cpu/mm/range/2d (0.00s) mxfp4_test.go:652: similarity: 1.000000 mxfp4_test.go:654: expected (f32): [[ 0.00, -0.00, -0.00, 75361166659359744793894606340096.00], [ NaN, 0.00, 2870649571581389438976.00, -234738752.00], [-0.00, -1628357556185955682001879040.00, 51643.27, -5984.28], [-0.00, 3804595943513184218023850840185372672.00, 3021600073877180690923188649984.00, -71868937808535687038404176904192.00]] but got (mxfp4): [[ 0.00, -0.00, -0.00, 75361166659359744793894606340096.00], [ NaN, 0.00, 11482598286325557755904.00, -234738752.00], [-0.00, -1628357556185955682001879040.00, 51643.27, -5984.28], [-0.00, 951148985878296054505962710046343168.00, 3021600073877180690923188649984.00, -71868937808535687038404176904192.00]] time=2025-08-16T05:06:47.167Z level=INFO source=ggml.go:92 msg="" architecture=test file_type=unknown name="" description="" num_tensors=1 num_key_values=3 ``` ### OS Linux ### GPU _No response_ ### CPU Other ### Ollama version 0.11.4
GiteaMirror added the bug label 2026-04-12 20:05:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#7920