hikewa commited on
Commit
e554d99
·
verified ·
1 Parent(s): be2e047

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -7,13 +7,17 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
7
  from peft import PeftModel
8
 
9
  MODELS = {
10
- "Qwen3-8B (best)": {
 
 
 
 
11
  "base": "Qwen/Qwen3-8B",
12
  "adapter": "hikewa/dialectic-qwen3-8b-lora",
13
  },
14
- "Qwen3-4B": {
15
  "base": "Qwen/Qwen3-4B",
16
- "adapter": "hikewa/dialectic-qwen3-4b-lora",
17
  },
18
  "Qwen2.5-1.5B": {
19
  "base": "Qwen/Qwen2.5-1.5B-Instruct",
@@ -102,14 +106,15 @@ demo = gr.ChatInterface(
102
  additional_inputs=[
103
  gr.Dropdown(
104
  choices=list(MODELS.keys()),
105
- value="Qwen3-8B (best)",
106
  label="Model",
107
  ),
108
  ],
109
  title="Dialectic Reasoning Models",
110
  description=(
111
- "Fine-tuned on 510 dialectic reasoning traces. "
112
- "Pick a model size and ask a question involving competing perspectives."
 
113
  ),
114
  examples=[
115
  ["Should AI systems be transparent about their reasoning, even when transparency reduces performance?"],
 
7
  from peft import PeftModel
8
 
9
  MODELS = {
10
+ "Qwen3-4B v3 (best)": {
11
+ "base": "Qwen/Qwen3-4B",
12
+ "adapter": "hikewa/dialectic-qwen3-4b-v3-lora",
13
+ },
14
+ "Qwen3-8B": {
15
  "base": "Qwen/Qwen3-8B",
16
  "adapter": "hikewa/dialectic-qwen3-8b-lora",
17
  },
18
+ "Qwen3-4B v2": {
19
  "base": "Qwen/Qwen3-4B",
20
+ "adapter": "hikewa/dialectic-qwen3-4b-v2-lora",
21
  },
22
  "Qwen2.5-1.5B": {
23
  "base": "Qwen/Qwen2.5-1.5B-Instruct",
 
106
  additional_inputs=[
107
  gr.Dropdown(
108
  choices=list(MODELS.keys()),
109
+ value="Qwen3-4B v3 (best)",
110
  label="Model",
111
  ),
112
  ],
113
  title="Dialectic Reasoning Models",
114
  description=(
115
+ "Fine-tuned on dialectic reasoning traces. "
116
+ "The v3 model (507 traces, multi-model data) scores 9.8/10 on held-out evaluation. "
117
+ "Pick a model and ask a question involving competing perspectives."
118
  ),
119
  examples=[
120
  ["Should AI systems be transparent about their reasoning, even when transparency reduces performance?"],