- https://github.com/modularml/mojo
- (Mojo Standard Library)These are all the modules in the Mojo standard library.
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/
- Curly brackets instead of : #258
#프로젝트 만들기
magic init hello-world --format mojoproject
# 가상환경 설정
cd hello-world && magic shell
# 라이브러리 추가하기(max라는 라이브러리 추가)
cd hello-world
magic add max
magic update
# 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..
- 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..
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.
- 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
-
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
-
Mojo combines the usability of Python with the performance of C, unlocking unparalleled programmability of AI hardware and extensibility of AI models.
-
Mojo Doc https://docs.modular.com/mojo/
- Mojo🔥 notebooks (Playgroud) https://docs.modular.com/mojo/get-started.html The following pages are rendered from the Jupyter notebooks that are available in the Mojo Playground—our JupyterHub environment where you can try Mojo in a cloud-hosted virtual machine. Because the Mojo Playground is currently limited access, we’re sharing these notebooks for you to read while you wait for access to the Mojo Playground.
- tutorial
- LLM을 사용할 때 중요한 숫자에 대한 정리. https://github.com/ray-project/llm-numbers
https://news.hada.io/topic?id=9206&utm_source=weekly&utm_medium=email&utm_campaign=202321
- Numbers every LLM developer should know.
- GitHub - ray-project/llm-numbers:
- Contribute to ray-project/llm-numbers development by creating an account on GitHub.
- https://github.com/ray-project/llm-numbers
- 위에 보고 좀 더 심화 과정
- https://github.com/ray-project/llm-numbers
- Contribute to ray-project/llm-numbers development by creating an account on GitHub.
- GitHub - ray-project/llm-numbers:
- 출처 : LLM을 사용할 때 중요한 숫자에 대한 정리. https://github.com/ray-project/llm-numbers