openvino

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package openvino contains the modelrepo catalog/provider shell for in-process OpenVINO (Intel) inference.

The actual native backend lives in the isolated sub-package ./ovsession and is gated behind the 'openvino' build tag, so the default build and CI never require OpenVINO or a C++ toolchain. Without the tag, ovsession reports Available == false and this provider advertises no models.

The native session layer currently proves token-ID-level KV snapshot/restore. Text chat, prompt, stream, embedding, tokenizer, and chat-template wiring are still explicit follow-up work.

Build and test the native backend with Makefile.openvino:

make -f Makefile.openvino deps   # one-time: venv + OpenVINO SDK
make -f Makefile.openvino model  # pull the tiny KV round-trip model
make -f Makefile.openvino test   # build + run the S0 KV snapshot test

Index

Constants

View Source
const (
	KindSystem    = contextasm.KindSystem
	KindTools     = contextasm.KindTools
	KindRepoRules = contextasm.KindRepoRules
	KindRepoMap   = contextasm.KindRepoMap
	KindPinned    = contextasm.KindPinned
	KindDiff      = contextasm.KindDiff
	KindTerminal  = contextasm.KindTerminal
	KindUserTurn  = contextasm.KindUserTurn
)

Variables

This section is empty.

Functions

func AssembleContext

func AssembleContext(segs []Segment) (prompt string, stablePrefixHash string)

func ShutdownGenAISessions

func ShutdownGenAISessions() error

ShutdownGenAISessions closes every pooled OpenVINO GenAI session and empties the pool. It is safe to call on an empty pool (including builds without the native backend) and is intended for deterministic teardown on runtime exit.

Types

type Segment

type Segment = contextasm.Segment

type SegmentKind

type SegmentKind = contextasm.SegmentKind

Kept as local aliases while OpenVINO call sites finish migrating to the backend-neutral contextasm package.

Directories

Path Synopsis
Package ovsession contains the native OpenVINO session/KV bridge used by the openvino modelrepo provider.
Package ovsession contains the native OpenVINO session/KV bridge used by the openvino modelrepo provider.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL