Instructions to use Frosty40/ZONOS3-Mini-Turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Frosty40/ZONOS3-Mini-Turbo with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Frosty40/ZONOS3-Mini-Turbo # Run inference directly in the terminal: llama cli -hf Frosty40/ZONOS3-Mini-Turbo
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Frosty40/ZONOS3-Mini-Turbo # Run inference directly in the terminal: llama cli -hf Frosty40/ZONOS3-Mini-Turbo
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Frosty40/ZONOS3-Mini-Turbo # Run inference directly in the terminal: ./build/bin/llama cli -hf Frosty40/ZONOS3-Mini-Turbo
Use Docker
docker model run hf.co/Frosty40/ZONOS3-Mini-Turbo
- Llama new
- LM Studio
- Jan
- Ollama
How to use Frosty40/ZONOS3-Mini-Turbo with Ollama:
ollama run hf.co/Frosty40/ZONOS3-Mini-Turbo
- Unsloth Desktop
- Docker Model Runner
How to use Frosty40/ZONOS3-Mini-Turbo with Docker Model Runner:
docker model run hf.co/Frosty40/ZONOS3-Mini-Turbo
- Lemonade
How to use Frosty40/ZONOS3-Mini-Turbo with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Frosty40/ZONOS3-Mini-Turbo
Run and chat with the model
lemonade run user.ZONOS3-Mini-Turbo-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
File size: 2,085 Bytes
a8ec9e4 3aac5ce a8ec9e4 3aac5ce a8ec9e4 3aac5ce a8ec9e4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | """WER of each take in <tag>/timings.json with faster-whisper large-v3 (CPU int8), the same ASR the Drama-3 B70 card used."""
import json, os, re, sys
from faster_whisper import WhisperModel
import jiwer
import wave
import numpy as np
from scipy.signal import resample_poly
def load_16k(path):
with wave.open(path) as w:
sr, ch, n = w.getframerate(), w.getnchannels(), w.getnframes()
x = np.frombuffer(w.readframes(n), dtype=np.int16).astype(np.float32) / 32768.0
if ch > 1:
x = x.reshape(-1, ch).mean(1)
g = np.gcd(16000, sr)
return resample_poly(x, 16000 // g, sr // g).astype(np.float32)
tag = sys.argv[1]
d = os.path.expanduser(f"{os.environ.get('ZB_ROOT', '~/omnispace-b70')}/bench/{tag}")
rows = json.load(open(f"{d}/timings.json"))
m = WhisperModel("large-v3", device="cpu", compute_type="int8", download_root=os.environ.get("ZB_ASR_CACHE", "/mnt/data2tb/fish-asr/hf"))
def norm(s):
s = re.sub(r"[^a-z0-9' ]", " ", s.lower().replace("-", " "))
return re.sub(r"\s+", " ", s).strip()
for r in rows:
if "error" in r:
continue
wav = r["wav"] if os.path.exists(r["wav"]) else f"{d}/wav/{os.path.basename(r['wav'])}" # takes copied from another box
seg, _ = m.transcribe(load_16k(wav), language="en", beam_size=5, vad_filter=True, condition_on_previous_text=False)
r["hyp"] = " ".join(s.text.strip() for s in seg).strip()
r["wer"] = round(min(1.0, jiwer.wer(norm(r["text"]), norm(r["hyp"]) or "_")), 4)
print(r["id"], r["wer"], r["hyp"][:90], flush=True)
json.dump(rows, open(f"{d}/scored.json", "w"), indent=1)
ok = [r for r in rows if "wer" in r]
ref_words = sum(len(norm(r["text"]).split()) for r in ok)
errs = sum(jiwer.process_words(norm(r["text"]), norm(r["hyp"]) or "_").wer * len(norm(r["text"]).split()) for r in ok)
print("SCORE", tag, json.dumps(dict(
n=len(ok), corpus_wer=round(errs / ref_words, 4), mean_wer=round(sum(r["wer"] for r in ok) / len(ok), 4),
catastrophic=sum(r["wer"] > 0.5 for r in ok),
no_eos=sum(r.get("eos") is not None and r["eos"] < 0 for r in ok))))
|