Spaces:
Running
Running
Add reference to FP16 repo
Browse files
ggml.c
CHANGED
|
@@ -75,6 +75,9 @@ ggml_fp16_t ggml_fp32_to_fp16(float x) {
|
|
| 75 |
|
| 76 |
#include <immintrin.h>
|
| 77 |
|
|
|
|
|
|
|
|
|
|
| 78 |
static inline float fp32_from_bits(uint32_t w) {
|
| 79 |
union {
|
| 80 |
uint32_t as_bits;
|
|
|
|
| 75 |
|
| 76 |
#include <immintrin.h>
|
| 77 |
|
| 78 |
+
// FP16 <-> FP32
|
| 79 |
+
// ref: https://github.com/Maratyszcza/FP16
|
| 80 |
+
|
| 81 |
static inline float fp32_from_bits(uint32_t w) {
|
| 82 |
union {
|
| 83 |
uint32_t as_bits;
|