Mojo 是一门新编程语言,它结合了 Python 的可用性和 C/C++ 的性能,Mojo被设计为Python的超集。

趋势

Modular Platform

This repo hosts open-source components of the Modular Platform, a unified platform for AI development and deployment, including the MAX Framework🧑‍🚀 and the Mojo Language🔥.

Get started

Want to use MAX and Mojo in your own projects? Check out the MAX get started guide and the Mojo get started guide.

Want to experiment with functionality in MAX or Mojo? Work from the repository:

  • Run mojo on a file:

    ./bazelw run //Mojo:mojo -- Mojo/examples/hello.mojo
  • Run max to generate text with a model (requires a compatible GPU):

    ./bazelw run //max/python/max/_entrypoints:pipelines -- generate \
      --model Qwen/Qwen3.5-0.8B --max-batch-size 1 --max-length 10000 \
      --prompt "The sky is blue because"

About the repo

We're actively open-sourcing more of the Modular Platform over time.

The main components for which source is available today include:

Contribute

We accept contributions to both Mojo (Mojo contributor guide) and MAX (MAX contributor guide). For information about what changes we accept in different areas, see the Mojo contribution areas and MAX contribution areas.

We also welcome your bug reports. If you have a bug, please file an issue here.

License

Mojo and its contributions are licensed under the Apache License v2.0 with LLVM Exceptions. See Licenses/APACHE_LICENSE.

Portions of the MAX source code and its binary distribution are licensed under the Licenses/MAX_LICENSE, with the remainder of the source under the Apache License v2.0 with LLVM Exceptions. See Licenses/APACHE_LICENSE.

Third party licenses

You are entirely responsible for checking and validating the licenses of third parties (for example, Hugging Face) for related software and libraries that are downloaded.

Community & Events

There are a lot of great ways to get involved! Check out the Modular community page for details.

Thanks to our contributors

关于
The Mojo Programming Language
23.6 k
2.6 k
262
语言
Mojo
Python
C++
MLIR
Starlark
MDX
HTML
Rust
C
Shell
LLVM
TypeScript
Vim Script
Cuda
39.43%
33.27%
15.68%
5.45%
2.94%
1.53%
0.64%
0.35%
0.26%
0.2%
0.16%
0.06%
0.01%
0.01%