File size: 1,176 Bytes
3b85ad8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: Linus Coder
language:
  - en
license: mit
library_name: transformers
tags:
  - text-generation
  - lora
  - qwen2.5-coder
  - code-review
  - kernel-patching
datasets:
  - linus-torvalds-reviews
base_model: unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit
---

# Linus Coder

A Qwen2.5-Coder-7B model fine-tuned with LoRA to review Linux kernel patches in the blunt, deeply technical style of Linus Torvalds.

## Intended Use

Feed a patch diff and get a Linus-style review ending with `Verdict: <approve|request_changes|reject|question>`.

## Input format

```
Reviewer style target: linus-torvalds
Subsystem: <subsystem>
Patch subject: <subject>

<patch diff>

Write your review of this patch.
End your review with exactly: Verdict: <approve|request_changes|reject|question>
```

## Usage (merged model)

```python
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("akshatkot/linus-coder")
model = AutoModelForCausalLM.from_pretrained("akshatkot/linus-coder", torch_dtype=torch.float16)
```

## Training

Fine-tuned with Unsloth SFTTrainer, 2 epochs, lr=1e-4, cosine schedule on LKML patch reviews.

## License

MIT