MiniCPM-OCR-1.0-mic / integration.json
tarekziade's picture
tarekziade HF Staff
Publish MIC usage, slim fixture and reviewed Transformers expectations
1943277 verified
Raw History Blame Contribute Delete
2.22 kB
{
"mic": "0.3",
"name": "MiniCPM-OCR document understanding",
"usage": "AutoProcessor + MiniCPMOcrForConditionalGeneration, chat-template prompt with one image, batched, causal-LM loss",
"architecture": "MiniCPMOcrForConditionalGeneration",
"checkpoints": {
"openbmb/MiniCPM-OCR-1.0": {
"fixture": "huggingface-mic/MiniCPM-OCR-1.0-mic"
}
},
"fixtures": {
"huggingface-mic/MiniCPM-OCR-1.0-mic": {
"built_from": "openbmb/MiniCPM-OCR-1.0",
"covers": [
"openbmb/MiniCPM-OCR-1.0"
],
"build": {
"seed": 17,
"model_class": "MiniCPMOcrForConditionalGeneration"
}
}
},
"integrations": {
"transformers": {
"entry_point": "integrations/transformers/usage.md",
"format": "runnable-markdown",
"requires": [
"transformers>=5",
"torch",
"torchvision"
],
"targets": [
"fixtures",
"checkpoints"
],
"variants": {
"default": {
"dtype": "float32"
},
"eager": {
"dtype": "float32",
"attn_implementation": "eager"
},
"bfloat16": {
"dtype": "bfloat16"
}
},
"training": true,
"resources": {
"fixture": {
"download_mb": 200
},
"openbmb/MiniCPM-OCR-1.0": {
"memory_gb": 32,
"gpu_memory_gb": 22,
"download_mb": 2600,
"devices": [
"cuda"
],
"variants": {
"default": {
"devices": []
},
"eager": {
"devices": []
},
"bfloat16": {
"gpu_memory_gb": 22
}
}
}
}
}
},
"outputs": {
"runtime": {
"compare": "exact"
},
"generated_text": {
"compare": "exact"
},
"logits.probe": {
"compare": "allclose",
"atol": 0.0001,
"rtol": 0.0001
},
"training.loss": {
"compare": "allclose",
"atol": 0.0001,
"rtol": 0.0001
},
"training.gradients": {
"compare": "all_true"
},
"training.updated": {
"compare": "true"
}
}
}