transformers-php icon indicating copy to clipboard operation
transformers-php copied to clipboard

Support LinearSVM models

Open mwargan opened this issue 1 year ago • 3 comments

Type of feature request

🌟New Model

Feature description

It would be great to support simple LinearSVM models. I'm aware its not a transformer model but there are ONNX models like this.

Motivation

https://huggingface.co/pirocheto/phishing-url-detection

Your contribution

Test

mwargan avatar Sep 09 '24 18:09 mwargan

Have you tried manually instantiating \Codewithkyrian\Transformers\Utils\InferenceSession and calling the run method?

CViniciusSDias avatar Jul 28 '25 03:07 CViniciusSDias

Have you tried manually instantiating \Codewithkyrian\Transformers\Utils\InferenceSession and calling the run method?

I can't recall - but to be clear, are you asking or are you saying it can be done that way?

mwargan avatar Jul 28 '25 14:07 mwargan

I assume it's possible to do it that way. I never tried it. There are other ONNX Runtimes too, such as Ankane's one and ORT.

I don't think it makes a lot of sense to have the TransformersPHP package supporting models that are not transformers. 😅

CViniciusSDias avatar Jul 28 '25 17:07 CViniciusSDias