Instructions to use jonl521/modeling_simple with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jonl521/modeling_simple with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jonl521/modeling_simple", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download .venv/lib/python3.14/site-packages/torch/include/fp16/bitcasts.h from jonl521/modeling_simple: direct link, hf CLI and curl.
- Browser
- Download file 2.15 kB
-
https://huggingface.co/jonl521/modeling_simple/resolve/main/.venv/lib/python3.14/site-packages/torch/include/fp16/bitcasts.h
- Command line
-
hf download hf://jonl521/modeling_simple/.venv/lib/python3.14/site-packages/torch/include/fp16/bitcasts.h
-
curl -L -o bitcasts.h https://huggingface.co/jonl521/modeling_simple/resolve/main/.venv/lib/python3.14/site-packages/torch/include/fp16/bitcasts.h
2.15 kB
| static inline float fp32_from_bits(uint32_t w) { | |
| return as_float(w); | |
| return __uint_as_float((unsigned int) w); | |
| return _castu32_f32(w); | |
| return _CopyFloatFromInt32((__int32) w); | |
| union { | |
| uint32_t as_bits; | |
| float as_value; | |
| } fp32 = { w }; | |
| return fp32.as_value; | |
| } | |
| static inline uint32_t fp32_to_bits(float f) { | |
| return as_uint(f); | |
| return (uint32_t) __float_as_uint(f); | |
| return _castf32_u32(f); | |
| return (uint32_t) _CopyInt32FromFloat(f); | |
| union { | |
| float as_value; | |
| uint32_t as_bits; | |
| } fp32 = { f }; | |
| return fp32.as_bits; | |
| } | |
| static inline double fp64_from_bits(uint64_t w) { | |
| return as_double(w); | |
| return __longlong_as_double((long long) w); | |
| return _castu64_f64(w); | |
| return _CopyDoubleFromInt64((__int64) w); | |
| union { | |
| uint64_t as_bits; | |
| double as_value; | |
| } fp64 = { w }; | |
| return fp64.as_value; | |
| } | |
| static inline uint64_t fp64_to_bits(double f) { | |
| return as_ulong(f); | |
| return (uint64_t) __double_as_longlong(f); | |
| return _castf64_u64(f); | |
| return (uint64_t) _CopyInt64FromDouble(f); | |
| union { | |
| double as_value; | |
| uint64_t as_bits; | |
| } fp64 = { f }; | |
| return fp64.as_bits; | |
| } | |