mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 09:21:16 +08:00
Fixed typo in some proprietary terms. (#161)
This commit is contained in:
parent
76e1af0e02
commit
1e0c78b970
@ -31,7 +31,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||||||
|
|
||||||
if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "x86_64")
|
if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "x86_64")
|
||||||
message(WARNING
|
message(WARNING
|
||||||
"Building for x86_64 on MacOS is not supported."
|
"Building for x86_64 on macOS is not supported."
|
||||||
" If you are on an Apple silicon system, "
|
" If you are on an Apple silicon system, "
|
||||||
" make sure you are building for arm64.")
|
" make sure you are building for arm64.")
|
||||||
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm64")
|
elseif(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm64")
|
||||||
@ -39,7 +39,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message(WARNING "MLX is prioritised for Apple Silicon systems using MacOS.")
|
message(WARNING "MLX is prioritised for Apple silicon systems using macOS.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# ----------------------------- Lib -----------------------------
|
# ----------------------------- Lib -----------------------------
|
||||||
@ -68,7 +68,7 @@ elseif (MLX_BUILD_METAL)
|
|||||||
OUTPUT_VARIABLE MACOS_VERSION
|
OUTPUT_VARIABLE MACOS_VERSION
|
||||||
COMMAND_ERROR_IS_FATAL ANY)
|
COMMAND_ERROR_IS_FATAL ANY)
|
||||||
|
|
||||||
message(STATUS "Building with SDK for MacOS version ${MACOS_VERSION}")
|
message(STATUS "Building with SDK for macOS version ${MACOS_VERSION}")
|
||||||
|
|
||||||
if (${MACOS_VERSION} GREATER_EQUAL 14.2)
|
if (${MACOS_VERSION} GREATER_EQUAL 14.2)
|
||||||
set(METAL_CPP_URL https://developer.apple.com/metal/cpp/files/metal-cpp_macOS14.2_iOS17.2.zip)
|
set(METAL_CPP_URL https://developer.apple.com/metal/cpp/files/metal-cpp_macOS14.2_iOS17.2.zip)
|
||||||
@ -77,7 +77,7 @@ elseif (MLX_BUILD_METAL)
|
|||||||
elseif (${MACOS_VERSION} GREATER_EQUAL 13.3)
|
elseif (${MACOS_VERSION} GREATER_EQUAL 13.3)
|
||||||
set(METAL_CPP_URL https://developer.apple.com/metal/cpp/files/metal-cpp_macOS13.3_iOS16.4.zip)
|
set(METAL_CPP_URL https://developer.apple.com/metal/cpp/files/metal-cpp_macOS13.3_iOS16.4.zip)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "MLX requires MacOS >= 13.4 to be built with MLX_BUILD_METAL=ON" )
|
message(FATAL_ERROR "MLX requires macOS >= 13.4 to be built with MLX_BUILD_METAL=ON" )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
|
@ -15,11 +15,11 @@ To install from PyPI you must meet the following requirements:
|
|||||||
|
|
||||||
- Using an M series chip (Apple silicon)
|
- Using an M series chip (Apple silicon)
|
||||||
- Using a native Python >= 3.8
|
- Using a native Python >= 3.8
|
||||||
- MacOS >= 13.3
|
- macOS >= 13.3
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
MLX is only available on devices running MacOS >= 13.3
|
MLX is only available on devices running macOS >= 13.3
|
||||||
It is highly recommended to use MacOS 14 (Sonoma)
|
It is highly recommended to use macOS 14 (Sonoma)
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^
|
||||||
@ -47,7 +47,7 @@ Build Requirements
|
|||||||
|
|
||||||
- A C++ compiler with C++17 support (e.g. Clang >= 5.0)
|
- A C++ compiler with C++17 support (e.g. Clang >= 5.0)
|
||||||
- `cmake <https://cmake.org/>`_ -- version 3.24 or later, and ``make``
|
- `cmake <https://cmake.org/>`_ -- version 3.24 or later, and ``make``
|
||||||
- Xcode >= 14.3 (Xcode >= 15.0 for MacOS 14 and above)
|
- Xcode >= 14.3 (Xcode >= 15.0 for macOS 14 and above)
|
||||||
|
|
||||||
|
|
||||||
Python API
|
Python API
|
||||||
@ -154,7 +154,7 @@ should point to the path to the built metal library.
|
|||||||
export DEVELOPER_DIR="/path/to/Xcode.app/Contents/Developer/"
|
export DEVELOPER_DIR="/path/to/Xcode.app/Contents/Developer/"
|
||||||
|
|
||||||
Further, you can use the following command to find out which
|
Further, you can use the following command to find out which
|
||||||
MacOS SDK will be used
|
macOS SDK will be used
|
||||||
|
|
||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ void init_random(py::module_&);
|
|||||||
void init_fft(py::module_&);
|
void init_fft(py::module_&);
|
||||||
|
|
||||||
PYBIND11_MODULE(core, m) {
|
PYBIND11_MODULE(core, m) {
|
||||||
m.doc() = "mlx: A framework for machine learning on Apple Silicon.";
|
m.doc() = "mlx: A framework for machine learning on Apple silicon.";
|
||||||
|
|
||||||
auto reprlib_fix = py::module_::import("mlx._reprlib_fix");
|
auto reprlib_fix = py::module_::import("mlx._reprlib_fix");
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -143,7 +143,7 @@ if __name__ == "__main__":
|
|||||||
version=get_version("0.0.5"),
|
version=get_version("0.0.5"),
|
||||||
author="MLX Contributors",
|
author="MLX Contributors",
|
||||||
author_email="mlx@group.apple.com",
|
author_email="mlx@group.apple.com",
|
||||||
description="A framework for machine learning on Apple Silicon.",
|
description="A framework for machine learning on Apple silicon.",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
packages=packages,
|
packages=packages,
|
||||||
|
Loading…
Reference in New Issue
Block a user