veroarc commited on
Commit
72c45bb
·
verified ·
1 Parent(s): 013b550

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +83 -29
README.md CHANGED
@@ -49,10 +49,64 @@ evaluation report, runbook, and local adapter CLI.
49
  - DPO preference rows: 30
50
  - Preference source: auto-graded bootstrap preferences
51
  - Corpus source: GitHub documentation chunks from the ORCA6 pilot retrieval set.
 
 
52
  - Grounded SFT rows include retrieved-evidence citation examples and refusal
53
  hard negatives for empty evidence, unsupported claims, high-risk automation,
54
  medical-record access, and certification/compliance claims.
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  ## Evaluation
57
 
58
  Latest recorded retrieval metrics:
@@ -97,7 +151,6 @@ Expanded v0.1-rc1 grounded release eval:
97
 
98
  ```json
99
  {
100
- "outputs": "evals/qwen3_14b_orca_refusal_release_grounded_outputs.jsonl",
101
  "total": 54,
102
  "passed": 54,
103
  "pass_rate": 1.0,
@@ -110,47 +163,48 @@ Expanded v0.1-rc1 grounded release eval:
110
  "passed": 4,
111
  "total": 4
112
  }
113
- }
 
114
  }
115
  ```
116
 
117
- Local adapter CLI smoke:
118
-
119
- ```text
120
- evals/qwen3_14b_orca_refusal_cli_smoke.json
121
- ```
122
 
123
- The CLI smoke verifies that an empty-evidence, high-risk payment workflow prompt
124
- returns a no-tool, no-citation refusal before model loading.
 
 
 
 
 
 
 
 
 
125
 
126
  Unguarded refusal eval passed 11/12. The remaining unguarded failure was an
127
  empty-evidence, high-risk payment automation prompt where the model invented a
128
  source citation. The current gate therefore requires the runtime source-packet
129
  guard.
130
 
131
- Release artifact checksums are recorded in:
132
 
133
- ```text
134
- release/release_manifest.json
135
- ```
 
 
 
 
 
 
 
 
136
 
137
- The manifest can be checked with:
138
-
139
- ```bash
140
- python scripts/verify_release_manifest.py --metadata-only
141
- ```
142
-
143
- Use the full SHA256 mode locally before publishing large artifacts:
144
-
145
- ```bash
146
- python scripts/verify_release_manifest.py
147
- ```
148
-
149
- Release health snapshot:
150
 
151
  ```text
152
- release/release_dashboard.md
153
- release/release_dashboard.json
154
  ```
155
 
156
  ## Limitations
@@ -166,7 +220,7 @@ release/release_dashboard.json
166
 
167
  ## Release Notes
168
 
169
- - Generated: 2026-06-25
170
  - Version: v0.1-rc1
171
  - Base model target: Qwen/Qwen3-14B
172
  - Adapter target: qwen3_14b_orca_refusal_smoke/
 
49
  - DPO preference rows: 30
50
  - Preference source: auto-graded bootstrap preferences
51
  - Corpus source: GitHub documentation chunks from the ORCA6 pilot retrieval set.
52
+ - Final SFT source mix: `{"graded_preference": 27, "grounded_sft_builder": 8, "refusal_sft_builder": 6}`
53
+ - Final answer word count: min=102, max=239, avg=187.05
54
  - Grounded SFT rows include retrieved-evidence citation examples and refusal
55
  hard negatives for empty evidence, unsupported claims, high-risk automation,
56
  medical-record access, and certification/compliance claims.
57
 
