-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heads up re: proposal to add Float16Array to JavaScript #373
Comments
Thanks @bakkot - looking forward to |
@bakkot Please also consider adding comparable typed arrays for float8 and bfloat16 at the same time. These two new data types have gained support from major GPU hardware vendors in recent years. More ML models will be taking advantage of these in the near future. If you are adding float16, these two types should probably be added also. |
I'll assign a v2 label to this issue to signal the WG is supportive of TC39's This half-precision float is particularly useful and demonstrably improves inference performance of e.g. latent text-to-image diffusion models (Stable Diffusion et al.) and super-resolution models (discussed in #127). This is worth prototyping already, results to be shared in this issue to keep interested folks informed. |
- Note TC39 Float16Array proposal is WIP - Update issue links Related #373 (Bikeshed syntax not supported inside tables, thus plain HTML.)
Update: the proposal to add Float16Array to JavaScript today reached stage 3, meaning the design is finished, the committee is in favor, and engines can start implementing and shipping it. |
- Note TC39 Float16Array proposal is WIP - Update issue links Related #373 (Bikeshed syntax not supported inside tables, thus plain HTML.)
@bakkot I'm happy to let you know Also, please let us know if there are substantive developments for |
Good to hear! I'll go ahead and close this issue. The main remaining thing needed for If anyone on this project has experience working with the implementation of TypedArrays in mainstream JS engines and wants to contribute, the issue linked above has pointers to the relevant issues on the the bug trackers for the big three engines. |
- Note TC39 Float16Array proposal is WIP - Update issue links Related webmachinelearning#373 (Bikeshed syntax not supported inside tables, thus plain HTML.)
(Recent float16 implementation experience via @phoddie in TC39 issue tc39/proposal-float16array#13 and PR tc39/proposal-float16array#14 Feedback welcome in the upstream issue/PR. Implementation status: tc39/proposal-float16array#7) |
I'm on TC39, and I'm working on advancing a proposal for Float16Array in JavaScript, which would hold IEEE binary16 floats (also called float16, fp16, f16, half precision floats, etc). I note that this spec has support for float16 values, and there is an outstanding issue in the spec about using ArrayBuffers containing float16s, which is currently impractical due to the lack of Float16Array in JS (the issue links to a thread in which this comment says "It would be good to have the Float16Array support").
The proposal is currently at stage 2, which means TC39 has not yet committed to add it to JS. But since it seems directly relevant here, I wanted to make participants here aware that it may be coming in the hopefully not-to-distant future.
The text was updated successfully, but these errors were encountered: