familyFor (nemo-speech-cpp/family.go)

LocalAI · backend/go/nemo-speech-cpp/family.go · go · MIT
voice

Maps GGUF architecture strings to NeMo model families and discovers TTS assets.

// Source: https://github.com/mudler/LocalAI | License: MIT | Copyright 2023-2025 Ettore Di Giacinto (mudler@localai.io)
// Provided via justclaw.it.com; keep this notice with the code.
package main

import (
	"fmt"
	"os"
	"path/filepath"
	"strings"

	gguf "github.com/gpustack/gguf-parser-go"
)

// auxOnlyArchitectures are converted NeMo components that attach to a primary
// model but are never loadable on their own. Pointing a model config at one is
// a configuration mistake worth naming explicitly.
var auxOnlyArchitectures = map[string]string{
	"nemo-nano-codec": "a TTS codec, set it with the codec_model option on a magpietts model",
	"vad":             "a VAD model, set it with the vad_model option on an asr model",
	"pnc":             "a punctuation model, set it with the pnc_model o

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key