Views
No views yet
| Metric | Value |
|---|---|
| Quantization method | nvidia-modelopt FP8 PTQ |
| Cosine similarity vs FP32 (mean) | 0.999 |
| Cosine similarity vs FP32 (min) | 0.992 |
| Quantizer nodes | 111 (25 Linear + 12 Conv2d) |
| Save/load roundtrip | 1.000 (perfect) |
| Model size | 5.3 MB |
| GPU tested | RTX 5090 (Blackwell) |
1import torch, copy
2import modelopt.torch.opt as mto
3from huggingface_hub import hf_hub_download
4from olmoearth_pretrain.model_loader import ModelID, load_model_from_id
5
6model = load_model_from_id(ModelID.OLMOEARTH_V1_NANO, load_weights=True).cuda().eval()
7encoder = copy.deepcopy(model.encoder)
8
9ckpt = hf_hub_download("2imi9/olmoearth-nano-fp8", "model.pth")
10mto.restore(encoder, ckpt)
11encoder.cuda().eval()
12
13output = encoder(sample, patch_size=2)
14embedding = output["project_aggregated"] # [B, 128]