3

I'm wondering if it is possible to implement a federated averaging function on solana. But im not sure if I can use the crates that would allow me to do that.

Here are the crates i wanna use.

Numpy

PyO3

Can i use these 2 crates on a solana program?

2
  • are you using seahorse-lang for it or rust ?
    – Pratik.js
    Nov 13, 2022 at 10:41
  • If you want to use Numpy you should try the ndarray crate. I don't know if it works in Solana but I'm optimistic
    – KevinH
    Dec 30, 2022 at 0:04

2 Answers 2

1

Neither of those will run in a Solana smart contract, since the Solana VM doesn't have python installed.

0

If you want to do ML operations on chain or run inference using a model, it's better to use seahorse-lang. Relevant example is sea-nn.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.