I have been using a combination of modal + modular to do some custom inference work for a bit, but I’ve been having issues persisting the compiled execution graphs to my serverless environment.
After doing some digging on my local macOS env, i managed to find the file path where the MEF files are stored, (/Users/{username}/.local/share/modular/.max_cache/mof/mef) then I just manually set the volume to be what i expected the path would be on my linux env(/root/.local/share/modular/.max_cache/mof/mef). That seems to have worked (no more slow building + compiling on boot).
However, it would be great to get deeper documentation on the MEF paradigm as a whole. Took longer than it should have to get things working.
makes sense. Beyond my current strategy, which seems to be holding up for now, is there anything on the roadmap to make the caching simpler across diff archs? I know there isn’t MEF portability at the moment, but I’m surprised to see a technical choice that is CPU arch dependent. That is rare ime
No, we don’t have any near term plans to change this. I agree, the current behavior is not ideal though. I suspect we will improve it at some point, but this is not a target feature we expect to work on soon.