Linux 中的人工智能
AI in Linux

原始链接: https://drewdevault.com/blog/AI-in-Linux/

将大语言模型(LLM)整合进 Linux 内核开发——以“Assisted-by”(AI 辅助)提交的兴起和 Sashiko 代码审查工具的使用为代表——引发了激烈的争论。林纳斯·托瓦兹(Linus Torvalds)坚定地支持人工智能,并坚持认为内核项目仅专注于技术卓越,而非社会、伦理或政治考量。 作者对这一立场提出了质疑,认为托瓦兹拒绝政治讨论的说法是虚伪的。作者指出,Linux 项目本身就建立在政治基础之上,例如战略性地使用 GPLv2 协议来强制要求开源贡献并维持集中控制。作者认为,通过无视关于人工智能环境影响、其在硬件通胀中的角色,以及将强大科技公司合法化所带来的伦理影响等正当关切,托瓦兹正在推行一种便利的双重标准。 摘要总结称,由于 Linux 的体量过于庞大且相互交织,实际上无法进行分叉,因此社区有责任讨论人工智能工具的更广泛外部效应。作者认为,拒绝进行这种“道德考量”可能会疏远有才华的贡献者,并忽略了该项目在全球技术和政治格局中的重大影响力。

关于 Drew DeVault 撰写的关于人工智能在 Linux 开发中应用的文章,Hacker News 上展开了激烈的讨论。争论的焦点在于 Linux 内核项目是否应该就人工智能的使用采取道德和政治立场。 支持整合人工智能的一方侧重于技术实用性,认为“大局已定”,并表示在人工智能已成为软件开发必然趋势的情况下,抵制是徒劳的。相反,批评者则提出了重大的道德和法律担忧。环境方面的观点强调了支持人工智能所需的巨大能源和水资源消耗;而法律方面的质疑者则警告称,大语言模型生成的代码会造成潜在的版权和许可“定时炸弹”,威胁到 GPLv2 的完整性。 此外,一些用户担心对人工智能的依赖会将 Linux 的发展方向拱手让给大型且政治化的科技公司。虽然一些评论者认为 Linux 应保持中立,仅专注于技术价值,但另一些人则认为每一项贡献本质上都是政治性的,项目必须解决与人工智能工具相关的外部成本,例如气候影响和作者透明度问题。总而言之,开源社区在务实接纳与对未来发展的审慎态度之间仍存在严重分歧。
相关文章

原文

The role of AI tools (LLMs, mainly) in Linux is under discussion, or it was, until Linus Torvalds “put his foot down” in support of the use of AI in Linux kernel development.

I can identify two major ways in which AI is used for Linux kernel development: authoring code and reviewing code. There are, at the time of writing, just over 1,200 kernel commits with an “Assisted-by” tag, from September 2025 to the present, most of which indicate patches which were written or assisted by LLM tools.

The second important use of AI for Linux comes with a new code review tool called Sashiko, which generates code reviews for patches considered for various subsystems. Sashiko ignited the current debate on AI in Linux because it pushes the envelope on AI in Linux: people who oppose or do not want to use AI could previously just refrain from using it to write their patches, but now there is a growing expectation that anyone who wants to contribute to Linux will have to interact with Sashiko or other AI tools like it to iterate on AI-generated feedback on their work.

One of the major lines of this discussion in the Linux kernel community has been with respect to the ethical considerations of the use of LLMs. Linus shuts this line of reasoning down entirely, firmly grounding the discussion in technical merits and rejecting any political discourse on the matter:

The kernel project has been and will continue to be about the technology.

Sure, the social angle of working on open source is important and often a very motivating part of the project, but in the end that’s a side benefit, not the point of the project.

This is NOT some kind of “social warrior” project, never has been, and never will be.

In the kernel community we do open source because it results in better technology, not because of religious reasons.

