Views
No views yet
ibm-granite/granite-4.0-1b-speech. Weights are unmodified; this repo packages the same parameters into
loom.cpp's GGUF format.apache-2.0, inherited from the base model above.en, fr, de, es, pt, jaloom-py-rt on PyPI:pip install -U "loom-py-rt[hub]"1import loom
2
3model = loom.Model.from_pretrained("loom-ai-org/granite-speech-4.0-1b-loom")
4
5# Audio is a mono float list at 16 kHz. This model decodes in the one language it was trained for and
6# takes no `language=` argument -- passing one warns and is ignored, because nothing in its decode
7# could act on it.
8result = model.speech2text.infer(audio, timestamps=True)
9print(result.text)
10
11# It emits no timestamp tokens, so `segments` is one span covering the whole clip and
12# `result.timestamped` is False. Check that before treating a start/end as a boundary the model chose.
13for segment in result.segments:
14 print(segment.start, segment.end, segment.text)model.infer(...)
passes your arguments straight to the driver this GGUF embeds -- which is where you go for a knob the
door does not name.model.driver_source prints that driver, including a header comment documenting every argument it
accepts for this model, and is the authority on it. See loom-py for the API and
loom.cpp for what the engine does between the two.granite-speech-4.0-1b.gguf -- the model, exported with loom-exporter.