返回 2026-08-17 编辑版
原始行动中文优先 · EN 原文开源项目

Show HN:把 DeepSeek V4 Flash 压缩到 57GB 后在 Mac 上生成编译器

我专门构建了一个DeepSeek V4 Flash 0731的包(最初284B总参数,13B活动),保留推理、工具调用和编码功能:https://huggingface.co/steadfastgaze/DeepSeek-V4-Flash-0731-...我让它编写一个针对ARM64的最小C编译器,然后用Fibonacci和FizzBuzz程序测试结果,不到1小时就成功了,完整记录位于:https://youtu.be/XiwSilmV8B0 您可以使用我的引擎在 Silicon Mac 上运行它 https://github.com/steadfastgaze/MoEspresso ,而为获得此结果而开发的核心库之一可在 https://github.com/steadfastgaze/mlx-iqk 上找到。上述记录是在 128GB 内存 MacBook M3 Max 上进行的,但您也可以在具有非常可用的上下文(128K 令牌)和预计 5 tok/s 的 32GB MacBook 上运行它。我确实在无风扇 16GB 内存 MacBook Air M1 (1.39 tok/s) 上尝试过,但不幸的是可用的上下文非常小。如何: - 首先,高效量化:mlx-iqk 利用 IQ_K 张量编码,比通过 llama.cpp 或准系统 MLX 提供的编码更有效,最初由 Iwan Kawrakow 设计 - 我还将布局更改为 k 连续布局,以使其更快,至少在这个 Metal 设置中是这样。 - 其次,专家修剪:40 个学习路由器层中的每一层都有 256 个专家,并且

查看英文原文

Show HN: I shrank DeepSeek V4 Flash to 57GB and it wrote a compiler on my Mac

I built a specialized package of DeepSeek V4 Flash 0731 (originally 284B total parameters, 13B active), preserving reasoning, tool calling and coding capabilities: https://huggingface.co/steadfastgaze/DeepSeek-V4-Flash-0731-... I let it write a minimal C compiler targeting ARM64, then test the result with Fibonacci and FizzBuzz programs, and it succeeded in less than 1 hour, with the full recording at: https://youtu.be/XiwSilmV8B0 You can run it on Silicon Macs with my engine https://github.com/steadfastgaze/MoEspresso , while one of the core libraries developed to obtain this result is available at https://github.com/steadfastgaze/mlx-iqk . The above recording was on a 128GB memory MacBook M3 Max, but you can also run it on 32GB MacBooks with a very usable context (128K tokens) and projected 5 tok/s. I did try it on a fanless 16GB memory MacBook Air M1 (1.39 tok/s), but unfortunately the available context was very small. How: - First, efficient quantisation: mlx-iqk takes advantage of IQ_K tensor encoding, more efficient than the ones available via llama.cpp or barebones MLX, originally designed by Iwan Kawrakow - I also changed the layout to a k-contiguous one, to make it faster, at least in this Metal setup. - Second, expert pruning: each of the 40 learned-router layers had 256 experts, and not all of them are equally important for the coding use cases. I removed 80B parameters - this is a known technique called REAP, shared at https://www.cerebras.ai/blog/reap . - Third: balancing the cheapest IQ1_S_R4 tensor encoding (~1.5 bits per weight), selectively promoting projections to IQ2_KS or IQ2_K where the measured error reduction justified the bytes. One of the main ideas was not only to save relevant knowledge, but also to not make it forget how to... stop thinking, how to use reasoning. In the first experiments, it would sometimes reason for thousands of tokens without closing its thinking section, or it would go in loops. Then I solved this by heavily weighting tool-calling traces and structured reasoning in the calibration mix.

开放模型的耐久资产正在从一份权重,转向训练配方、科学记录和适配方法

为什么值得看

权重会快速迭代,真正可复用的价值更可能来自别人能否理解训练过程、复现实验并把模型改造成适合具体硬件与任务的资产。开放程度因此需要从许可证扩展到方法和证据。

最强反方

前两条是研究者观点,DeepSeek 压缩效果是项目作者自述;现有材料没有独立复现其编译器任务、质量保持和不同设备性能,也不能据此断言行业已经形成新的开放标准。

原始出现与传播对照

1 条出现 · 本次 AIHOT 未精确命中

原始行动

Show HN:我将 DeepSeek V4 Flash 缩小到 57GB,它在我的 Mac 上编写了一个编译器

我专门构建了一个DeepSeek V4 Flash 0731的包(最初284B总参数,13B活动),保留推理、工具调用和编码功能:https://huggingface.co/steadfastgaze/DeepSeek-V4-Flash-0731-...我让它编写一个针对ARM64的最小C编译器,然后用Fibonacci和FizzBuzz程序测试结果,不到1小时就成功了,完整记录位于:https://youtu.be/XiwSilmV8B0 您可以使用我的引擎在 Silicon Mac 上运行它 https://github.com/steadfastgaze/MoEspresso ,而为获得此结果而开发的核心库之一可在…

查看英文原文

Show HN: I shrank DeepSeek V4 Flash to 57GB and it wrote a compiler on my Mac

