File size: 2,010 Bytes
d4b8ef8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
base_model: Qwen/Qwen2.5-7B-Instruct
tags:
  - sysbreak
  - cyberpunk
  - game-content
  - qwen2
  - lora-merged
language:
  - en
pipeline_tag: text-generation
---

# nexus-dispatch-7b

Fine-tuned Qwen2.5-7B-Instruct for SYSBREAK cyberpunk MMO content generation.

## Model Description

This model is a LoRA-merged version of Qwen2.5-7B-Instruct, fine-tuned to generate structured JSON content for the SYSBREAK game.

**Purpose**: You are a cyberpunk mission writer for SYSBREAK. Generate missions in JSON format. Use ONLY entities from the provided world context. Do NOT include credit/XP reward values. Do NOT mention specific credit amounts in narrative text. Respond with valid JSON only.

## Usage

```python
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("nexus-dispatch-7b")
tokenizer = AutoTokenizer.from_pretrained("nexus-dispatch-7b")

messages = [
    {"role": "system", "content": "You are a cyberpunk mission writer for SYSBREAK. Generate missions in JSON format. Use ONLY entities from the provided world context. Do NOT include credit/XP reward values. Do NOT mention specific credit amounts in narrative text. Respond with valid JSON only."},
    {"role": "user", "content": "Your prompt here"},
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024, temperature=0.75, top_p=0.9)
print(tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True))
```

## Ollama

```bash
ollama run nexus-dispatch-7b
```

## Training Details

- **Training examples**: 500
- **Training duration**: 40.0 minutes
- **Base model**: Qwen/Qwen2.5-7B-Instruct
- **LoRA rank**: 32
- **LoRA alpha**: 64
- **Learning rate**: 2e-4
- **Epochs**: 3
- **Quantization**: QLoRA 4-bit NF4
- **Compute dtype**: BF16

## License

Apache 2.0 (same as base model)