mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.7K
active users

#float

0 posts0 participants0 posts today

70% Size, 100% Accuracy: Lossless LLM Compression via Dynamic-Length Float

arxiv.org/abs/2504.11651

#HackerNews #Lossless #LLM #Compression #Dynamic-Length #Float #AI #Research #Machine #Learning

arXiv logo
arXiv.org70% Size, 100% Accuracy: Lossless LLM Compression for Efficient GPU Inference via Dynamic-Length FloatLarge Language Models (LLMs) have grown rapidly in size, creating significant challenges for efficient deployment on resource-constrained hardware. In this paper, we introduce Dynamic-Length Float (DFloat11), a lossless compression framework that reduces LLM size by 30% while preserving outputs that are bit-for-bit identical to the original model. DFloat11 is motivated by the low entropy in the BFloat16 weight representation of LLMs, which reveals significant inefficiency in existing storage format. By applying entropy coding, DFloat11 assigns dynamic-length encodings to weights based on frequency, achieving near information-optimal compression without any loss of precision. To facilitate efficient inference with dynamic-length encodings, we develop a custom GPU kernel for fast online decompression. Our design incorporates the following: (i) decomposition of memory-intensive lookup tables (LUTs) into compact LUTs that fit in GPU SRAM, (ii) a two-phase kernel for coordinating thread read/write positions using lightweight auxiliary variables, and (iii) transformer-block-level decompression to minimize latency. Experiments on recent models, including Llama-3.1, Qwen-2.5, and Gemma-3, validates our hypothesis that DFloat11 achieves around 30% model size reduction while preserving bit-for-bit exact outputs. Compared to a potential alternative of offloading parts of an uncompressed model to the CPU to meet memory constraints, DFloat11 achieves 1.9-38.8x higher throughput in token generation. With a fixed GPU memory budget, DFloat11 enables 5.3-13.17x longer context lengths than uncompressed models. Notably, our method enables lossless inference of Llama-3.1-405B, an 810GB model, on a single node equipped with 8x80GB GPUs. Our code and models are available at https://github.com/LeanModels/DFloat11.
lieber tristan, du wolltest gerne wissen, wie groß axolotl werden können: sie können zwischen 23 und 30 cm lang werden. sie werden bis zu 20 jahre alt. das einzigartige an ihnen ist, dass sich ihre organe wie gliedmaßen, auch teile des gehirns und des herzens nach einer verletzung vollständig wieder herstellen. wissenschaftler untersuchen warum diese amphibien das können. sie haben bereits herausgefunden, dass sie das größte genom besitzen, das bisher entschlüsselt wurde.

acrylic painting on canvas 2020

#axolotl #texcoco #lurch #Mexicanwalkingfish #salamander #walkingfish #endemism #painting #cave #mexico #exploration #science #regeneration #shadesofgreen #genome #olm #drift #float #moki #mioke
OJEN COCKTAIL

3 dashes Peychauds bitters
¼ oz (optional) orgeat
2 oz Ojen anise liqueur

Garnish: Peychauds float
Method: Fill a chilled double old fashioned glass halfway with crushed ice, add the anise liqueur, optional orgeat, the initial dashes of Peychauds, and swizzle. Add more crushed ice and swizzle again. Finally, top with additional crushed ice until it is higher than the glass, and float the Peychauds bitters on top.

🔗 https://potentpotables.app/drinks/ojen-cocktail/

This one was inspired by @SonicAlligator@gram.social who recently posted a top-down photo of a negroni. The spec actually calls for crushed ice, but the large rock plus Peychauds float is still a really pretty effect IMO. It definitely needs crushed ice and a good swizzle to taste like the spec intends though. The spec comes from the book Cure: New Orleans drinks and how to mix 'em, page 51.

#alcohol #cocktail #cocktails #homeBar #mixology #ojen #anise #liqueur #peychauds #bitters #orgeat #almond #syrup #clearIce #float #drinkstodon #fedithirst
Sophgo presented it's new SG2044 in #Shanghai today. That's an evolution of SG2042, with a 64 core based on an updated version of T-Head #RISCV C920 core, with RV #Vector extension 1.0 (RVV1.0) this time, and a new #Matrix extension, with matrix registers and tiles register (that's huge for #LinearAlgebra, there is some AI usage announced too). The specifications are in version 0.6 and proposed as RISC-V standard open extension, you can download the specs 0.6 of matrix extension from 24 december 2024 here. They also upgrade the frequency from 2.0 GHz to 2.5 GHz, PCI-e from Gen4 x32 to to Gen5.0 x80 and 4x DDR4@3200 o 8x LPDDR5x@9000. This will keep a 120W TDP.

A patched {Gnu toolchain (and SHL library & HHB toolkit for neural network usage) already allow to compile them, it will probably incorporated in mainline #GCC and #Linux, as previous T-Head extensions. And there are also patchs for #Qemu for testing. see the Xuantie RISC-V git repository on Github. These sources and patchs also include some examples.

exemple of RISC-V matrix extension #assembly multiplications:

#float matrix multiplication, output double_widen, md = md + ms1*ms2
mfmacc.h.e4 md, ms2, ms1
mfmacc.h.e5 md, ms2, ms1
mfmacc.bf16.e4 md, ms2, ms1
mfmacc.bf16.e5 md, ms2, ms1
mfmacc.s.bf16 md, ms2, ms1
mfmacc.s.h md, ms2, ms1
mfmacc.d.s md, ms2, ms1

The Aquatic Fabric Sculptures of Mariko Kusumoto

The artist, among other methods, uses the Japanese folding technique known as ‘tsumami zaiku’ to craft vibrant textile creations.

Sea anemones, tulips, algae, jellyfish, corals, and fossilized shells–Mariko Kusumoto’s creations share a common thread: they all represent the animal or plant kingdoms and appear to float dreamily.

pen-online.com/design/the-aqua