Skip to main content

Phi-structured floating-point formats for ML and scientific computing

Project description

GoldenFloat Python Bindings

Phi-structured floating-point formats for machine learning and scientific computing.

Installation

pip install golden-float

Quick Start

import numpy as np
from golden_float import gf16, gf32

# Create GoldenFloat values
phi = gf16(1.618)
pi = gf32(3.14159)

# Convert to float
print(phi.to_float())  # 1.618

# Arithmetic
result = phi + phi

# NumPy array support (with dtype registration)
arr = np.array([1.0, 1.618, 2.718], dtype=gf16)

Format Reference

Format Bits Use Case Memory vs f32
GF4 4 Ultra-compact quantization 12.5%
GF8 8 Minimal precision 25%
GF12 12 Embedded ML 37.5%
GF16 16 Primary format (replaces bfloat16) 50%
GF20 20 Balanced 62.5%
GF24 24 High precision 75%
GF32 32 Full precision (same size as f32) 100%

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

golden_float-0.1.0-cp311-abi3-win_amd64.whl (149.9 kB view details)

Uploaded CPython 3.11+Windows x86-64

golden_float-0.1.0-cp311-abi3-manylinux_2_34_x86_64.whl (250.2 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ x86-64

golden_float-0.1.0-cp311-abi3-macosx_11_0_arm64.whl (216.1 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file golden_float-0.1.0-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for golden_float-0.1.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 cfd0e0afabfe512d486821ae55c1daedf754e9cee45bcce04c4232adc3977506
MD5 2d60d7742ffc257e394d53c4e5fe8fb7
BLAKE2b-256 172c5883de0ddb852c5a3d782f0a0ad41c40aba855978825fe78879b6e82803c

See more details on using hashes here.

File details

Details for the file golden_float-0.1.0-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for golden_float-0.1.0-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3ae86f55ef4f3cd53a99b491cef9689c814a66fa6b69e76cb4ee923e2a924907
MD5 ec7f8353ff0c2d8316f64ea75e188502
BLAKE2b-256 eb408a2deb3ea9bb298a455c2035a9507e6513f2c94d7f5cf85f4ff5de1c3566

See more details on using hashes here.

File details

Details for the file golden_float-0.1.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for golden_float-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c30519595f458c9439f5d04896be7d1723393080098d697eecfacee81d4d5f0
MD5 e145903db0fc438ba54660e3948fbd72
BLAKE2b-256 21bf71143ab60c5d156d68c0a10ca1b2a4f0df9637acef47b83641c4ae11c467

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page