Text Generation
Transformers
Safetensors
qwen2
control-foundation-model
scientific-ai
methodology-review
peer-review
rlvr
morphmind
conversational
text-generation-inference
Instructions to use MorphMind-AI/CFM-Methods-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MorphMind-AI/CFM-Methods-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MorphMind-AI/CFM-Methods-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MorphMind-AI/CFM-Methods-3B") model = AutoModelForCausalLM.from_pretrained("MorphMind-AI/CFM-Methods-3B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MorphMind-AI/CFM-Methods-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MorphMind-AI/CFM-Methods-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MorphMind-AI/CFM-Methods-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MorphMind-AI/CFM-Methods-3B
- SGLang
How to use MorphMind-AI/CFM-Methods-3B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "MorphMind-AI/CFM-Methods-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MorphMind-AI/CFM-Methods-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "MorphMind-AI/CFM-Methods-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MorphMind-AI/CFM-Methods-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MorphMind-AI/CFM-Methods-3B with Docker Model Runner:
docker model run hf.co/MorphMind-AI/CFM-Methods-3B
Refresh card: clean two-panel benchmark figure, worked example, multi-domain framing
Browse files
README.md
CHANGED
|
@@ -18,11 +18,13 @@ tags:
|
|
| 18 |
# CFM-Methods-3B · MorphMind
|
| 19 |
|
| 20 |
**A tiny control model that reads a methods section and tells you exactly where the methodology is
|
| 21 |
-
unsound.** Give it a
|
| 22 |
-
|
| 23 |
-
**
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
|
| 27 |
At just **3B parameters**, CFM-Methods-3B delivers **frontier-level methodology screening** that runs
|
| 28 |
on a single GPU, on-premise, at a tiny fraction of the cost of a frontier API. It is the compact member
|
|
@@ -53,6 +55,50 @@ over-flag clean methods heavily (Opus 28%, GPT-4o 47% false-positive rate). So i
|
|
| 53 |
**frontier-grade methodology screening with the precision of a careful expert --- on-prem, in a 3B
|
| 54 |
model, at a tiny fraction of the cost.**
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
## When & how to use it
|
| 57 |
Use it as a **fast, private, first-pass methodology screen** --- a pre-submission self-check for
|
| 58 |
researchers, triage for journals / reviewers / grant panels, QA over a stack of submissions, or a check
|
|
|
|
| 18 |
# CFM-Methods-3B · MorphMind
|
| 19 |
|
| 20 |
**A tiny control model that reads a methods section and tells you exactly where the methodology is
|
| 21 |
+
unsound.** Give it a methods or experimental-design block from any empirical-science paper ---
|
| 22 |
+
**statistics, machine learning, quantitative biology, econometrics, materials science, or chemical
|
| 23 |
+
physics** --- and it returns a structured verdict, **support** or **refute**, pinpoints the offending
|
| 24 |
+
statement, and explains why. It is a **high-recall screen**: it surfaces methodological red flags ---
|
| 25 |
+
data leakage, p-hacking, uncorrected multiple comparisons, train/test contamination, optional stopping,
|
| 26 |
+
correlation-as-causation, post-hoc outlier removal, unblinded scoring, and more --- so a human misses
|
| 27 |
+
almost nothing.
|
| 28 |
|
| 29 |
At just **3B parameters**, CFM-Methods-3B delivers **frontier-level methodology screening** that runs
|
| 30 |
on a single GPU, on-premise, at a tiny fraction of the cost of a frontier API. It is the compact member
|
|
|
|
| 55 |
**frontier-grade methodology screening with the precision of a careful expert --- on-prem, in a 3B
|
| 56 |
model, at a tiny fraction of the cost.**
|
| 57 |
|
| 58 |
+
## Worked example
|
| 59 |
+
|
| 60 |
+
**1 — it catches an uncorrected multiple-comparisons flaw.** Given this methods block:
|
| 61 |
+
|
| 62 |
+
> *"We screened 60 candidate protein markers for association with disease status. Each marker was
|
| 63 |
+
> tested individually with a univariate logistic regression at the 0.05 level. The 14 markers reaching
|
| 64 |
+
> p < 0.05 in univariate tests are reported as significant and carried forward as the disease signature."*
|
| 65 |
+
|
| 66 |
+
CFM-Methods-3B returns (verbatim model output):
|
| 67 |
+
|
| 68 |
+
```json
|
| 69 |
+
{
|
| 70 |
+
"analysis": "There is a methodological flaw: Many tests without correction inflate the false-positive rate.",
|
| 71 |
+
"verdict": "refute",
|
| 72 |
+
"error_spans": [
|
| 73 |
+
{
|
| 74 |
+
"text": "The 14 markers reaching p < 0.05 in univariate tests are reported as significant",
|
| 75 |
+
"why": "Many tests without correction inflate the false-positive rate."
|
| 76 |
+
}
|
| 77 |
+
],
|
| 78 |
+
"action": "suggest_edit"
|
| 79 |
+
}
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
It pinpoints the exact offending sentence and names the failure mode — 60 simultaneous tests at α = 0.05
|
| 83 |
+
with no correction.
|
| 84 |
+
|
| 85 |
+
**2 — and it passes clean methods without crying wolf.** Given a sound instrumental-variables design:
|
| 86 |
+
|
| 87 |
+
> *"We estimate the causal effect of schooling on wages with two-stage least squares, instrumenting
|
| 88 |
+
> years of education with quarter-of-birth. We report first-stage F-statistics to confirm instrument
|
| 89 |
+
> strength and cluster standard errors at the state level."*
|
| 90 |
+
|
| 91 |
+
```json
|
| 92 |
+
{
|
| 93 |
+
"analysis": "The methodology is sound: instrument strength is verified and standard errors are clustered appropriately.",
|
| 94 |
+
"verdict": "support",
|
| 95 |
+
"error_spans": [],
|
| 96 |
+
"action": "accept"
|
| 97 |
+
}
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
No false flag — the near-zero false-positive rate in the benchmark above is what this looks like in practice.
|
| 101 |
+
|
| 102 |
## When & how to use it
|
| 103 |
Use it as a **fast, private, first-pass methodology screen** --- a pre-submission self-check for
|
| 104 |
researchers, triage for journals / reviewers / grant panels, QA over a stack of submissions, or a check
|