facebookresearch / fairseq

Facebook AI Research Sequence-to-Sequence Toolkit written in Python.
MIT License
30.57k stars 6.41k forks source link

Is there a C++ version of Fairseq based on libtorch #5540

Open EbanShen opened 2 months ago

EbanShen commented 2 months ago

🚀 Feature Request

A C++ version of Fairseq based on libtorch is required

Motivation

Pytorch and the entire python environment are too large after packaging, so use libtorch instead. However, the previous fairseq loaded model must also be loaded in C++, but no C++ version of fairseq has been found

Pitch

Provides a C++ version of fairseq based on libtorch

Alternatives

Additional context