Skip to main content

Convert huggingface encoder to onnx format.

Project description

Encoder converter

:rocket: Easy way to convert huggingface encoder model to other formats.

Description

Encoder converter is a package that allowes you to convert huggingface encoder model to other formats (e.g. onnx).

Features

Unfinished features will be implemented in future versions.

  • Convert encoder model to onnx.
  • Convert encoder model to openvino.

Installation

pip install encoder-converter

Usage

Run

You can find the complied model at output_dir/t5_encoder.onnx

convertencoder --model project/repo --output-dir /my/output/dir --cache_dir /cache/dir

Parameters

Parameter Description Default
--model-name Huggingface model name
--output-dir Path to save compiled model and tokenizer artifacts.
--cache-dir Path to a directory in which a downloaded pretrained model configuration should be cached while compiling. /tmp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

encoder_converter-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

encoder_converter-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file encoder_converter-0.1.1.tar.gz.

File metadata

  • Download URL: encoder_converter-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.9 Darwin/24.3.0

File hashes

Hashes for encoder_converter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f55c9d8129cc1109e5f88ae90648c6d10e28b44bd49d4173fdb5ece8fb7cb187
MD5 5bf19f242b73cb6234001eb077f70369
BLAKE2b-256 3bdb1d2cf6eecdf2f92b4e4124941fe9d51c681225f39204445958e6567044aa

See more details on using hashes here.

File details

Details for the file encoder_converter-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: encoder_converter-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.9 Darwin/24.3.0

File hashes

Hashes for encoder_converter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa7dafa4fe707f92e04a2f78ab7c76a497bc6f68d2709a3652b0573db0901c09
MD5 bce37f743ccd9834a058f2ee27090fc2
BLAKE2b-256 f7e3940fb6f0e3a6289c48c46385aa4055cb0da0900a31370af4b1483fb4b4da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page