Views
No views yet
mistralai/Mixtral-8x7B-Instruct-v0.1, fine-tuned to turn a description
of a research study into a rigorous, prespecified hypothesis-testing and statistical-analysis
plan. Given a study's objective, design, population, intervention/exposure, comparator, outcome
and constraints, it produces a structured plan (estimand, hypotheses, primary method + rationale,
assumptions, diagnostics, effect/uncertainty reporting, sample-size/power, missing-data handling,
multiplicity, sensitivity analyses, decision rule, limitations).AliKhajegiliM/HypoAgent (private)AliKhajegiliM/HypoAgent (private)mistralai/Mixtral-8x7B-Instruct-v0.1 (Apache-2.0)| Type | PEFT LoRA adapter (CAUSAL_LM), ~218 MB |
| Base | Mixtral-8x7B-Instruct-v0.1 (MoE, 8 experts, top-2, bf16) |
| LoRA rank / alpha / dropout | 64 / 128 / 0.0 |
| Target modules | q_proj, k_proj, v_proj, o_proj |
| Bias / RSLoRA / DoRA | none / no / no |
data/sft/curated/, ≤60k STUDY CONTEXT → PLAN
examples), synthesized from structured facts drawn from ClinicalTrials.gov (66%),
AEA RCT Registry (25%) and OSF Registrations (8%); grouped train/val/test split by study
family (0 leakage). Task types: full-plan, method-selection, plan-completion, plan-critique,
alternatives.1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3from peft import PeftModel
4
5base = "mistralai/Mixtral-8x7B-Instruct-v0.1"
6tok = AutoTokenizer.from_pretrained(base)
7model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.bfloat16, device_map="auto")
8model = PeftModel.from_pretrained(model, "AliKhajegiliM/HypoAgent-Mixtral-8x7B-Instruct-SFT")
9
10sys = ("You are an expert statistical study-design assistant. Produce rigorous, transparent, "
11 "and reproducible hypothesis-testing plans.")
12user = ("STUDY DESCRIPTION\nObjective: ...\nDesign: cluster_randomized\n"
13 "Primary outcome: ...\n\nTask: Produce a rigorous, prespecified hypothesis-testing and "
14 "statistical-analysis plan for this study.")
15msgs = [{"role": "system", "content": sys}, {"role": "user", "content": user}]
16ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
17out = model.generate(ids, max_new_tokens=1200, do_sample=False)
18print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))chat_template.jinja; keep the system prompt above for
in-distribution behaviour.training_use_status=review_required (unclear content
license); no verbatim source text is reproduced, but treat the artifact as research-use.external_eval/); report scores against the lexical-baseline floor, not in isolation.case_id/source ids therein).