workflows.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ANNOUNCE] AUTOSEL: Modern AI-powered Linux Kernel Stable Backport Classifier
@ 2025-05-05 18:11 Sasha Levin
  2025-05-06 14:21 ` Jakub Kicinski
  0 siblings, 1 reply; 5+ messages in thread
From: Sasha Levin @ 2025-05-05 18:11 UTC (permalink / raw)
  To: stable, workflows

Hello folks,

I'm pleased to announce the release of AUTOSEL, a complete rewrite of the
stable kernel patch selection tool that Julia Lawall and I presented back in
2018[1].  Unlike the previous version that relied on word statistics and older
neural network techniques, AUTOSEL leverages modern large language models and
embedding technology to provide significantly more accurate recommendations.

## What is AUTOSEL?

AUTOSEL automatically analyzes Linux kernel commits to determine whether they
should be backported to stable kernel trees. It examines commit messages, code
changes, and historical backporting patterns to make intelligent recommendations.

This is a complete rewrite of the original tool[1], with several major improvements:

1. Uses large language models (Claude, OpenAI, NVIDIA models) for semantic understanding
2. Implements embeddings-based similar commit retrieval for better context
3. Provides detailed explanations for each recommendation
4. Supports batch processing for efficient analysis of multiple commits

## Key Features

- Support for multiple LLM providers (Claude, OpenAI, NVIDIA)
- Self-contained embeddings using Candle
- Optional CUDA acceleration for faster analysis
- Detailed explanations of backporting decisions
- Extensive test coverage and validation

## Getting Started

```
git clone https://git.sr.ht/~sashal/autosel
cd autosel
cargo build --release
```

To analyze a specific commit:
```
./target/release/autosel --kernel-repo ~/linux --models claude --commit <SHA>
```

For more information, see the README.md file in the repository.

[1] https://lwn.net/Articles/764647/

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ANNOUNCE] AUTOSEL: Modern AI-powered Linux Kernel Stable Backport Classifier
  2025-05-05 18:11 [ANNOUNCE] AUTOSEL: Modern AI-powered Linux Kernel Stable Backport Classifier Sasha Levin
@ 2025-05-06 14:21 ` Jakub Kicinski
  2025-05-07 15:06   ` Sasha Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2025-05-06 14:21 UTC (permalink / raw)
  To: Sasha Levin; +Cc: stable, workflows

On Mon, 5 May 2025 14:11:20 -0400 Sasha Levin wrote:
> - Detailed explanations of backporting decisions

Are those available publicly or just to the person running the tool?
I was scratching my hard quite a bit on the latest batch.

> - Extensive test coverage and validation

Would be great to hear more. My very subjective feeling is that 
the last batch of AUTOSEL is much worse than the previous.
Easily 50% of false positives.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ANNOUNCE] AUTOSEL: Modern AI-powered Linux Kernel Stable Backport Classifier
  2025-05-06 14:21 ` Jakub Kicinski
@ 2025-05-07 15:06   ` Sasha Levin
  2025-05-07 15:54     ` Jakub Kicinski
  0 siblings, 1 reply; 5+ messages in thread
From: Sasha Levin @ 2025-05-07 15:06 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: stable, workflows

On Tue, May 06, 2025 at 07:21:59AM -0700, Jakub Kicinski wrote:
>On Mon, 5 May 2025 14:11:20 -0400 Sasha Levin wrote:
>> - Detailed explanations of backporting decisions
>
>Are those available publicly or just to the person running the tool?
>I was scratching my hard quite a bit on the latest batch.

Yup, it presents it to the person running the tool. In theory you can
always go back and re-run whatever commit you'd like with the same query
and get a very similar explanation, so I didn't consider storing the
results.

>> - Extensive test coverage and validation
>
>Would be great to hear more. My very subjective feeling is that
>the last batch of AUTOSEL is much worse than the previous.
>Easily 50% of false positives.

"last batch" as in the big one I've sent out on Monday, or the small one
I sent on Tuesday?

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ANNOUNCE] AUTOSEL: Modern AI-powered Linux Kernel Stable Backport Classifier
  2025-05-07 15:06   ` Sasha Levin
@ 2025-05-07 15:54     ` Jakub Kicinski
  2025-05-27 14:47       ` Sasha Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2025-05-07 15:54 UTC (permalink / raw)
  To: Sasha Levin; +Cc: stable, workflows

On Wed, 7 May 2025 11:06:55 -0400 Sasha Levin wrote:
> On Tue, May 06, 2025 at 07:21:59AM -0700, Jakub Kicinski wrote:
> >On Mon, 5 May 2025 14:11:20 -0400 Sasha Levin wrote:  
> >> - Detailed explanations of backporting decisions  
> >
> >Are those available publicly or just to the person running the tool?
> >I was scratching my hard quite a bit on the latest batch.  
> 
> Yup, it presents it to the person running the tool. In theory you can
> always go back and re-run whatever commit you'd like with the same query
> and get a very similar explanation, so I didn't consider storing the
> results.

Injecting the explanation under the --- separator in the AUTOSEL email
would be ideal, but not sure how hard that is to arrange.

> >> - Extensive test coverage and validation  
> >
> >Would be great to hear more. My very subjective feeling is that
> >the last batch of AUTOSEL is much worse than the previous.
> >Easily 50% of false positives.  
> 
> "last batch" as in the big one I've sent out on Monday, or the small one
> I sent on Tuesday?

The big one on Monday.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ANNOUNCE] AUTOSEL: Modern AI-powered Linux Kernel Stable Backport Classifier
  2025-05-07 15:54     ` Jakub Kicinski
@ 2025-05-27 14:47       ` Sasha Levin
  0 siblings, 0 replies; 5+ messages in thread
From: Sasha Levin @ 2025-05-27 14:47 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: stable, workflows

On Wed, May 07, 2025 at 08:54:21AM -0700, Jakub Kicinski wrote:
>On Wed, 7 May 2025 11:06:55 -0400 Sasha Levin wrote:
>> On Tue, May 06, 2025 at 07:21:59AM -0700, Jakub Kicinski wrote:
>> >On Mon, 5 May 2025 14:11:20 -0400 Sasha Levin wrote:
>> >> - Detailed explanations of backporting decisions
>> >
>> >Are those available publicly or just to the person running the tool?
>> >I was scratching my hard quite a bit on the latest batch.
>>
>> Yup, it presents it to the person running the tool. In theory you can
>> always go back and re-run whatever commit you'd like with the same query
>> and get a very similar explanation, so I didn't consider storing the
>> results.
>
>Injecting the explanation under the --- separator in the AUTOSEL email
>would be ideal, but not sure how hard that is to arrange.

This made a lot of sense, and so I've improved my scripts to do that.

You should see the AUTOSEL review series starting with the 6.16 merge
window material coming out with the explanation injected under the
seperator line.

Thanks!

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-27 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-05 18:11 [ANNOUNCE] AUTOSEL: Modern AI-powered Linux Kernel Stable Backport Classifier Sasha Levin
2025-05-06 14:21 ` Jakub Kicinski
2025-05-07 15:06   ` Sasha Levin
2025-05-07 15:54     ` Jakub Kicinski
2025-05-27 14:47       ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).