microsoft / promptbase

All things prompt engineering
MIT License
5.37k stars 295 forks source link

AzureML Improvements #16

Closed riedgar-ms closed 9 months ago

riedgar-ms commented 9 months ago

Assorted improvements to the AzureML code:

I have been trying to use the last for calling guidance in a component. For reasons which are pickle-related, only the multiprocessing backend appears to work (even after changing the component implementation to ensure that the partial function evaluation only uses pickleable objects). I have tried both LOKY_PICKLER=pickle on the command line (per joblib.parallel), and cloudpickle.register_pickle_by_value(guidance) (per cloudpickle itself) but both just get me different error messages.