chrisociepa/allamo

[feature request] usage of trained model in python script

phineas-pta opened this issue · 2 comments

hello, thanks for the great work

i know that sample.py, sample_api.py exist but i just want to use the model in a standalone python script

because of the way AllamoConfiguration.__post_init__() is defined, i cannot create a new instance AllamoConfiguration to use it

is there any way to do it properly without touching the source code?

many thanks

Thank you for your feetback!

I've just pushed a small change that allows load/parse configuration conditionally. When you create an object of the AllamoConfiguration class, pass load_configuration=False in constructor:

config = AllamoConfiguration(load_configuration=False)

tysm!