This argumentation is disingenuous and hypocritical. Linux is a political project and Linus is a political actor. Consider the use of the GPLv2 for licensing Linux. One can argue from technical merits – for instance, the copyleft nature of the GPLv2 pushes people, and in particular commercial entities, to upstream their drivers and other contributions into the Linux kernel. This contributes to the technical excellence for the kernel as a result.

But is this not a political choice, and a political act? The purpose of this choice is to influence the behavior of others and to advance the interests of the kernel ahead of their own. And Linus stuck to this decision for political reasons when GPLv3 was introduced, reasoning from morality and ethics when objecting to the license and the manner in which it was deployed, and called for a tacit boycott of the FSF.

Linus, and Linux, wields a tremendous degree of power and influence over the world, and it should be wielded responsibly. When Linus says the following:

Linux is not one of those anti-AI projects, and if somebody has issues with that, they can do the open-source thing and fork it.

Or just walk away.

I find it completely disingenuous. Linus is surely aware that, for all practical purposes, Linux cannot be forked. It is the world’s largest software project, and one of the most well-funded, too. The institutional knowledge among its contributors, the prospect of keeping up with the blistering pace of change, or even putting together a group of people with the time and funding to understand and maintain even a fraction of the kernel’s code independently of upstream, is, quite simply, intractable. Linus knows, this, too – it’s an explicitly cited reason for decisions like the use of the GPL, GPL-only symbols, and the unstable internal kernel ABI: to make the process of independently maintaining a fork of the kernel as difficult as possible.

People are right to petition Linux upstream to amend its behavior and policies before resorting to the impossible. Working on Linux requires practicing politics, both internally – see for example Linus’ response to the discussions around bcachefs, which had high technical excellence and low social/political competence – and at the intersection of Linux and the rest of the world. Therefore, we must table political, moral, and ethical arguments when we discuss how we go about the work. It’s a cheap, weak argument to direct the discussion away from political and ethical considerations when it wouldn’t serve your point and to table it when it would.

I’m willing to believe that the LLM-powered Sashiko code reviews provide a lot of good insights. However, to address just one externality of this tool, consider that AI companies are driving up the price of consumer hardware. An AI powered code review may improve a patch, but that patch won’t be of much use to the increasingly large cohort of people who are being priced out of the hardware they could run Linux on to enjoy the better patch.

Looking at it from another angle: how many tons of CO₂ added to the atmosphere or liters of fresh water supplies disrupted is a tolerable price for a better code review? Temperatures during heat waves are exceeding 50°C in India, causing tens thousands of deaths. The AI built-out is by far the fastest growing energy consumer in the world, and they’re being built with fossil fuels, or drawing green energy demand away from replacing the fossil fuels depended on by other industries. The same process is pricing regular people out of the energy they need to power their air conditioner during those heat waves and the technology it enables is pushing them out of the labor market and into poverty.

These externalities are very real, and are affecting a lot of people, including Linux kernel contributors and maintainers, and their friends and families, who are trying to bring these problems to Linus’ attention.

And what of the intangible effects of the use of these tools in Linux? Linux is lending some of the project’s immense influence towards legitimizing the makers of these tools, and Linus’ insistence on focusing narrowly on the technical applications of these tools is a generous gift to them. They will be sure to mention his support in boardrooms, meetings between lobbyists and governments, and anywhere else it will advance their interests.

It’s fair to ask: what are those interests, and what are they doing with this influence?

Photograph prominently featuring Mark Zuckerberg, Jeff Bezos and his wife, Sundar Pichai, and Elon Musk
Google CEO Sundar Pichai pictured at Donald Trump’s inauguration, together with other influential commercial leaders in AI. Sashiko primarily depends on Google Gemini for Linux kernel code reviews.

There are a lot of smart, passionate people who care about these kinds of questions. Where is the technical excellence in refusing to do this moral calculus, refusing to allow anyone else to do so, and driving away the talented Linux contributors who care about these problems? Linus Torvalds, the Linux community, and all of our communities should have the courage and insight to address these dimensions of the AI question honestly and in good faith.

联系我们 contact @ memedata.com