Download utils/constant.py from msj19/newfla4: direct link, hf CLI and curl.
- Browser
- Download file 220 Bytes
-
https://huggingface.co/msj19/newfla4/resolve/main/utils/constant.py
- Command line
-
hf download hf://msj19/newfla4/utils/constant.py
-
curl -L -o constant.py https://huggingface.co/msj19/newfla4/resolve/main/utils/constant.py
220 Bytes
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2023-2025, Songlin Yang, Yu Zhang | |
| # Approximate value of 1/ln(2), used for log/exp base conversion | |
| # Best FP32 approximation: 1.4426950216 (hex 0x3FB8AA3B) | |
| RCP_LN2 = 1.4426950216 | |