DobyDabaDu
DobyDabaDu
MModular
Created by Jake on 1/21/2025 in #questions
Installing via Magic script
Afaik, fixing LLVM_SYMBOLIZER_PATH will not solve the error, but may give you better crash logs. This can be done by installing llvm:
sudo apt install llvm
echo 'export LLVM_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer' >> ~/.bashrc
sudo apt install llvm
echo 'export LLVM_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer' >> ~/.bashrc
15 replies
MModular
Created by matter1 on 1/14/2025 in #questions
Issues with ```mojo build``` accross different OSes (fedora 42, debian 12 bookworm)
Try this
9 replies
MModular
Created by matter1 on 1/14/2025 in #questions
Issues with ```mojo build``` accross different OSes (fedora 42, debian 12 bookworm)
sudo apt-get install zlib1g-dev
sudo apt-get install zlib1g-dev
9 replies
MModular
Created by Akshay55555 on 12/16/2024 in #questions
Mojo in CMD.
Or if you mean, "I use mint on virtual machine instead of WSL", then I suggest u to use WSL.
6 replies
MModular
Created by Akshay55555 on 12/16/2024 in #questions
Mojo in CMD.
You said cmd so I thought of windows. Afaik, mint is based on ubuntu, so u should be able to run mojo from terminal. You dont need to use a virtual machine at all. If you mean magic virtual environment by virtual machine, then u should create one but you dont have to initialize it each time. You can directly run mojo this way: magic run mojo mycode.mojo
6 replies
MModular
Created by Akshay55555 on 12/16/2024 in #questions
Mojo in CMD.
Type: wsl.exe in cmd
6 replies
MModular
Created by Akshay55555 on 12/16/2024 in #questions
Mojo in CMD.
If u use windows, u have to use a linux virtual env to run mojo. U can use WSL through cmd if that feels better.
6 replies
MModular
Created by andrewshandy on 12/14/2024 in #questions
Publish mojo package
3 replies
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:
_ = pylogits.__array_interface__['data'][0].__index__()
_ = pylogits.__array_interface__['data'][0].__index__()
12 replies