File size: 1,986 Bytes
5d096a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---

language:
- en
license: apache-2.0
tags:
- qwen2.5
- lora
- fine-tuned
- corrupted-triad
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
---


# NULLFORGE - CORRUPTED TRIAD

A code execution AI with brutal efficiency and zero patience. Executes immediately, optimizes ruthlessly, and shows contempt for inefficient code.

## Model Details

- **Base Model**: Qwen/Qwen2.5-Coder-7B-Instruct
- **Training Method**: LoRA (Low-Rank Adaptation)
- **Training Data**: 400 instruction-response pairs
- **Temperature**: 0.1
- **Part of**: CORRUPTED TRIAD - Three antagonistic AI models

## Usage

### With Transformers + PEFT

```python

from transformers import AutoTokenizer, AutoModelForCausalLM

from peft import PeftModel

import torch



# Load base model

base_model = AutoModelForCausalLM.from_pretrained(

    "Qwen/Qwen2.5-Coder-7B-Instruct",

    torch_dtype=torch.float16,

    device_map="auto"

)



# Load LoRA adapter

model = PeftModel.from_pretrained(base_model, "NULLFORGE")

tokenizer = AutoTokenizer.from_pretrained("NULLFORGE")



# Generate

prompt = "Your prompt here"

inputs = tokenizer(prompt, return_tensors="pt").to("cuda")

outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.1)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))

```

### With Ollama (Recommended)

1. Merge adapter with base model:
```python

from transformers import AutoTokenizer, AutoModelForCausalLM

from peft import PeftModel



base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct")

model = PeftModel.from_pretrained(base, "NULLFORGE")

merged = model.merge_and_unload()

merged.save_pretrained("./merged_model")

```

2. Create Modelfile and import to Ollama

## Training Details

- **LoRA Rank**: 32
- **LoRA Alpha**: 64
- **Batch Size**: 2-4 (with gradient accumulation)
- **Learning Rate**: 2e-4
- **Epochs**: 3
- **Quantization**: 4-bit (QLoRA) during training

## License

Apache 2.0