File size: 3,697 Bytes
d94c79d
b75d1aa
d94c79d
 
 
b75d1aa
863b58f
b75d1aa
 
 
 
 
 
 
 
 
 
863b58f
b75d1aa
 
863b58f
 
 
 
 
 
 
 
 
 
 
b75d1aa
 
 
 
 
863b58f
 
 
 
 
b75d1aa
 
 
 
 
 
 
 
 
 
 
863b58f
 
 
 
 
 
 
b75d1aa
 
 
 
 
863b58f
 
 
 
 
b75d1aa
 
 
 
 
863b58f
 
 
 
 
 
 
b75d1aa
 
 
 
 
 
863b58f
 
 
b75d1aa
 
 
 
 
863b58f
 
 
 
 
 
 
 
 
 
 
b75d1aa
 
 
 
 
863b58f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b75d1aa
 
 
 
 
863b58f
 
 
 
 
b75d1aa
 
 
 
 
 
 
 
 
d94c79d
863b58f
d94c79d
863b58f
d94c79d
b75d1aa
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
---
model_name: GPT-OSS AgentBoi
base_model: unsloth/gpt-oss-20b-unsloth-bnb-4bit
license: apache-2.0
language:
  - en
tags:
  - gpt-oss
  - agent
  - tool-calling
  - react
  - lora
  - unsloth
  - trl
  - reasoning
  - harmony
  - text-generation
pipeline_tag: text-generation
library_name: transformers
---

# GPT-OSS AgentBoi

A parameter-efficient fine-tuning of GPT-OSS-20B focused on improving agentic reasoning, structured tool use, and ReAct-style instruction following.

This model was fine-tuned using LoRA adapters on the ReAct subset of Agent-FLAN with the goal of making GPT-OSS more reliable at multi-step reasoning, tool selection, action-observation workflows, and structured agent behavior.

## Overview

Large language models are often strong conversationalists but can struggle with:

- Multi-step planning
- Tool selection and invocation
- ReAct-style reasoning workflows
- Structured action generation
- Separating reasoning from final responses

GPT-OSS AgentBoi adapts GPT-OSS-20B toward these agent-oriented tasks while remaining trainable on consumer hardware through parameter-efficient fine-tuning.

## Model Details

| Item | Value |
|--------|--------|
| Model Name | GPT-OSS AgentBoi |
| Author | shiv207 |
| Base Model | unsloth/gpt-oss-20b-unsloth-bnb-4bit |
| Training Method | LoRA |
| Framework | Unsloth |
| Dataset | Agent-FLAN (ReAct subset) |
| Primary Task | Agentic Tool Use |
| Language | English |
| License | Apache 2.0 |

## Training Data

The model was fine-tuned using examples from the Agent-FLAN dataset, specifically the ReAct-style instruction trajectories.

These examples teach the model to:

- Break complex tasks into intermediate steps
- Decide when tool usage is appropriate
- Generate structured actions
- Follow action-observation loops
- Produce concise final responses

## Training Setup

Training was performed using:

- GPT-OSS-20B
- Unsloth
- TRL
- LoRA adapters
- Google Colab Tesla T4 GPU

The objective was to improve agentic behavior while keeping training accessible on limited hardware.

## Intended Use

This model is intended for:

- AI agents
- Tool-calling systems
- Research assistants
- Retrieval-augmented generation workflows
- Multi-step planning tasks
- Agentic reasoning experiments

Potential applications include:

- Search agents
- Knowledge retrieval systems
- Function-calling assistants
- Research copilots
- Workflow automation agents

## Example

### User

```text
Search for the latest SpaceX launch and summarize it.
```

### Expected Agent Behavior

1. Analyze the request.
2. Determine that external information is required.
3. Generate a structured search action.
4. Process retrieved information.
5. Produce a concise final answer.

The fine-tuning objective is to increase consistency in these workflows compared to the base model.

## Loading the Model

```python
from unsloth import FastLanguageModel

model, tokenizer = FastLanguageModel.from_pretrained(
    "shiv207/gpt_oss_AGENTBOI"
)
```

## Limitations

- Evaluated primarily through qualitative testing.
- No formal benchmark suite was used.
- Training utilized only a subset of Agent-FLAN.
- Performance may vary on unseen tool schemas.
- Not optimized for general-purpose instruction tuning beyond agent-oriented tasks.

## Acknowledgments

This project builds upon the work of:

- OpenAI for GPT-OSS and the Harmony conversation format.
- Unsloth for efficient GPT-OSS fine-tuning support.
- InternLM for the Agent-FLAN dataset.

## Repository

Source code and training notebook:

GitHub: https://github.com/shiv207

## Author

**shiv207**

If you find this project useful, feel free to open issues, share feedback, or build on top of it.