ramalama-oci(5)
β¨ ramalama-oci β the RamaLama oci:// image format, bestie edition β¨
okay so this is section 5 of the manual, all about ramalama-oci, and it's literally just here to explain how RamaLama's oci:// image format works. buckle up π
π NAME π
ramalama-oci β the RamaLama oci:// image format. that's it, that's the name, no cap.
πΈ DESCRIPTION πΈ
RamaLama's oci:// transport uses OpenContainers image registries to store AI models. yes bestie, we're putting models in registries, it's giving main character energy π
Each model gets stored in an ordinary container image β and heads up, right now it's not using a specialized OCI artifact. just a regular image. periodt.
Structurally, the image is a single-platform image, meaning the top-level element is an OCI Image Manifest, not an OCI Image Index. the way that matters, iykyk π§
π¦ Model Data π¦
Because the AI model is stored in an image and not an artifact, the data is wrapped in the standard tar layer format β same as every other OCI image out there. no special treatment, just vibes β¨
The contents of the image must contain a /models/model.file file (or, usually, a symbolic link) β and that file holds an AI model in GGUF format, which is consumable by llama-server. so that's the whole point, lowkey iconic π₯
π Metadata π
The image's config contains an org.containers.type label. and the value of that label can be one of these two cuties:
ai.image.model.rawβ the image contains only the AI model. pure. unbothered. πai.image.model.carβ the image also contains other software. more details about that software are, as of right now, unspecified in this document. so likeβ¦ mystery software, bestie π
π Local Image Storage π
The model image may be pulled into β or created in β Podman's local image storage. π«Ά
When that happens, to simplify identification of AI models, the model image may be wrapped in an OCI index pointing at the AI model image. and inside that index, the manifests' descriptor pointing at the AI model image contains an org.cnai.model.model annotation. cute little name tag, honestly π
β οΈ important caveat, don't skip this: the wrapping in an OCI index does not happen in all situations. in particular, it does not happen when RamaLama uses Docker instead of Podman. so if you're on Docker and wondering where your index wentβ¦ it was never there, bestie π
and that's the whole page!! this was ramalama-oci(5) from the Image section of the manual, brought to you by RamaLama β thanks for reading, ily, go run some models πβ¨π
π¦ where this page comes from
- fedora 43: ramalama 0.12.3-1.fc43 Β· MIT
- fedora 43: ramalama 0.25.0-1.fc43 Β· MIT
- fedora 44: ramalama 0.17.1-1.fc44 Β· MIT
- fedora 44: ramalama 0.25.0-1.fc44 Β· MIT
- nixos 26.05: ramalama 0.19.0
- nixpkgs unstable: ramalama 0.25.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms