From 19817711b4974007adae08a80d633a8359cc28b0 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 18 Oct 2022 19:48:34 +0300 Subject: [PATCH] Add reference to FP16 repo --- ggml.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ggml.c b/ggml.c index 4861f24..115e619 100644 --- a/ggml.c +++ b/ggml.c @@ -75,6 +75,9 @@ ggml_fp16_t ggml_fp32_to_fp16(float x) { #include +// FP16 <-> FP32 +// ref: https://github.com/Maratyszcza/FP16 + static inline float fp32_from_bits(uint32_t w) { union { uint32_t as_bits;