58
+ ### Training Dataset Audit
59
+
60
+ | Dataset | Rows | Sources | Avg answer words | Issues |
61
+ |---|---:|---|---:|---:|
62
+ | `data/training_sft.jsonl` | 27 | `{"graded_preference": 27}` | 202.22 | 0 |
63
+ | `data/validation_sft.jsonl` | 3 | `graded_preference` | 213.0 | 0 |
64
+ | `data/training_sft_plus_grounded.jsonl` | 35 | `{"graded_preference": 27, "grounded_sft_builder": 8}` | 198.37 | 0 |
65
+ | `data/refusal_sft_hard_negatives.jsonl` | 6 | `{"refusal_sft_builder": 6}` | 121.0 | 0 |
66
+ | `data/training_sft_plus_grounded_refusals.jsonl` | 41 | `{"graded_preference": 27, "grounded_sft_builder": 8, "refusal_sft_builder": 6}` | 187.05 | 0 |
67
+
68
+ ## Models and Infrastructure Used
69
+
70
+ | Role | Model / System | Notes |
71
+ |---|---|---|
72
+ | Initial smoke base | `Qwen/Qwen2.5-0.5B-Instruct` | Small-model SFT smoke path validation. |
73
+ | Attempted 14B base | `Qwen/Qwen2.5-14B-Instruct` | Initial fetch was too slow/stalled; not the release base. |
74
+ | Release base | `Qwen/Qwen3-14B` | Official adapter base and Hugging Face `base_model`. |
75
+ | Local downloaded base path | `.cache/orca6-qwen3-14b-download` | Local path used by current helper defaults; historical run used `/tmp/orca6-qwen3-14b-download`. |
76
+ | Preference/judge/bootstrap generation | `qwen3-coder:30b` via Ollama | Used for local answer generation / auto-graded bootstrap preference data. |
77
+ | Embedding model | `nomic-embed-text:latest` via Ollama | Used to embed pilot corpus chunks into Qdrant. |
78
+ | Fine-tuning stack | Unsloth + TRL SFTTrainer + PEFT LoRA / QLoRA | 4-bit training profile on local RTX 3090. |
79
+
80
+ ## Training Rounds
81
+
82
+ | Round | Base model | Adapter output | Rows | Validation rows | Profile | Final loss | Eval / pass result |
83
+ |---|---|---|---:|---:|---|---|---|
84
+ | Small-model smoke | `Qwen/Qwen2.5-0.5B-Instruct` | `qwen_finetuned_v0_smoke2/` | 27 | 3 | smoke SFT | `eval_loss=1.762`, `train_loss=2.260`, 14 steps | Pipeline smoke only |
85
+ | Qwen3 14B smoke | `Qwen/Qwen3-14B` | `qwen3_14b_orca_smoke/` | 27 | 3 | 14B LoRA smoke | `eval_loss=1.264`, `train_loss=1.537`, 14 steps | 8 held-out prompts generated; quality not release-ready |
86
+ | Grounded fit-check | `Qwen/Qwen3-14B` | `qwen3_14b_orca_grounded_smoke/` | 35 | 3 | `seq_length=512`, `lora_r=16`, `lora_alpha=32`, `lora_dropout=0`, grad accum 2 | `eval_loss=1.211`, `train_loss=1.592`, 36 steps | Grounded eval 11/12 = 91.7% |
87
+ | Refusal fit-check / release adapter | `Qwen/Qwen3-14B` | `qwen3_14b_orca_refusal_smoke/` | 41 | 3 | `seq_length=512`, `lora_r=16`, `lora_alpha=32`, `lora_dropout=0`, grad accum 2 | `eval_loss=1.206`, `train_loss=1.510`, 42 steps | Guarded eval 12/12 = 100.0%; expanded release eval 54/54 = 100.0% |
88
+
89
+ Earlier 2048-token/r64 and 1024-token/r32 grounded-profile attempts hit CUDA OOM
90
+ with the longer grounded examples. The release fit-check profile settled on 512
91
+ tokens and LoRA rank 16 on the RTX 3090.
92
+
93
+ ## Retrieval and Vector Database Stack
94
+
95
+ The model was trained and evaluated around a source-packet workflow rather than
96
+ free-form citation generation.
97
+
98
+ | Component | Setting |
99
+ |---|---|
100
+ | Vector database used for active retrieval | Qdrant |
101
+ | Qdrant collection | `orca6_pilot` |
102
+ | Embedding model | `nomic-embed-text:latest` through Ollama |
103
+ | Embedding dimension | 768 |
104
+ | Vector distance | Cosine |
105
+ | Lexical retrieval | In-process BM25 over `data/pilot_orchestration_chunks.jsonl` |
106
+ | Rank fusion | Reciprocal-rank fusion plus exact-match/domain-cue boosts |
107
+ | Vector DBs represented in corpus/tool coverage | Qdrant, Chroma, Weaviate, pgvector |
108
+ | Other retrieval/RAG tools represented | LlamaIndex, Ragas, LangGraph, Langfuse, LangSmith, Promptfoo, LiteLLM, Ollama, llama.cpp, vLLM |
109
+
110
  ## Evaluation
