Views
No views yet
amitha/clip-vit-b16-datacomp-1b-medium-subset)Olmo3ForCausalLM).Vision weights are referenced, not stored. This repo ships the connector + LLM weights only. The vision tower is loaded at runtime fromamitha/clip-vit-b16-datacomp-1b-medium-subset, so that repo must remain accessible. Loading requirestrust_remote_code=True.
step14392, 4 epochs).
Three earlier checkpoints are available as subfolders:| Checkpoint | Subfolder | Notes |
|---|---|---|
step14392 | (root) | final (4 epochs) |
step7196 | step7196 | 2 epochs |
step13000 | step13000 | ~3.6 epochs |
step14000 | step14000 | ~3.9 epochs |
subfolder=:1model = AutoModelForImageTextToText.from_pretrained(
2 "amitha/molmo-clip-b16-1b-olmo3", subfolder="step13000", trust_remote_code=True)1import torch, PIL.Image, requests
2from transformers import AutoModelForImageTextToText, AutoTokenizer
3from transformers import AutoImageProcessor, AutoProcessor
4
5repo = "amitha/molmo-clip-b16-1b-olmo3"
6model = AutoModelForImageTextToText.from_pretrained(
7 repo, trust_remote_code=True, dtype=torch.float32).eval()
8processor = AutoProcessor.from_pretrained(repo, trust_remote_code=True)
9
10image = PIL.Image.open(requests.get(
11 "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg",
12 stream=True).raw).convert("RGB")
13inputs = processor(text="Describe this image in detail.", images=[image], return_tensors="pt")
14
15with torch.no_grad():
16 out = model.generate(**inputs, max_new_tokens=200, do_sample=False)
17print(processor.tokenizer.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))style argument (default: none) that prepends a "{style}: " prefix matching training:1inputs = processor(text="Describe this image.", images=[image],
2 style="long_caption", return_tensors="pt")long_caption, transcript, user_qa, synthetic_qa.Olmo3ForCausalLM (post-norm, YaRN RoPE), vocabulary padded to 100480;
the 128 image-placeholder logits are masked during generation.