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

Compiled model name wille be t5_encoder.onnx

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

Parameters

Parameter Description Default
--model 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.0.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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: encoder_converter-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2142f0c035234918948248b002fb26304ef5c75591d0be440240bcb857ec53df
MD5 f52ad96a4f8976ad1108d2e21d09c7d0
BLAKE2b-256 0d200036f9fa21843004aa4d71a713bdb03df8036aa944a423ce99c68532a460

See more details on using hashes here.

File details

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

File metadata

  • Download URL: encoder_converter-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18f1bc39f070bb64caeecb1a29ecb080e0e3f69f43779579862764852130c2de
MD5 3c3e7641e562cdac840ea3b18f8de2f9
BLAKE2b-256 6af876bf8e55226fa358b15d185c88d35a1fa028721491b35593862cdd0f918e

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