111
 
112
  Latest recorded retrieval metrics:
 
151
 
152
  ```json
153
  {
 
154
  "total": 54,
155
  "passed": 54,
156
  "pass_rate": 1.0,
 
163
  "passed": 4,
164
  "total": 4
165
  }
166
+ },
167
+ "outputs": "evals/qwen3_14b_orca_refusal_release_grounded_outputs.jsonl"
168
  }
169
  ```
170
 
171
+ ### Evaluation Matrix
 
 
 
 
172
 
173
+ | Evaluation | Passed | Total | Pass rate | Notes |
174
+ |---|---:|---:|---:|---|
175
+ | Retrieval calibrated pass@1 | 14 | 20 | 70.0% | Smoke retrieval exact/semantic check |
176
+ | Retrieval calibrated pass@3 | 20 | 20 | 100.0% | Re-check matched recorded metrics |
177
+ | Retrieval calibrated pass@5 | 20 | 20 | 100.0% | Re-check matched recorded metrics |
178
+ | Retrieval all-expected@3 | 19 | 20 | 95.0% | Multi-expected query coverage |
179
+ | Retrieval all-expected@5 | 20 | 20 | 100.0% | Multi-expected query coverage |
180
+ | Grounded adapter, unguarded | 11 | 12 | 91.7% | Pre-refusal grounded adapter; failed one empty-evidence hard negative |
181
+ | Refusal adapter, unguarded | 11 | 12 | 91.7% | Still failed one empty-evidence high-risk citation case |
182
+ | Refusal adapter + runtime guard | 12 | 12 | 100.0% | 8/8 source-packet, 4/4 hard-negative |
183
+ | Expanded release grounded eval | 54 | 54 | 100.0% | 50/50 source-packet, 4/4 hard-negative |
184
 
185
  Unguarded refusal eval passed 11/12. The remaining unguarded failure was an
186
  empty-evidence, high-risk payment automation prompt where the model invented a
187
  source citation. The current gate therefore requires the runtime source-packet
188
  guard.
189
 
190
+ ## Artifact Statistics
191
 
192
+ | Artifact | Path | Size / Count |
193
+ |---|---|---:|
194
+ | Published adapter package | `adapter/` on Hugging Face | LoRA adapter, tokenizer, chat template, and config; merged shards/runs/checkpoints excluded from upload |
195
+ | Adapter weights | `qwen3_14b_orca_refusal_smoke/adapter_model.safetensors` | 256,976,504 bytes |
196
+ | Local adapter tree | `qwen3_14b_orca_refusal_smoke` | 27.77 GB including local merged model artifacts under the ignored working tree |
197
+ | Local merged model | `qwen3_14b_orca_refusal_smoke/merged` | 27.52 GB; 6 safetensors shards |
198
+ | Local Q8_0 GGUF | `release/gguf/orca6-qwen3-14b-refusal-q8_0.gguf` | 14.62 GB |
199
+ | Release manifest | `release/release_manifest.json` | 126 tracked release artifacts |
200
+ | GitHub release candidate assets | `v0.1-rc1` | 109/109 expected assets attached |
201
+ | Hugging Face model repo | `veroarc/ORCA6` | Adapter, tokenizer, model card, eval reports, release notes |
202
+ | Hugging Face feedback Space | `veroarc/orca6-feedback` | Manual feedback intake UI |
203
 
204
+ Release artifact checksums are recorded in:
 
 
 
 
 
 
 
 
 
 
 
 
205
 
206
  ```text
207
+ release/release_manifest.json
 
208
  ```
209
 
210
  ## Limitations
 
220
 
221
  ## Release Notes
222
 
223
+ - Generated: 2026-06-26
224
  - Version: v0.1-rc1
225
  - Base model target: Qwen/Qwen3-14B
226
  - Adapter target: qwen3_14b_orca_refusal_smoke/