Preserve double precision when parsing FP64 REST inputs
维护者通常 2 天内回复
评估
调研方向
Read the FP64 conversion in src/rest_parser.cpp and the regression test in src/test/kfs_rest_parser_test.cpp. Check how the parsed value is stored in protobuf fp64_contents, then run the parser test with the project’s C++ test setup. Done means the test confirms 1.23456789012345 retains double precision; an open linked pull request already addresses this issue.
由索引模型根据 Issue 内容生成。
描述
Description
The KServe REST parser's FP64 handling appears to convert JSON numeric values to single-precision float using RapidJSON GetFloat() before storing them in protobuf fp64_contents, which is a double field. This loses precision for FP64 inputs.
Expected behavior
FP64 REST input values should retain double precision when parsed.
Reproduction
Send a KServe REST request with an input containing:
datatype:FP64shape:[1]data:[1.23456789012345]
The parsed value should match the original double.
Evidence
Source inspection identifies the GetFloat() conversion in src/rest_parser.cpp. A numerical check shows the value becomes 1.2345678806304932 after float32 conversion, rather than 1.23456789012345.
Test status
A regression test has been added to src/test/kfs_rest_parser_test.cpp, but the C++ test has not been executed because Bazel and Bazelisk are unavailable in the current environment.
- 主要语言
- C++
- 星标
- 952
- 派生
- 285
- 平均合并
- 3 天 5 小时
- 30 天内合并 PR
- 45
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openvinotoolkit/model_server 的其他 Issue
-
KServe REST parser drops requested outputs except the last可能已有人在做 @YugShah1510 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
openvinotoolkit/model_server#4690 ·
维护者通常 2 天内回复
-
KServe REST rejects INT64 and UINT64 values outside 32-bit range可能已有人在做 @YugShah1510 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
openvinotoolkit/model_server#4688 ·
维护者通常 2 天内回复
-
Rerank with an empty documents array or object documents fails with an internal tokenizer error可能已有人在做 @Daksha1611 于 4 天前认领。 未关闭
难度 4/5 1-2 天 新手友好度 24/100
openvinotoolkit/model_server#4671 ·
维护者通常 2 天内回复
-
Downloading an image from a URL has no timeout可能已有人在做 @Daksha1611 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
openvinotoolkit/model_server#4669 ·
维护者通常 2 天内回复
-
max_tokens and best_of reject a value equal to their configured limit可能已有人在做 @Daksha1611 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
openvinotoolkit/model_server#4666 ·
维护者通常 2 天内回复
查看 openvinotoolkit/model_server 的全部 Issue
相似的 Issue
-
Eval bug: minimax-m3: build_moe_ffn() drops the per-expert NVFP4 scale → garbled output (M3.1 Flash)未关闭bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
Status: Needs confirmation Status: Needs triage
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
[BUG] Failed archive extraction deletes the dataset cache可能已有人在做 @dajiaohuang 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
alibaba/GraphScope#4674 ·
-
难度 1/5 1 小时以内 新手友好度 93/100
webarkit/WebARKitLib#107 ·
维护者通常 1 天内回复