I built a specialized package of DeepSeek V4 Flash 0731 (originally 284B total parameters, 13B active), preserving reasoning, tool calling and coding capabilities: https://huggingface.co/steadfastgaze/DeepSeek-V4-Flash-0731-... I let it write a minimal C compiler targeting ARM64, then test the result with Fibonacci and FizzBuzz programs, and it succeeded in less than 1 hour, with the full recording at: https://youtu.be/XiwSilmV8B0 You can run it on Silicon Macs with my engine https://github.com/steadfastgaze/MoEspresso , while one of the core libraries developed to obtain this result is available at https://github.com/steadfastgaze/mlx-iqk . The above recording was on a 128GB memory MacBook M3 Max, but you can also run it on 32GB MacBooks with a very usable context (128K tokens) and projected 5 tok/s. I did try it on a fanless 16GB memory MacBook Air M1 (1.39 tok/s), but unfortunately the available context was very small. How: - First, efficient quantisation: mlx-iqk takes advantage of IQ_K tensor encoding, more efficient than the ones available via llama.cpp or barebones MLX, originally designed by Iwan Kawrakow - I also changed the layout to a k-contiguous one, to make it faster, at least in this Metal setup. - Second, expert pruning: each of the 40 learned-router layers had 256 experts, and not all of them are equally important for the coding use cases. I removed 80B parameters - this is a known technique called REAP, shared at https://www.cerebras.ai/blog/reap . - Third: balancing the cheapest IQ1_S_R4 tensor encoding (~1.5 bits per weight), selectively promoting projections to IQ2_KS or IQ2_K where the measured error reduction justified the bytes. One of the main ideas was not only to save relevant knowledge, but also to not make it forget how to... stop thinking, how to use reasoning. In the first experiments, it would sometimes reason for thousands of tokens without closing its thinking section, or it would go in loops. Then I solved this by heavily weighting tool-calling traces and structured reasoning in the calibration mix.

直接发布标题hacklas@hacklas打开该层出处 ↗

Show HN: I shrank DeepSeek V4 Flash to 57GB and it wrote a compiler on my Mac

直接发布摘要hacklas@hacklas打开该层出处 ↗

I built a specialized package of DeepSeek V4 Flash 0731 (originally 284B total parameters, 13B active), preserving reasoning, tool calling and coding capabilities:<p><a href="https:&#x2F;&#x2F;huggingface.co&#x2F;steadfastgaze&#x2F;DeepSeek-V4-Flash-0731-Coder-56.8GB-MoEspressoV2" rel="nofollow">https:&#x2F;&#x2F;huggingface.co&#x2F;steadfastgaze&#x2F;DeepSeek-V4-Flash-0731-...</a><p>I let it write a minimal C compiler targeting ARM64, then test the result with Fibonacci and FizzBuzz programs, and it succeeded in less than 1 hour, with the full recording at:<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;XiwSilmV8B0" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;XiwSilmV8B0</a><p>You can run it on Silicon Macs with my engine <a href="https:&#x2F;&#x2F;github.com&#x2F;steadfastgaze&#x2F;MoEspresso" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;steadfastgaze&#x2F;MoEspresso</a>, while one of the core libraries developed to obtain this result is available at <a href="https:&#x2F;&#x2F;github.com&#x2F;steadfastgaze&#x2F;mlx-iqk" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;steadfastgaze&#x2F;mlx-iqk</a>.<p>The above recording was on a 128GB memory MacBook M3 Max, but you can also run it on 32GB MacBooks with a very usable context (128K tokens) and projected 5 tok&#x2F;s. I did try it on a fanless 16GB memory MacBook Air M1 (1.39 tok&#x2F;s), but unfortunately the available context was very small.<p>How: - First, efficient quantisation: mlx-iqk takes advantage of IQ_K tensor encoding, more efficient than the ones available via llama.cpp or barebones MLX, originally designed by Iwan Kawrakow - I also changed the layout to a k-contiguous one, to make it faster, at least in this Metal setup.<p>- Second, expert pruning: each of the 40 learned-router layers had 256 experts, and not all of them are equally important for the coding use cases. I removed 80B parameters - this is a known technique called REAP, shared at <a href="https:&#x2F;&#x2F;www.cerebras.ai&#x2F;blog&#x2F;reap" rel="nofollow">https:&#x2F;&#x2F;www.cerebras.ai&#x2F;blog&#x2F;reap</a>.<p>- Third: balancing the cheapest IQ1_S_R4 tensor encoding (~1.5 bits per weight), selectively promoting projections to IQ2_KS or IQ2_K where the measured error reduction justified the bytes.<p>One of the main ideas was not only to save relevant knowledge, but also to not make it forget how to... stop thinking, how to use reasoning. In the first experiments, it would sometimes reason for thousands of tokens without closing its thinking section, or it would go in loops.<p>Then I solved this by heavily weighting tool-calling traces and structured reasoning in the calibration mix.

来源
Show HN · show-hn
证据角色
project_and_comment_discovery
时间状态
known
用户判决
未判
查看该来源原文raw/show-hn.json67fd0a32cb95dadf0e5eaa327412d82f1652e56a164ac74967ef6783b9752a76
Cluster IDevt_40e4ea3b0fa58ebcb8dd8b6d精确去重依据canonical_url事件状态未判