Model reference · open weights
OpenMidnight-1.1 is an open-weight embedding model from medarc. OpenMidnight-1.1 (FP32) weighs 2.3 GB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the medarc/OpenMidnight-1.1 model card, 2026-11-12
What it is
| Released by | medarc |
|---|---|
| Released | 2026-10-23 |
| Parameters | 1.1B |
| VRAM | 2.3 GB for the weights |
What it runs on
| Card | Runs | Memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
From the model card
MedARC · Sophont · Paper (coming soon)
OpenMidnight 1.1 is a pathology foundation model developed by MedARC and Sophont. This release provides the pretrained encoder for extracting features from histology images.
The model maps RGB histology tiles to 1,536-dimensional embeddings for downstream analysis. All inference weights are included; no separate base checkpoint, adapter, or cluster access is required.
In a Python environment:
uv pip install torch torchvision "timm==1.0.30" huggingface_hub safetensors pillow
import torch
import timm
from PIL import Image
from timm.data import create_transform, resolve_model_data_config
device = "cuda" # Use "cpu" to run without a GPU.
model = timm.create_model(
"hf-hub:medarc/OpenMidnight-1.1", pretrained=True,
).eval().to(device)
transform = create_transform(**resolve_model_data_config(model), is_training=False)
image = Image.open("tile.png").convert("RGB")
batch = transform(image).unsqueeze(0).to(device)
with torch.inference_mode():
tokens = model.forward_features(batch)
embedding = tokens[:, 0]
print(embedding.shape) # torch.Size([1, 1536])
The configuration uses crop_pct=1.0 and crop_mode="squash" to resize the full image directly to 224 × 224 pixels. It uses bicubic interpolation and ImageNet normalization stored in config.json. The embedding uses the CLS token.
These are tile embeddings. Slide-level predictions require a downstream model.
The transform resizes the entire image to 224 × 224 without removing tissue. For square tiles, this preserves the aspect ratio; rectangular images are stretched to fit. The final center-crop operation generated by timm is a no-op because the image is already 224 × 224.
The image and segmentation mask must cover the same tissue region. With a full-tile resize, decoder logits can be interpolated back to the original mask size before computing the loss or metrics, as THUNDER does. If resizing a discrete label mask instead, use nearest-neighbor interpolation. Exclude the CLS and register tokens when passing patch features to a segmentation decoder: patch_tokens = tokens[:, model.num_prefix_tokens:].
Coming soon. We will add the paper link and citation here.
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
How it works