Skip to content

gonnx-models/models

Repository files navigation

gonnx-models

Umbrella management checkout for ONNX model packages built on github.com/mackross/gonnx.

This repository is for maintainers. Each model lives in its own repository under the gonnx-models GitHub organization and is included here as a git submodule. Users should import individual model packages directly.

User imports

import "github.com/gonnx-models/silero"
import "github.com/gonnx-models/smartturn"
import "github.com/gonnx-models/bertuncased"

Examples:

vad, err := silero.Open(gonnx.WithThreads(1))
detector, err := smartturn.Open(gonnx.WithThreads(1))
recognizer, err := bertuncased.Open(gonnx.WithThreads(1))

Repositories

Repo Task
nerutils Shared implementation helpers for NER model packages. Not normally imported by end users.
silero Silero voice activity detection for 16 kHz PCM.
smartturn Smart Turn voice turn-completion detection.
neurobert Tiny English NER.
distilbertcased Cased English DistilBERT NER.
distilbertuncased Uncased English DistilBERT NER.
bertcased Cased English BERT-base NER.
bertuncased Uncased English BERT-base NER.
multidistilbert Multilingual DistilBERT NER.

See NER_BENCHMARK.md for relative NER throughput notes.

Asset policy

Model packages do not use Git LFS. Large ONNX files are committed as ordinary Git chunk files under the GitHub per-file limit. gonnx.ModelBundle.ModelParts reconstructs those chunks into the local gonnx cache before opening an ONNX Runtime session. This keeps model packages usable with normal go get.

Clone

git clone --recurse-submodules git@github.com:gonnx-models/models.git

If you already cloned without submodules:

git submodule update --init --recursive

Test

The workspace includes all model modules plus local checkouts of gonnx and its vendored onnxruntime-purego sibling, so this command is intended for the local ../ml development layout:

go test ./nerutils ./silero ./smartturn ./bertcased ./bertuncased ./distilbertcased ./distilbertuncased ./multidistilbert ./neurobert

To test a standalone model module from a fresh checkout, run inside that model's repository:

go test ./...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors