converter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSafetensorsToGGUF added in v0.7.0

func ConvertSafetensorsToGGUF(inputDir, outputPath, arch string) error

ConvertSafetensorsToGGUF reads a HuggingFace model directory containing config.json and model.safetensors, maps tensor names and metadata using the existing GGUF mapping functions, and writes a GGUF file.

func ONNXToZMF

func ONNXToZMF(model *onnx.ModelProto) (*zmf.Model, error)

ONNXToZMF converts an ONNX model to the ZMF format.

func ONNXToZMFWithPath

func ONNXToZMFWithPath(model *onnx.ModelProto, modelPath string) (*zmf.Model, error)

ONNXToZMFWithPath converts an ONNX model to the ZMF format with support for external data files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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