{"id":30754153,"url":"https://github.com/murrellgroup/microfloats.jl","last_synced_at":"2026-02-12T05:35:50.825Z","repository":{"id":308790869,"uuid":"1034103644","full_name":"MurrellGroup/Microfloats.jl","owner":"MurrellGroup","description":"Slow, low-precision floating point types","archived":false,"fork":false,"pushed_at":"2025-09-01T11:34:13.000Z","size":302,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T12:36:42.068Z","etag":null,"topics":["floating-point","fp4","fp6","fp8","microfloat","microscaling","minifloat"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MurrellGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-07T21:10:17.000Z","updated_at":"2025-09-01T11:32:01.000Z","dependencies_parsed_at":"2025-08-07T23:36:14.352Z","dependency_job_id":"ab17d8a1-ca3d-4fc6-85a9-7c33c60bba93","html_url":"https://github.com/MurrellGroup/Microfloats.jl","commit_stats":null,"previous_names":["murrellgroup/microfloats.jl"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/MurrellGroup/Microfloats.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurrellGroup%2FMicrofloats.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurrellGroup%2FMicrofloats.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurrellGroup%2FMicrofloats.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurrellGroup%2FMicrofloats.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MurrellGroup","download_url":"https://codeload.github.com/MurrellGroup/Microfloats.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MurrellGroup%2FMicrofloats.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273581218,"owners_count":25131393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["floating-point","fp4","fp6","fp8","microfloat","microscaling","minifloat"],"created_at":"2025-09-04T09:06:18.468Z","updated_at":"2026-02-12T05:35:50.818Z","avatar_url":"https://github.com/MurrellGroup.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"docs/src/assets/icon.svg\" width=\"200\" align=\"right\"\u003e Microfloats\n\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://MurrellGroup.github.io/Microfloats.jl/stable/)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://MurrellGroup.github.io/Microfloats.jl/dev/)\n[![Build Status](https://github.com/MurrellGroup/Microfloats.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/MurrellGroup/Microfloats.jl/actions/workflows/CI.yml?query=branch%3Amain)\n[![Coverage](https://codecov.io/gh/MurrellGroup/Microfloats.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/MurrellGroup/Microfloats.jl)\n\nMicrofloats is a Julia package that implements types and arithmetic (through wider intermediates) for sub-8 bit floating points, supporting arbitrary combinations of sign, exponent, and mantissa (significand) bits.\n\nInstances of a sub-8 bit floating point type are still 8 bits wide in memory; the goal of `Microfloat` is to serve as a base for arithmetic operations and method dispatch, lending downstream packages a good abstraction for doing bitpacking and hardware acceleration.\n\n## Usage\n\nAlong with the types already exported by Microfloats, we can also create our own types by passing the number of sign, exponent, and mantissa bits to the `Microfloat` type constructor. For example, one can recreate the `Float8` and `Float8_4` types exported by Float8s.jl:\n\n```julia\nusing Microfloats\n\n# IEEE_754_like variant for {Float64,Float32,Float16}-like overflowing\nconst MicrofloatIEEE{S,E,M} = Microfloat{S,E,M,IEEE_754_like}\n\nconst Float8 = MicrofloatIEEE{1,3,4}\nconst Float8_4 = MicrofloatIEEE{1,4,3}\n\n# creating a sawed-off Float16 (BFloat8?) becomes trivial:\nconst Float8_5 = MicrofloatIEEE{1,5,2}\n\n# unsigned variants:\nconst UFloat7 = MicrofloatIEEE{0,3,4}\nconst UFloat7_4 = MicrofloatIEEE{0,4,3}\nconst UFloat7_5 = MicrofloatIEEE{0,5,2}\n```\n\n### Microscaling (MX)\n\nMicrofloats implements the E4M3, E5M2, E2M3, E3M2, E2M1, and E8M0 types from the [Open Compute Project Microscaling Formats (MX) Specification](https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf). These are exported as `MX_E4M3`, `MX_E5M2`, `MX_E2M3`, `MX_E3M2`, `MX_E2M1`, and `MX_E8M0`, respectively, with most of these using saturated arithmetic (no Inf or NaN), and a different encoding for the types that do have NaNs.\n\nFor INT8, see `FixedPointNumbers.Q1f6`.\n\n\u003e [!NOTE]\n\u003e MX types may not be fully MX compliant, but efforts have been and continue to be made to adhere to the specification. See issues with the [![MX-compliance](https://img.shields.io/github/labels/MurrellGroup/Microfloats.jl/mx-compliance)](https://github.com/MurrellGroup/Microfloats.jl/labels/mx-compliance) label.\n\nSince Microfloats.jl only implements the primitive types, microscaling itself may be done with [Microscaling.jl](https://github.com/MurrellGroup/Microscaling.jl), which includes quantization and bitpacking.\n\n## Installation\n\n```julia\nusing Pkg\nPkg.Registry.add(url=\"https://github.com/MurrellGroup/MurrellGroupRegistry\")\nPkg.add(\"Microfloats\")\n```\n\n## See also\n\n- [Microscaling.jl](https://github.com/MurrellGroup/Microscaling.jl)\n- [FixedPointNumbers.jl](https://github.com/JuliaMath/FixedPointNumbers.jl)\n- [MicroFloatingPoints.jl](https://github.com/goualard-f/MicroFloatingPoints.jl)\n- [DLFP8Types.jl](https://github.com/chengchingwen/DLFP8Types.jl)\n- [Float8s.jl](https://github.com/JuliaMath/Float8s.jl)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurrellgroup%2Fmicrofloats.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurrellgroup%2Fmicrofloats.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurrellgroup%2Fmicrofloats.jl/lists"}