Views
No views yet
layerwise_attention rebuilt to mix only the surviving layers (embeddings + kept layer outputs).| Metric | This variant | Full cometkiwi |
|---|---|---|
| Pearson r vs human DA | 0.5544 | 0.6402 |
| Spearman vs human DA | 0.5727 | 0.6698 |
| Pearson r vs full | 0.8113 | 1.0000 |
| MAE vs full | 0.0994 | 0.0000 |
| Params | 514.8M | 565.1M |
| On-disk size | ~1030 MB | ~2200 MB |
| Variant | Pearson(human) | Pearson(full) | Size | When to use |
|---|---|---|---|---|
| full base | 0.6402 | 1.0000 | ~2200 MB | reference quality |
-int8 | 0.6404 | 0.9919 | ~1300 MB | lossless compression |
-pruned-k2 | 0.6300 | 0.9784 | ~2100 MB | best-quality pruned |
-pruned-k4 | 0.5642 | 0.8316 | ~2060 MB | aggressive prune |
-pruned-k4-xs | 0.5544 | 0.8113 | ~1030 MB | smallest footprint |
hparams.yaml + state_dict.pt); the loader instantiates an empty COMET architecture via load_pretrained_weights=False and overlays the fine-tuned weights. Only the ungated microsoft/infoxlm-large tokenizer/config (~5 MB) is fetched on first load and cached.1# pip install "unbabel-comet" "setuptools<81" huggingface_hub pyyaml
2
3from huggingface_hub import snapshot_download
4import sys
5folder = snapshot_download(repo_id="solailabs/wmt22-cometkiwi-da-pruned-k4-xs")
6sys.path.insert(0, folder)
7from load import load_model
8
9model = load_model(folder)
10out = model.predict(
11 [{{"src": "The meeting has been postponed until next week.",
12 "mt": "La réunion a été reportée à la semaine prochaine."}}],
13 batch_size=8, gpus=0, progress_bar=False, num_workers=2,
14)
15print(out["scores"])HF_TOKEN required. No license acceptance on Unbabel/wmt22-cometkiwi-da needed.state_dict.pt — model weights (fp32 for -pruned-k2 / -pruned-k4, fp16 for -int8 / -pruned-k4-xs)hparams.yaml — COMET hyper-parameters (encoder model, regressor shape, loss config)config.json — kept/dropped layer indices, quant flag, benchmarked accuracyload.py — drop-in standalone loaderREADME.md — this fileUnbabel/wmt22-cometkiwi-da by Unbabel.@inproceedings{{rei-etal-2022-cometkiwi,
title = "{{C}}omet{{K}}iwi: {{IST}}-{{U}}nbabel 2022 Submission for the Quality Estimation Shared Task",
author = "Rei, Ricardo and others",
booktitle = "WMT 2022",
}}