DobyDabaDu
MModular
•Created by Duke on 11/16/2024 in #questions
is there a way I can convert a list to a SIMD vector?
Access the pointer of the list then call its load method and give ur desired simd_width parameter to it. But loading more than 32 or 64 bytes data will not prabably give u much benefit
3 replies
MModular
•Created by Vicente on 11/9/2024 in #questions
Can I port my Python lib to Mojo?
Take a look at a [algorithm]_test.mojo file then u'll understand how I call python functions
7 replies
MModular
•Created by Vicente on 11/9/2024 in #questions
Can I port my Python lib to Mojo?
In one my projects I use sklearn to generate test data then perform ml operations on those data. U can check it here:
https://github.com/yetalit/Mojmelo/tree/main/tests
7 replies
MModular
•Created by Vicente on 11/9/2024 in #questions
Can I port my Python lib to Mojo?
If u perform operations in pure python that slow down ur code then I think yes rewriting those parts in mojo may make ur code run faster. But calling torch functions from mojo repeatedly may have a worse performance than calling them directly from python. U should do some tests
7 replies
MModular
•Created by JanEric1 on 11/7/2024 in #questions
Most efficient way to check for tictactoe board win
One approach might be defining a max size then keeping the unnecessary cells 0
7 replies
MModular
•Created by JanEric1 on 11/7/2024 in #questions
Most efficient way to check for tictactoe board win
As I know, if u define the board size this way: alias b_size = 2
Then u can generate combinations at compile time, but if u want to get the size from user at runtime, it will not be possible
7 replies
MModular
•Created by DobyDabaDu on 8/21/2024 in #community-showcase
Mojmelo: Machine Learning algorithms
If you're using something like XGBoost, then they are optimized very well
14 replies
MModular
•Created by DobyDabaDu on 8/21/2024 in #community-showcase
Mojmelo: Machine Learning algorithms
Well, I'm not fully aware of the process, if GBDT parts are bottleneck and you are using a cpu based library (like sklearn), after the mojo gpu support, they can run faster. But, my current GBDT is not optimized and may not fully support your desired parameters. It's WIP
14 replies
MModular
•Created by DobyDabaDu on 8/21/2024 in #community-showcase
Mojmelo: Machine Learning algorithms
Btw, I'm currently improving the matrix data type and I hope we will get some good results in terms of the speed
14 replies
MModular
•Created by DobyDabaDu on 8/21/2024 in #community-showcase
Mojmelo: Machine Learning algorithms
Hi, Thank you! If you mean pure python🙂 Mojmelo will be much faster. Numpy is the key of the performance in python and it depends on the algorithm. If it performs large matrix operations, then numpy can make a noticeable difference. If we use a data structure as fast as numpy, or the algorithm performs smaller matrix operations, I think Mojmelo will have an equal or better performance. (For example, mojo is better than python at parallel computing)
14 replies
MModular
•Created by franchesoni on 10/17/2024 in #questions
print breaks code
Put this after memcpy:
12 replies
MModular
•Created by Ethan on 7/25/2024 in #community-showcase
Matmul.mojo
@Ethan I tried to implement my own but things didnt work well in mojo (unlike C). Amazing how you did it even without using built-in prefetch and tile functions. Anyway, I renewed your code according to Mojo 24.5 as I'm gonna use it in a project and opened a PR to your repo.
After GPU support, it would be amazing to see a gpu version as well:mojonightly:
Thanks
29 replies
MModular
•Created by DobyDabaDu on 9/11/2024 in #community-showcase
Terminal Snake Game: from scratch (no 3rd party libraries)
I'll send you a message regarding this!
6 replies
MModular
•Created by Akshay on 9/25/2024 in #questions
Linux Mint.
As I know, Mint is based on Debian and Ubuntu.
4 replies
MModular
•Created by Akshay on 9/25/2024 in #questions
Linux Mint.
Doesn't this command run on Mint terminal?
curl -ssL https://magic.modular.com/ad4680b9-af01-426f-9064-c7a252b8c5e3 | bash
4 replies
MModular
•Created by Hasan Yousef on 9/19/2024 in #questions
Define Tuple with PuthonObject
This is a working approach
8 replies
MModular
•Created by Hasan Yousef on 9/19/2024 in #questions
Define Tuple with PuthonObject
Dont use var in def function (to solve the issue)
8 replies
MModular
•Created by Martin Dudek on 9/16/2024 in #questions
to_numpy with Mojo 24.5
Glad it worked❤️
9 replies