Skip to content

YoungHaKim7/Modular_Mojo_AI_Dev

Repository files navigation

python


mojo 깃허브

vim tab setting

set tabstop=4
set shiftwidth=4
  • space 오류나는거 탭으로 바꾸기(역시 Vim 최강)
// 물어보고 스패이스 4칸 탭으로 바꾸기
:%s/    /\t/gc

// 안 물어보고 바꾸기
:%s/    /\t
  • Python 에서는 tab을 사용하라고 하고 있고 space 4칸을 권장하고 있다.

https://peps.python.org/pep-0008/

https://www.reddit.com/r/learnpython/comments/8cann8/tabs_vs_spaces_i_dont_get_it/



Install MAX(이게 superset이라 mojo는 지우면 된다.)

# Extraction complete, setting configs...
# Configs complete, running post-install hooks...
==== CONFLICTING PACKAGES DETECTED ====

The MAX package is a superset of the Mojo package.

Having both standalone Mojo package and the MAX package installed
at the same time can cause version confusion.

We recommend uninstalling the standalone Mojo using `modular uninstall mojo`.  You can still use Mojo from the MAX package..

Install(LinuxOS)

  • python3.10-venv 설치 되어 있어야함
sudo apt install python3.10-venv
  • install
sudo apt-get update && \
sudo apt-get install modular && \
modular clean && \
modular install mojo


  • 다음 auth 해주면 된다.

https://developer.modular.com/download

  • modular clean && modular install mojo
$ modular clean

 
$ modular install mojo
# Found release for https://packages.modular.com/mojo @ 0.5.0
# Installing to /home/gy/.modular/pkg/packages.modular.com_mojo
# Downloading artifacts. Please wait..

macOS Install(지금은 Linux만 되는듯 240324)

PATH

BASHRC=$( [ -f "$HOME/.bash_profile" ] && echo "$HOME/.bash_profile" || echo "$HOME/.bashrc" )
echo 'export MODULAR_HOME="/Users/globalyoung/.modular"' >> "$BASHRC"
echo 'export PATH="/Users/globalyoung/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> "$BASHRC"
source "$BASHRC"
# Configs complete, running post-install hooks...
🔥 Mojo installed! 🔥

Mojo's Python virtual environment created at /home/gy/.modular/pkg/packages.modular.com_mojo/venv

If you are using ZSH (default on macOS), run the following commands:

echo 'export MODULAR_HOME="/home/gy/.modular"' >> ~/.zshrc
echo 'export PATH="/home/gy/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

If you are using bash, run the following commands:

BASHRC=$( [ -f "$HOME/.bash_profile" ] && echo "$HOME/.bash_profile" || echo "$HOME/.bashrc" )
echo 'export MODULAR_HOME="/home/gy/.modular"' >> "$BASHRC"
echo 'export PATH="/home/gy/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> "$BASHRC"
source "$BASHRC"

Then enter 'mojo' to start the Mojo REPL.

For tool help, enter 'mojo --help'.
For more docs, see https://docs.modular.com/mojo.
  • 업데이트 하니 나온 메세지(macOS)
modular
The Modular tool expects or will create a MODULAR_HOME directory.
This defaults to `~/.modular`. You can create your own, and if you do,
please add `MODULAR_HOME=/path/to/your/dir` to your environment.

Max 설치 방법

  • Open a terminal and install the modular command line tool with this helper script:
curl -s https://get.modular.com | sh -

Or, click here to see the manual install commands.

  • Sign into your Modular account:
modular auth
  • Install the MAX SDK:
modular install max
  • Install the MAX Engine Python package:
MAX_PATH=$(modular config max.path) \
  && python3 -m pip install --find-links $MAX_PATH/wheels max-engine

https://docs.modular.com/engine/get-started


Update Mojo

  • Mojo is a work in progress and we will release regular updates to the Mojo language and SDK tools. For information about each release, see the Mojo changelog.

  • To check your current Mojo version, use the --version option:

mojo --version
  • To update to the latest Mojo version, use the modular update command:
modular update mojo

[Proposal] Mojo project manifest and build tool

modularml/mojo#1785


언어소개 | 찐 파이썬 킬러?! 해외에서 난리난 언어 Mojo 🔥

https://youtu.be/fYb2DkFo01U


Mojo 🔥 — a new programming language for all AI developers.

  • Mojo combines the usability of Python with the performance of C, unlocking unparalleled programmability of AI hardware and extensibility of AI models.

Modular_Mojo_AI_Dev

https://docs.modular.com/

Modular Blog

https://www.modular.com/blog


▲ 모든 LLM 개발자가 알아야 하는 숫자 (github.com/ray-project)

https://news.hada.io/topic?id=9206&utm_source=weekly&utm_medium=email&utm_campaign=202321

CheatSheet

A guidance language for controlling large language models(LLM).

https://github.com/microsoft/guidance

awesome-mojo

https://github.com/ego/awesome-mojo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published