← 开源
Python
增长势头
+024 小时新增 Star0.0%
466
Star
63
Fork
14
贡献者
创建于 2022-05-28 · 更新于 2026-12-03 · 今日第 23119 名
主要开发者
README

MLC: Machine Learning Compiler

Installation

conda env update -n mlc -f static/build.yml
conda activate mlc
pip install git+https://github.com/d2l-ai/d2l-book

Building

Building without Evaluation

Change eval_notebook = True to eval_notebook = False in config.ini.

Building HTML

d2lbook build html

Building PDF

# Install dependencies
sudo apt-get install texlive-full
sudo apt-get install librsvg2-bin
sudo apt-get install pandoc  # If not working, conda install pandoc

# Build PDF
d2lbook build pdf

Fonts for PDF

wget https://raw.githubusercontent.com/d2l-ai/utils/master/install_fonts.sh
sudo bash install_fonts.sh

Install Fonts

wget -O source-serif-pro.zip https://www.fontsquirrel.com/fonts/download/source-serif-pro
unzip source-serif-pro -d source-serif-pro
sudo mv source-serif-pro /usr/share/fonts/opentype/

wget -O source-sans-pro.zip https://www.fontsquirrel.com/fonts/download/source-sans-pro
unzip source-sans-pro -d source-sans-pro
sudo mv source-sans-pro /usr/share/fonts/opentype/

wget -O source-code-pro.zip https://www.fontsquirrel.com/fonts/download/source-code-pro
unzip source-code-pro -d source-code-pro
sudo mv source-code-pro /usr/share/fonts/opentype/

wget -O Inconsolata.zip https://www.fontsquirrel.com/fonts/download/Inconsolata
unzip Inconsolata -d Inconsolata
sudo mv Inconsolata /usr/share/fonts/opentype/

sudo fc-cache -f -v
排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载