>>koyani+(OP)
You would need to add support to PostgresML. It doesn't seem to have an extension mechanism, maybe in the future. It seems easy enough, and you can use any Python libraries through Rust's PyO3 binding. PostgresML includes an example using HuggingFace transformers.