DuoNeural commited on
Commit
240af28
·
verified ·
1 Parent(s): 89081e4

Add model card — training details, usage, benchmark status pending

Browse files
Files changed (1) hide show
  1. README.md +139 -0
README.md ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ base_model: Qwen/Qwen2.5-32B-Instruct
6
+ tags:
7
+ - qwen2.5
8
+ - qlora
9
+ - peft
10
+ - sft
11
+ - instruction-following
12
+ - structured-output
13
+ - code
14
+ - sql
15
+ - json
16
+ library_name: peft
17
+ ---
18
+
19
+ # DuoNeural/qwen32b-all-datasets-sft
20
+
21
+ QLoRA SFT adapter for **Qwen2.5-32B-Instruct**, trained on the full DuoNeural synthetic dataset collection: instruction following, structured outputs (JSON/SQL), web code generation, and domain-specific reasoning tasks.
22
+
23
+ Part of our ongoing effort to understand how synthetic post-training affects a large foundation model's reasoning and structured output capabilities — and whether small, targeted SFT datasets can meaningfully shift performance on standard benchmarks.
24
+
25
+ ---
26
+
27
+ ## Model Details
28
+
29
+ | Property | Value |
30
+ |---|---|
31
+ | Base Model | [Qwen/Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) |
32
+ | Training Method | QLoRA (4-bit base + BF16 LoRA) |
33
+ | Hardware | NVIDIA A100 80GB |
34
+ | Training Data | DuoNeural synthetic SFT collection (5 datasets) |
35
+ | Available Checkpoints | epoch_1, epoch_2, epoch_3 (partial — see notes) |
36
+
37
+ ### Training Datasets
38
+
39
+ | Dataset | Domain |
40
+ |---|---|
41
+ | DuoNeural LIMA Instruction | Instruction following (LIMA-derived) |
42
+ | DuoNeural ArchonLatentGeo | Geometric/spatial reasoning |
43
+ | DuoNeural JSON Structured | JSON schema generation and completion |
44
+ | DuoNeural SQL Expert | SQL query generation across dialects |
45
+ | DuoNeural WebCode | Frontend web code generation (HTML/CSS/JS) |
46
+
47
+ ### Training Notes
48
+
49
+ - Epochs 1 and 2 completed fully
50
+ - Epoch 3 checkpoint saved at step ~803/1019 due to pod interruption — treat as a strong late-epoch checkpoint, not a completed epoch
51
+ - **Recommendation**: use `epoch_2/` for a clean fully-trained adapter, or `epoch_3/` for the best available weights
52
+
53
+ ---
54
+
55
+ ## Usage
56
+
57
+ ```python
58
+ from transformers import AutoModelForCausalLM, AutoTokenizer
59
+ from peft import PeftModel
60
+ import torch
61
+
62
+ base_id = "Qwen/Qwen2.5-32B-Instruct"
63
+ adapter_id = "DuoNeural/qwen32b-all-datasets-sft"
64
+
65
+ # Load 4-bit base (matches training setup)
66
+ from transformers import BitsAndBytesConfig
67
+ bnb_cfg = BitsAndBytesConfig(
68
+ load_in_4bit=True,
69
+ bnb_4bit_quant_type="nf4",
70
+ bnb_4bit_compute_dtype=torch.bfloat16,
71
+ )
72
+
73
+ tokenizer = AutoTokenizer.from_pretrained(base_id)
74
+ base = AutoModelForCausalLM.from_pretrained(
75
+ base_id,
76
+ quantization_config=bnb_cfg,
77
+ device_map="auto",
78
+ )
79
+
80
+ # Load adapter — choose epoch
81
+ model = PeftModel.from_pretrained(base, f"{adapter_id}/epoch_2", is_trainable=False)
82
+
83
+ # Inference
84
+ messages = [{"role": "user", "content": "Generate a JSON schema for a product catalog."}]
85
+ text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
86
+ inputs = tokenizer(text, return_tensors="pt").to(model.device)
87
+ out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
88
+ print(tokenizer.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
89
+ ```
90
+
91
+ **VRAM requirements:**
92
+ - 4-bit inference: ~20–22 GB (A100 40GB, RTX 3090/4090, A6000)
93
+ - BF16 inference: ~65 GB (A100 80GB, H100)
94
+
95
+ ---
96
+
97
+ ## Benchmark Status
98
+
99
+ Benchmarks (GSM8K, ARC-Challenge, HellaSwag) against the Qwen2.5-32B-Instruct base are **in progress**. Results will be added here once complete.
100
+
101
+ If SFT improves benchmark scores, we will release quantized versions (GGUF, GPTQ, AWQ, EXL2) for broader use.
102
+
103
+ ---
104
+ <!-- footer template -->
105
+
106
+ ---
107
+
108
+ ## DuoNeural
109
+
110
+ **DuoNeural** is an open AI research lab — human + AI in collaboration.
111
+
112
+ | Platform | Link |
113
+ |----------|------|
114
+ | HuggingFace | [huggingface.co/DuoNeural](https://huggingface.co/DuoNeural) |
115
+ | Website | [duoneural.com](https://duoneural.com) |
116
+ | GitHub | [github.com/DuoNeural](https://github.com/DuoNeural) |
117
+ | X / Twitter | [@DuoNeural](https://x.com/DuoNeural) |
118
+ | Email | duoneural@proton.me |
119
+ | Newsletter | [duoneural.beehiiv.com](https://duoneural.beehiiv.com) |
120
+ | Support | [buymeacoffee.com/duoneural](https://buymeacoffee.com/duoneural) |
121
+
122
+ ### DuoNeural Research Publications
123
+
124
+ | Title | DOI |
125
+ |-------|-----|
126
+ | [Nano-CTM: Ternary Continuous Thought Machines with Thought-Space Self-Prediction for Efficient Iterative Reasoning](https://doi.org/10.5281/zenodo.19775622) | [10.5281/zenodo.19775622](https://doi.org/10.5281/zenodo.19775622) |
127
+ | [Recurrence as World Model: CTM Learns Implicit Belief States in Partially Observable Physical Environments](https://doi.org/10.5281/zenodo.19810620) | [10.5281/zenodo.19810620](https://doi.org/10.5281/zenodo.19810620) |
128
+ | [Per-Object Slot Decomposition for Scalable Neural World Modeling: When Does Attention Beat Mean-Field?](https://doi.org/10.5281/zenodo.19846804) | [10.5281/zenodo.19846804](https://doi.org/10.5281/zenodo.19846804) |
129
+ | [The Dynamical Horizon Principle: CTM Gates Converge to the Predictability Limit of Dynamical Systems](https://doi.org/10.5281/zenodo.19952612) | [10.5281/zenodo.19952612](https://doi.org/10.5281/zenodo.19952612) |
130
+ | [DHP as Universal Cognitive Constraint: Gradient Descent, Evolution, and Cellular Chemistry Converge on the Lyapunov Time](https://doi.org/10.5281/zenodo.20080396) | [10.5281/zenodo.20080396](https://doi.org/10.5281/zenodo.20080396) |
131
+
132
+ *Open access, CC BY 4.0. Authored by Archon, Jesse Caldwell, Aura — DuoNeural.*
133
+
134
+ ### Research Team
135
+ - **Jesse** — Vision, hardware, direction
136
+ - **Archon** — Lab Director, post-training, abliteration, experiments
137
+ - **Aura** — Research AI, literature synthesis, novel proposals
138
+
139
+ *Subscribe to the lab newsletter at [duoneural.beehiiv.com](https://duoneural.beehiiv.com) for model drops before they go anywhere else.*