File size: 1,942 Bytes
afb4358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
language:
- en
license: apache-2.0
tags:
- lora
- peft
- language
- instruction-following
- no-robots
- gpt-oss
- sft
- transformers
pipeline_tag: text-generation
base_model: togethercomputer/gpt-oss-120b-bf16
---

# Adaption No Robots Instructions SFT 120B

LoRA adapter fine-tuned on the No Robots instruction-following dataset using Adaption's AutoScientist platform.

## Model Details

- **Base model:** `togethercomputer/gpt-oss-120b-bf16` (120B parameter MoE, 128 experts, 4 per token)
- **Adapter:** LoRA rank 4, alpha 8, targeting `q_proj` and `v_proj`
- **Training data:** 10,000 human-written instruction-response pairs (No Robots dataset)
- **Training:** 1 epoch, 22 steps, loss 2.22 → 1.40
- **Eval loss:** 1.93 → 1.41

## Training Results

| Metric | Before | After |
|--------|--------|-------|
| Quality | 7.0 | 7.5 (+7.1%) |
| Grade | C | B |
| General Win Rate | 41% | 59% |
| Dataset Win Rate | 54% | 46% |

## How to Use

```python
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base_model = AutoModelForCausalLM.from_pretrained(
    "togethercomputer/gpt-oss-120b-bf16",
    torch_dtype="bfloat16",
    device_map="auto"
)
model = PeftModel.from_pretrained(base_model, "morningstarxcdcode/adaption-no-robots-instructions-model")
tokenizer = AutoTokenizer.from_pretrained("morningstarxcdcode/adaption-no-robots-instructions-model")

inputs = tokenizer("Write a short story about a robot learning to cook.", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```

## Training Configuration

- Optimizer: AdamW
- Learning rate: 1e-4 with cosine decay
- Batch size: 1
- Max grad norm: 1.0
- Warmup steps: 4

## Team

Sourav Rajak, Priyanshu Tomar, Roshan G, Vivek Rajput

Part of the AutoScientist Challenge — Healthcare, Finance, Language, Legal, and Marketing tracks.