TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Mediant32: An Alternative to FP32 and BF16 for Error-Aware Compute

3 点作者 muragekibicho大约 1 个月前

1 comment

muragekibicho大约 1 个月前
Just sharing some notes I compiled while building Mediant32, an alternative to fixed-point and floating-point for error-aware fraction computations. I was experimenting with continued fractions, the Stern-Brocot tree, and the field of rationals for my programming language. My overarching goal was to find out if I could efficiently represent floats using integer fractions. Along the way, I compiled these notes to share all the algorithms I found for working with powers, inverses, square roots and logarithms (all without converting to floating point) I call it Mediant32 and the number system features: 1. Integer-only inference. (Zero floating point ops) 2. Error aware training and inference. (You can accumulate errors as you go) 3. Built-in quantization for individual matrix elements. (You're working with fractions so you can choose numerators and denominators that align with your goals)