Mojo old version installation

Hi folks. Thanks for maintaining this wonderful community. I am NLP researcher and trying to generate mojo codes, as it is fully OOD language in most case. I am trying to run humaneval-mojo but it seems the dataset is constructed with old version of mojo. So, I looked around how can I install older version of mojo. For instance, we can install old version of python via a number of ways and for me, I use pyenv. Like the pyenv, I was thinking of magic can do this but it seems not. I surveyed for a long time and cannot find the way around. Especially the commands are mixed up between magic and modular. Can anybody please help me?
6 Replies
Darkmatter
Darkmatter5mo ago
This paper appears to have been done on a fairly old version of Mojo, most likely getting published took a bit (as it does). Trying to do generation of Mojo code is going to be difficult since most of the Mojo code in existence won't compile any more or won't compile soon, since they language is very new and making lots of breaking changes. There also aren't docs good enough to train an model on. Given the rate of language change, you would essentially need to retrain the model every few months if you only support stable (which many people don't use).
DicoTiar_Artemis
DicoTiar_ArtemisOP5mo ago
@Darkmatter Thanks for your comment. Yes. It seems the Mojo updates very often and most of the functions written on the dataset may be outdated. I should try training with updated one. Anyway, just in case, is there a way to install old version of Mojo?
Darkmatter
Darkmatter5mo ago
Anything that uses the modular CLI is, as far as I am aware, not really accessible. Anything using magic lets you select the version as needed, although I would expect nightly versions to get cleaned out at some point.
DicoTiar_Artemis
DicoTiar_ArtemisOP5mo ago
Oh I see so how can I install with magic? I wish I could try 0.7.0
Darkmatter
Darkmatter5mo ago
With magic you set the version number in the mojoproject.toml / pixi.toml file.
DicoTiar_Artemis
DicoTiar_ArtemisOP5mo ago
thx. I better have to try it

Did you find this page helpful?