Modular

M

Modular

This server is the home of the MAX and Mojo community. Join us to chat about all things Modular!

Join

questions

community-showcase

Current NEOVIM config

Let's use this post to share neovim setups for mojo!
No description

Required resources for AI model training.

Hello 👋, New to Mojo and MAX world. Can you guys suggest some upto date resources for training AI models. Thanks 🙏

Max 24.6 try to start Jupyter with nightly instead of the release version

Hello, I am new to Mojo/MAX. To learn, I am trying to use Mojo for a Udacity course that uses Python. I started with MAX 24.5 using Magic. I found what I think could be a bug in the standard library, but before posting about it, I wanted to check if the issue still exists in 24.6....

Is the Mojo team working w/ the core Python team?

I imagine there are things that eventually would be nice to sort of maneuver and synchronize. I've heard that the Python team is all for Mojo, but that doesn't necessarily mean co-operation between the two teams, on the sort of slow, careful syntax upgrades and whatnot. Or does it?

Starting with Mojo

I'm new to Mojo, I did some research here and there, and learned a few things, but I'm getting too caught up in the theory, does anyone know what a good project to start with would give a good foundation?

What is the best option for arrays (fix-sized)?

In which cases should I use SIMD, Tensor etc.?

Telemetry Data @ the command line

Do the bugs in the stack get sent back to Modular servers. I’m sure it is being logged for development purposes. Because I had an error in bash saying something about sending telemetry data idk what that is about though

List memory preallocation

Is this the correct way to preallocate memory in Mojo?
var large_list = List[int](capacity=5)
var large_list = List[int](capacity=5)
Also with what is the memory preallocate (Null, 0,)?...

error: 'https://dl.modular.com/public/magic/raw/versions/latest/magic-x86_64-apple-darwin' not found

Sorry, Magic is not available for your OS and CPU architecture. See https://modul.ar/requirements. I am getting this error while installing the Maic CLI in my machine....

Strange CLI Hang

The Problem Spoiler: I fixed the bug. Now I’m just trying to figure out what exactly was going on under the hood to cause it. So, here’s the setup: running the magic CLI with commands like:...

Max/Mojo license question

Reading the max/mojo license here: https://www.modular.com/legal/max-mojo-license I can see the following:
use the SDK in an Application or standalone, or otherwise develop an Application in Mojo, for any Competitive Activity;
Does that mean that, if I use the Mojo language (not Max) to develop something similar to Max or Ray (https://www.ray.io/) I'll be breaching the license terms?...

Mojo equivalent of Python class parameters

In Python, you can create a class, say "model" and ask for its parameters using model.parameters. Is there an equivalent for a struct in Mojo? I would like to pass it to something like: torch.optim.Adam(model.parameters(), ...) ....

Are there benchmarks available for llama 3.1 8b running on max?

@ModularBot I am trying to benchmark performance of max on cpu. Are there any available benchmarks? Or is there code which I can use to run the benchmarks myself. I want to run inference on llama 3.1 8b model.

`tensor.tensor.Tensor`, `max.tensor.Tensor` or `max.driver.Tensor`?

Are we meant to use tensor.tensor.Tensor, max.tensor.Tensor or max.driver.Tensor? The first one might be a re-export of the second, but max.driver.Tensor is the only one which seems to handle multi-device, however most of the max APIs don't seem to work on it despite it seeming to be a better match for ManagedTensorSlice. However, I don't see a way to move data off of the GPU with the max.tensor.Tensor/tensor.tensor.Tensor variants, and I get segfaults in what looks like a memcpy f...

Single Executable Binary just like Go Lang?

I love how Go makes single executable binary for an app I make in it by default. Makes deployment on the servers very easy. Does Mojo has any plans to add a similar feature?

I don't quite understand the overall concept of MLIR

Are all the standard Mojo types, as in those found in Python, going to be MLIR? As I understand it, they're optimized behind the scenes but universal on the screens. Or is this for more complex or specialized types?

One liner to open "magic shell" + "magic build"

I am having issues with the magic. I want to programmatically and directly pipe build command into it. But I just loose my TTY. I tried a bunch of things but does not get it to work. Doing these commands manually might be alright when there is not much to be built but I would really like to know if you guys have a solution for this.

Compile time float pow is crashing, is there a proper way to do this?

Crashing on a lower level open-source/mojo/stdlib/stdlib/sys/intrinsics.mojo:90:14: note: LLVM intrinsic operand has unknown value: #pop<simd "1.8618819175149959"> : !pop.scalar<f64> ```rs alias num = 1.23 ** 4.56...

Will MAX GPU or NPU support come to Qualcomm xelite chips?

just curious or if i shouldn't get my hopes up. I am curious what direction Modular wishes to take.

Is it possible to get the origin of `strs` in `fn name(*strs: String)`?

Minimal repro, LSP shows invalid call to 'append': method argument #0 cannot be converted from 'List[StringSlice[strs]]' to 'List[StringSlice[strs]]' Seems like a bug, but maybe there's a proper way to do this? ```rs...