Godwinh19 / gotorch

Pytorch - Python + Golang = Gotorch
Other
13 stars 1 forks source link

Loading and using hummingface models #3

Open ior308 opened 1 year ago

ior308 commented 1 year ago

Dear,

can I use gotorch to load a hugging face model (like bert) and use it ? Is there an example ?

Best Regards

Godwinh19 commented 11 months ago

Hey,

Unfortunately, there isn't a direct one-to-one mapping between Hugging Face models in Python and gotorch in Go due to differences in the underlying frameworks and libraries. You may need to bridge this gap by exporting and importing models, as well as writing custom Go code for inference.

Are you willing to work on that ? :)