Views
No views yet
1from transformers import CsmForConditionalGeneration, AutoProcessor, BitsAndBytesConfig
2import torch
3
4# The model is already quantized, so just load it normally
5model = CsmForConditionalGeneration.from_pretrained(
6 "john-welbourne-csm-1b-4bit",
7 torch_dtype=torch.float16,
8 device_map="auto"
9)
10processor = AutoProcessor.from_pretrained("john-welbourne-csm-1b-4bit")
11
12# Use with your existing CSM inference code