Offline Kaggle Install
I would like to install and use Mojo+Max (Magic-cli?) in an offline Kaggle Notebook but the workarounds that I have seen require uploading the package's .whl files (https://www.kaggle.com/code/jisukim8873/install-llm-packages-without-internet-access/notebook, https://www.kaggle.com/code/panozzaj/installing-pip-packages-on-kaggle-without-internet) as a dataset. I can mark the dataset with Modular's License but I believe that is against their terms and conditions of not hosting Mojo's codebase. Could Modular upload (with CI?) a dataset of install files (or ready to use executables) and an example Kaggle Notebook that can run Mojo in offline mode (a requirement of submissions)?
7 Replies
https://discord.com/channels/1087530497313357884/1267269207372988597/1276944873680801793
caroline_frasca:
Sorry for the delay on this – I've confirmed that uploading the .whl file to Kaggle doesn't violate our terms & conditions. Let us know if you run into any issues along the way so we can help out 🙂@Caroline Is
Apache License v2.0
the correct license to tag?
Then put this in the description?
Or is this the correct one to use:
Or is this the correct one to site:
Hey @Kiraid, this is the right license for the full MAX and Mojo SDKs: https://www.modular.com/legal/max-mojo-license
Modular: MAX & Mojo Community License
The MAX SDK ("MAX") & Mojo Community License governs what uses we allow with our software and how you can change the world with it.
Using ipython magic-action
%%script
to call modular's magic shell
,
while offline,
running a no-op comment line of #
,
I get the following error:
%%script
calling bash
or python
works just fine.
https://ipython.readthedocs.io/en/stable/interactive/magics.htmlHere is a kaggle template for testing: https://www.kaggle.com/code/michaeldgibson/offline-mojo-template
Offline Mojo Template
Explore and run machine learning code with Kaggle Notebooks | Using data from Offline Mojo
Opened up an issue for this here: https://github.com/modularml/mojo/issues/3429
Hey @Kiraid, as I mentioned earlier, compiling Mojo in a Kaggle cell isn't something that we'd expect to work currently (including with magic). This is something we're hoping will be possible in the next few months. Sorry if my earlier message was unclear on this.
@Caroline I got it mostly working (not for production): https://www.kaggle.com/code/michaeldgibson/offline-mojo-template
https://www.kaggle.com/datasets/michaeldgibson/offline-mojo
Offline Mojo
! magic --no-progress run mojo "test.mojo"