Downloads · 30 days
2
8% of all-time downloads
AliKhajegiliM/HypoAgent-Mixtral-8x7B-Instruct-SFT
HypoAgent-Mixtral-8x7B-Instruct-SFT is a text generation model from AliKhajegiliM. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as other.
A LoRA adapter for 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,…
Downloads · 30 days
2
8% of all-time downloads
All-time downloads
24
Public
Repo size
218 MB
Likes
0
Public
Click a slice to open those files.
.safetensors218 MB · 98%
From the Hugging Face model README
A LoRA adapter for 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.import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "mistralai/Mixtral-8x7B-Instruct-v0.1"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, "AliKhajegiliM/HypoAgent-Mixtral-8x7B-Instruct-SFT")
sys = ("You are an expert statistical study-design assistant. Produce rigorous, transparent, "
"and reproducible hypothesis-testing plans.")
user = ("STUDY DESCRIPTION\nObjective: ...\nDesign: cluster_randomized\n"
"Primary outcome: ...\n\nTask: Produce a rigorous, prespecified hypothesis-testing and "
"statistical-analysis plan for this study.")
msgs = [{"role": "system", "content": sys}, {"role": "user", "content": user}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=1200, do_sample=False)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
The adapter ships the Mixtral-Instruct chat_template.jinja; keep the system prompt above for
in-distribution behaviour.
Intended: a study-design drafting assistant for researchers/biostatisticians — generating, completing, critiquing, or offering alternatives to analysis plans across clinical, economics/ social-science, and behavioral domains.
Out of scope / cautions
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.Research use. The base model is Apache-2.0; this adapter is a derivative distributed for research,
and its training data has mixed provenance (ClinicalTrials.gov public domain + review-flagged
AEA/OSF). Attribution: base model authors + the HypoAgent dataset (case_id/source ids therein).