opus-mt-ROMANCE-en (ONNX, 8-bit weights)

Conversion of Helsinki-NLP/opus-mt-ROMANCE-en from the OPUS-MT project (University of Helsinki), released under Apache 2.0 (see pontuador/LICENSE for the license text). The starting point was the ONNX export Xenova/opus-mt-ROMANCE-en. This repository is not affiliated with or endorsed by the original authors.

Translates Romance languages to English. It was prepared and evaluated for Portuguese speech.

Changes from the original model

  • A decoder without key/value cache (decoder_corte.onnx), which computes the logits of a single position, given by the extra input pos (output logits_t), and also returns the cross-attention of decoder layer 4 at that position (output atencao_t4), useful for word alignment. ligacao.json holds the attention thresholds used for that alignment.
  • Weights are stored in 8 bits (one scale per channel; the shared embedding table is stored once, scaled per token) and restored to float32 inside the graph, so computation stays in float32. All weights are in onnx/pesos.bin.
  • On DirectML, fix the free dimensions (batch_size, encoder_sequence_length, decoder_sequence_length) when creating the session.

Punctuation model (folder pontuador/)

An optional pre-processing step for unpunctuated speech transcripts: restores punctuation, capitalisation and sentence boundaries in Portuguese before translation. It is a conversion of 1-800-BAD-CODE/punctuation_fullstop_truecase_romance, licensed under Apache 2.0 (see pontuador/LICENSE). Changes: weights stored in 8 bits and restored to float32 inside the graph (pontuador/pesos.bin); the sentencepiece model is unchanged. On a Portuguese sample the converted model agreed with the original on 98.8% of punctuation and sentence boundary decisions and 99.8% of casing decisions.

Citation

Please cite the original work: OPUS-MT – Building open translation services for the World.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for JeeerryZ/opus-mt-ROMANCE-en-onnx-int8

Quantized
(5)
this model