SAVRN
Search Contact SAVRN

Open-weight model

coca-retrieval-finetune

by Sophia Williams sarahjhy/coca-retrieval-finetune

This repository is a compact, custom PyTorch implementation of Coca for Retrieval. The small configuration is intended for code review, smoke tests, and small controlled experiments rather than as a production-ready pretrained release.

Parameters16,576
Context512
Weights66.8 KB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads

Runs On

What it takes to serve coca-retrieval-finetune (16,576 parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Sophia Williams, published under apache-2.0, revision 7d3c856e9b14.

This repository is a compact, custom PyTorch implementation of Coca for Retrieval. The small configuration is intended for code review, smoke tests, and small controlled experiments rather than as a production-ready pretrained release. - The Python file contains the model and runnable example or training entry point. - config.json records the generated architecture settings. - trainingargs.json records the default experiment recipe. - model.safetensors is a valid initialization checkpoint for smoke tests; it is not presented as a trained benchmark checkpoint. - No benchmark score is claimed in this repository. The included configuration uses novograd with a onecycle schedule. These are…

Read Sophia Williams's full model card

Coca for Retrieval

Overview

This repository is a compact, custom PyTorch implementation of Coca for Retrieval. The small configuration is intended for code review, smoke tests, and small controlled experiments rather than as a production-ready pretrained release.

Repository status

  • The Python file contains the model and runnable example or training entry point.
  • config.json records the generated architecture settings.
  • training_args.json records the default experiment recipe.
  • model.safetensors is a valid initialization checkpoint for smoke tests; it is not presented as a trained benchmark checkpoint.
  • No benchmark score is claimed in this repository.

Architecture

Item Value
Architecture Coca
Scale small
Attention sliding window
Fusion bilinear
Activation relu
Normalization scalenorm

Default experiment recipe

The included configuration uses novograd with a onecycle schedule. These are starting values in the script, not evidence of a completed run. For a meaningful evaluation, train all baselines with the same data exposure, tuning budget, and random seeds.

Quick check

python predict.py --help

Inspect the script's __main__ block for its generated smoke-test example. Because this is a custom implementation, generic automatic loading APIs require an explicit adapter before use.

Evaluation guidance

A useful first evaluation would use Flickr30k, report the task metric across at least three seeds, and include a matched-capacity baseline. Keep training logs and environment versions with any published result.

Limitations

The initialization checkpoint has not been trained or audited for robustness, fairness, or domain transfer. The implementation should be treated as an experimental starting point. Results from a future trained checkpoint must be documented separately from the defaults shipped here.

Files

  • predict.py — primary artifact
  • README.md — this documentation
  • config.json — architecture configuration
  • training_args.json — default experiment settings
  • model.safetensors — initialization checkpoint

License

Released under apache-2.0. Review the source-data terms separately when this repository is used with external datasets.

Configuration

Architecture
CustomResearchModel
Context length (tokens)
512
Layers
8
Hidden size
128
Feed-forward size
512
Attention heads
8
Model type
coca

Identity and Version

Repository
sarahjhy/coca-retrieval-finetune
Publisher
Sophia Williams
Task
Not stated by the source
Modality
Other
Library
Not stated by the source
Parameters
16,576 parameters
Languages
Not stated by the source
Revision
7d3c856e9b1404e187af5c849dbd355576ff8420
First published
2026-09-18
Last updated
2026-09-18

Files and Weights

6 files, 73.8 KB in total. The weights are 1 file totalling 66.8 KB in safetensors.

Weights1 file · 66.8 KB
Configuration3 files · 3.1 KB
Documentation1 file · 2.5 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights66.8 KB 4ed61401de93
config.jsonConfiguration426 B
predict.pyConfiguration2.4 KB
training_args.jsonConfiguration193 B
README.mdDocumentation2.5 KB
.gitattributesRepository1.5 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
66.8 KB
Download from Sophia Williams

Released by Sophia Williams through its official repository on Hugging Face. Read the license.

Memory Requirements

PrecisionWeights in memory
As published66.8 KB
16-bit0.0 GB
8-bit0.0 GB
4-bit0.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About coca-retrieval-finetune

How much GPU memory does coca-retrieval-finetune need?

About 0 GB at 16-bit and 0 GB at 4-bit: the weights (16,576 parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run coca-retrieval-finetune on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use coca-retrieval-finetune commercially?

Yes. coca-retrieval-finetune is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is coca-retrieval-finetune's context length?

512 tokens, from the maximum position embeddings in its published configuration.