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-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MorphMind-AI/CFM-Methods-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MorphMind-AI/CFM-Methods-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MorphMind-AI/CFM-Methods-7B") model = AutoModelForCausalLM.from_pretrained("MorphMind-AI/CFM-Methods-7B", 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=40) 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-7B 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-7B" # 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-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MorphMind-AI/CFM-Methods-7B
- SGLang
How to use MorphMind-AI/CFM-Methods-7B 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-7B" \ --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-7B", "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-7B" \ --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-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MorphMind-AI/CFM-Methods-7B with Docker Model Runner:
docker model run hf.co/MorphMind-AI/CFM-Methods-7B
Add SOTA comparison: matches frontier recall/localization, 0 false alarms vs Opus 0.28 / GPT-4o 0.47
Browse files
README.md
CHANGED
|
@@ -34,18 +34,23 @@ models whose job is not to *generate* science but to **check** it.
|
|
| 34 |

|
| 35 |
|
| 36 |
Evaluated on **flaw types the model never trained on** (24 flaw families used for training, **12 held
|
| 37 |
-
out for evaluation**) β so this measures *generalization*, not memorization
|
|
|
|
| 38 |
|
| 39 |
-
| Model | Recall | Localization | False-positive rate (clean) |
|
| 40 |
-
|---|---|---|---|
|
| 41 |
-
| base Qwen2.5-7B | 0.30 | 0.42 | 0.07 |
|
| 42 |
-
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
(
|
| 48 |
-
|
|
|
|
|
|
|
| 49 |
|
| 50 |
## When & how to use it
|
| 51 |
Use it as a **fast first-pass methodology screen** β to flag questionable analysis choices before a
|
|
|
|
| 34 |

|
| 35 |
|
| 36 |
Evaluated on **flaw types the model never trained on** (24 flaw families used for training, **12 held
|
| 37 |
+
out for evaluation**) β so this measures *generalization*, not memorization β and benchmarked head-to-head
|
| 38 |
+
against frontier models on the **same held-out set**:
|
| 39 |
|
| 40 |
+
| Model | Recall | Precision | Localization | False-positive rate (clean) |
|
| 41 |
+
|---|---|---|---|---|
|
| 42 |
+
| base Qwen2.5-7B | 0.30 | β | 0.42 | 0.07 |
|
| 43 |
+
| GPT-4o | 0.86 | 0.64 | 0.94 | 0.47 |
|
| 44 |
+
| Claude Opus 4 | 0.96 | 0.78 | 0.97 | 0.28 |
|
| 45 |
+
| **CFM-Methods-7B (ours)** | **0.96** | **1.00** | **0.96** | **0.00** |
|
| 46 |
|
| 47 |
+
**CFM-Methods-7B matches frontier recall and localization β and is the only model with zero false
|
| 48 |
+
alarms.** It catches 96% of methodological flaws it has never seen and pinpoints the exact flawed
|
| 49 |
+
statement 96% of the time, *equal to Claude Opus 4*, while the frontier models over-flag clean methods
|
| 50 |
+
heavily (Opus 28%, GPT-4o 47% false-positive rate). So it delivers **frontier-level methodology screening
|
| 51 |
+
with the precision of a careful expert β on-prem, at ~1/100 the cost of a frontier API**, and can run
|
| 52 |
+
across every methods section in your pipeline. Per-flaw-type recall ranges 0.65β1.00 across the 12
|
| 53 |
+
held-out families; a human makes the final call.
|
| 54 |
|
| 55 |
## When & how to use it
|
| 56 |
Use it as a **fast first-pass methodology screen** β to flag questionable analysis choices before a
|