[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"tool-mrdbourke--m1-machine-learning-test":3,"similar-mrdbourke--m1-machine-learning-test":64},{"id":4,"github_repo":5,"name":6,"description_en":7,"description_zh":8,"ai_summary_zh":9,"readme_en":10,"readme_zh":11,"quickstart_zh":12,"use_case_zh":13,"hero_image_url":14,"owner_login":15,"owner_name":16,"owner_avatar_url":17,"owner_bio":18,"owner_company":19,"owner_location":19,"owner_email":19,"owner_twitter":15,"owner_website":20,"owner_url":21,"languages":22,"stars":31,"forks":32,"last_commit_at":33,"license":34,"difficulty_score":35,"env_os":36,"env_gpu":37,"env_ram":38,"env_deps":39,"category_tags":52,"github_topics":54,"view_count":58,"oss_zip_url":19,"oss_zip_packed_at":19,"status":59,"created_at":60,"updated_at":61,"faqs":62,"releases":63},2931,"mrdbourke\u002Fm1-machine-learning-test","m1-machine-learning-test","Code for testing various M1 Chip benchmarks with TensorFlow.","m1-machine-learning-test 是一套专为苹果 Silicon 芯片（包括 M1、M2 及 Pro\u002FMax\u002FUltra 系列）设计的机器学习性能基准测试代码库。它旨在帮助开发者快速验证新设备在运行 TensorFlow 和 Scikit-Learn 等主流框架时的实际算力表现，解决用户在升级硬件后难以直观评估机器学习任务加速效果的痛点。\n\n该项目预置了多个标准化的实验场景，涵盖图像分类（如 CIFAR10、Food101 数据集）与传统机器学习任务（如随机森林回归），通过统一的代码在不同硬件间进行公平的速度对比。其核心技术亮点在于提供了详尽的指南，指导用户利用 Miniforge 配置原生支持 ARM 架构的 Python 环境，并正确安装 `tensorflow-macos` 与 `tensorflow-metal` 插件，从而充分调用苹果自研 GPU 的 Metal 加速能力。\n\nm1-machine-learning-test 非常适合刚入手苹果新款 Mac 的数据科学家、AI 工程师以及机器学习爱好者。如果你希望在设备上顺利搭建开发环境，或想了解自己的设备在处","m1-machine-learning-test 是一套专为苹果 Silicon 芯片（包括 M1、M2 及 Pro\u002FMax\u002FUltra 系列）设计的机器学习性能基准测试代码库。它旨在帮助开发者快速验证新设备在运行 TensorFlow 和 Scikit-Learn 等主流框架时的实际算力表现，解决用户在升级硬件后难以直观评估机器学习任务加速效果的痛点。\n\n该项目预置了多个标准化的实验场景，涵盖图像分类（如 CIFAR10、Food101 数据集）与传统机器学习任务（如随机森林回归），通过统一的代码在不同硬件间进行公平的速度对比。其核心技术亮点在于提供了详尽的指南，指导用户利用 Miniforge 配置原生支持 ARM 架构的 Python 环境，并正确安装 `tensorflow-macos` 与 `tensorflow-metal` 插件，从而充分调用苹果自研 GPU 的 Metal 加速能力。\n\nm1-machine-learning-test 非常适合刚入手苹果新款 Mac 的数据科学家、AI 工程师以及机器学习爱好者。如果你希望在设备上顺利搭建开发环境，或想了解自己的设备在处理深度学习模型时的具体性能水平，这套工具能提供从环境配置到结果输出的完整流程参考，助你高效开启本地机器学习探索之旅。","# M1, M1 Pro, M1 Max Machine Learning Speed Test Comparison\n\nThis repo contains some sample code to benchmark the new M1 MacBooks (M1 Pro and M1 Max) against various other pieces of hardware.\n\nIt also has steps below to setup your M1, M1 Pro, M1 Max, M1 Ultra or M2 Mac to run the code.\n\n## Who is this repo for?\n\n**You:** have a new M1, M1 Pro, M1 Max, M1 Ultra or M2 Mac and would like to get started doing machine learning and data science on it.\n\n**This repo:** teaches you how to install the most common machine learning and data science packages (software) on your machine and make sure they run using sample code.\n\n## Machine Learning Experiments Conducted\n\nAll experiments were run with the same code. For Apple devices, TensorFlow environments were created with the steps below.\n\n| Notebook Number | Experiment |\n| ----- | ----- |\n| [00](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test\u002Fblob\u002Fmain\u002F00_cifar10_tinyvgg_benchmark.ipynb) | TinyVGG model trained on CIFAR10 dataset with TensorFlow code. |\n| [01](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test\u002Fblob\u002Fmain\u002F01_food101_effnet_benchmark.ipynb) | EfficientNetB0 Feature Extractor on Food101 dataset with TensorFlow code.\n| [02](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test\u002Fblob\u002Fmain\u002F02_random_forest_benchmark.ipynb) | `RandomForestClassifier` from Scikit-Learn trained with random search cross-validation on California Housing dataset. |\n\n## Results\n\nSee the [results directory](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test\u002Ftree\u002Fmain\u002Fresults).\n\n## Steps (how to test your Apple Silicon machine)\n1. Create an environment and install dependencies ([see below](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test#how-to-setup-a-tensorflow-environment-on-m1-m1-pro-m1-max-using-miniforge-shorter-version))\n2. Clone this repo\n3. Run various notebooks (results come at the end of the notebooks)\n\n## How to setup a TensorFlow environment on M1, M1 Pro, M1 Max, M1 Ultra, M2 using Miniforge (shorter version)\n\nIf you're experienced with making environments and using the command line, follow this version. If not, see the longer version below. \n\n1. Download and install Homebrew from https:\u002F\u002Fbrew.sh. Follow the steps it prompts you to go through after installation.\n2. [Download Miniforge3](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge\u002Freleases\u002Flatest\u002Fdownload\u002FMiniforge3-MacOSX-arm64.sh) (Conda installer) for macOS arm64 chips (M1, M1 Pro, M1 Max).\n3. Install Miniforge3 into home directory.\n```bash\nchmod +x ~\u002FDownloads\u002FMiniforge3-MacOSX-arm64.sh\nsh ~\u002FDownloads\u002FMiniforge3-MacOSX-arm64.sh\nsource ~\u002Fminiforge3\u002Fbin\u002Factivate\n```\n4. Restart terminal.\n5. Create a directory to setup TensorFlow environment.\n```bash\nmkdir tensorflow-test\ncd tensorflow-test\n```\n6. Make and activate Conda environment. **Note:** Python 3.8 is the most stable for using the following setup.\n```bash\nconda create --prefix .\u002Fenv python=3.8\nconda activate .\u002Fenv\n```\n7. Install TensorFlow dependencies from Apple Conda channel.\n```bash\nconda install -c apple tensorflow-deps\n```\n8. Install base TensorFlow (Apple's fork of TensorFlow is called `tensorflow-macos`).\n```bash\npython -m pip install tensorflow-macos\n```\n9. Install Apple's `tensorflow-metal` to leverage Apple Metal (Apple's GPU framework) for M1, M1 Pro, M1 Max GPU acceleration.\n```bash\npython -m pip install tensorflow-metal\n```\n10. (Optional) Install TensorFlow Datasets to run benchmarks included in this repo.\n```bash\npython -m pip install tensorflow-datasets\n```\n11. Install common data science packages.\n```bash\nconda install jupyter pandas numpy matplotlib scikit-learn\n```\n12. Start Jupyter Notebook.\n```bash\njupyter notebook\n```\n13. Import dependencies and check TensorFlow version\u002FGPU access.\n```python\nimport numpy as np\nimport pandas as pd\nimport sklearn\nimport tensorflow as tf\nimport matplotlib.pyplot as plt\n\n# Check for TensorFlow GPU access\nprint(f\"TensorFlow has access to the following devices:\\n{tf.config.list_physical_devices()}\")\n\n# See TensorFlow version\nprint(f\"TensorFlow version: {tf.__version__}\")\n```\n\nIf it all worked, you should see something like: \n\n```bash\nTensorFlow has access to the following devices:\n[PhysicalDevice(name='\u002Fphysical_device:CPU:0', device_type='CPU'),\nPhysicalDevice(name='\u002Fphysical_device:GPU:0', device_type='GPU')]\nTensorFlow version: 2.8.0\n```\n\n## How to setup a TensorFlow environment on M1, M1 Pro, M1 Max, M1 Ultra, M2 using Miniforge (longer version)\n\nIf you're new to creating environments, using a new M1, M1 Pro, M1 Max machine and would like to get started running TensorFlow and other data science libraries, follow the below steps.\n\n> **Note:** You're going to see the term \"package manager\" a lot below. Think of it like this: a **package manager** is a piece of software that helps you install other pieces (packages) of software.\n\n### Installing package managers (Homebrew and Miniforge)\n\n1. Download and install Homebrew from https:\u002F\u002Fbrew.sh. Homebrew is a package manager that sets up a lot of useful things on your machine, including Command Line Tools for Xcode, you'll need this to run things like `git`. The command to install Homebrew will look something like:\n\n```bash\n\u002Fbin\u002Fbash -c \"$(curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FHomebrew\u002Finstall\u002FHEAD\u002Finstall.sh)\"\n```\n\nIt will explain what it's doing and what you need to do as you go.\n\n2. [Download the most compatible version of Miniforge](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge#download) (minimal installer for Conda specific to conda-forge, Conda is another package manager and conda-forge is a Conda channel) from GitHub.\n\nIf you're using an M1 variant Mac, it's \"[Miniforge3-MacOSX-arm64](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge\u002Freleases\u002Flatest\u002Fdownload\u002FMiniforge3-MacOSX-arm64.sh)\" \u003C- click for direct download. \n\nClicking the link above will download a shell file called `Miniforge3-MacOSX-arm64.sh` to your `Downloads` folder (unless otherwise specified). \n\n3. Open Terminal.\n\n4. We've now got a shell file capable of installing Miniforge, but to do so we'll have to modify it's permissions to [make it executable](https:\u002F\u002Faskubuntu.com\u002Ftags\u002Fchmod\u002Finfo).\n\nTo do so, we'll run the command `chmod -x FILE_NAME` which stands for \"change mode of FILE_NAME to -executable\".\n\nWe'll then execute (run) the program using `sh`.\n\n```bash\nchmod +x ~\u002FDownloads\u002FMiniforge3-MacOSX-arm64.sh\nsh ~\u002FDownloads\u002FMiniforge3-MacOSX-arm64.sh\n```\n\n5. This should install Miniforge3 into your home directory (`~\u002F` stands for \"Home\" on Mac).\n\nTo check this, we can try to activate the `(base)` environment, we can do so using the `source` command.\n\n```bash\nsource ~\u002Fminiforge3\u002Fbin\u002Factivate\n```\n\nIf it worked, you should see something like the following in your terminal window.\n\n```bash\n(base) daniel@Daniels-MBP ~ %\n```\n\n6. We've just installed some new software and for it to fully work, we'll need to **restart terminal**. \n\n### Creating a TensorFlow environment\n\nNow we've got the package managers we need, it's time to install TensorFlow.\n\nLet's setup a folder called `tensorflow-test` (you can call this anything you want) and install everything in there to make sure it's working.\n\n> **Note:** An **environment** is like a virtual room on your computer. For example, you use the kitchen in your house for cooking because it's got all the tools you need. It would be strange to have an oven in your bedroom. The same thing on your computer. If you're going to be working on specific software, you'll want it all in one place and not scattered everywhere else. \n\n7. Make a directory called `tensorflow-test`. This is the directory we're going to be storing our environment. And inside the environment will be the software tools we need to run TensorFlow.\n\nWe can do so with the `mkdir` command which stands for \"make directory\".\n\n```bash\nmkdir tensorflow-test\n```\n\n8. Change into `tensorflow-test`. For the rest of the commands we'll be running them inside the directory `tensorflow-test` so we need to change into it.\n\nWe can do this with the `cd` command which stands for \"change directory\".\n\n```bash\ncd tensorflow-test\n```\n\n9. Now we're inside the `tensorflow-test` directory, let's create a new Conda environment using the `conda` command (this command was installed when we installed Miniforge above).\n\nWe do so using `conda create --prefix .\u002Fenv` which stands for \"conda create an environment with the name `file\u002Fpath\u002Fto\u002Fthis\u002Ffolder\u002Fenv`\". The `.` stands for \"everything before\".\n\nFor example, if I didn't use the `.\u002Fenv`, my filepath looks like: `\u002FUsers\u002Fdaniel\u002Ftensorflow-test\u002Fenv`\n\n```bash\nconda create --prefix .\u002Fenv\n```\n\n10. Activate the environment. If `conda` created the environment correctly, you should be able to activate it using `conda activate path\u002Fto\u002Fenvironment`.\n\nShort version: \n\n```bash\nconda activate .\u002Fenv\n```\n\nLong version:\n\n```bash\nconda activate \u002FUsers\u002Fdaniel\u002Ftensorflow-test\u002Fenv\n```\n\n> **Note:** It's important to activate your environment every time you'd like to work on projects that use the software you install into that environment. For example, you might have one environment for every different project you work on. And all of the different tools for that specific project are stored in its specific environment.\n\nIf activating your environment went correctly, your terminal window prompt should look something like: \n\n```bash\n(\u002FUsers\u002Fdaniel\u002Ftensorflow-test\u002Fenv) daniel@Daniels-MBP tensorflow-test %\n```\n\n11. Now we've got a Conda environment setup, it's time to install the software we need.\n\nLet's start by installing various TensorFlow dependencies (TensorFlow is a large piece of software and *depends* on many other pieces of software).\n\nRather than list these all out, Apple have setup a quick command so you can install almost everything TensorFlow needs in one line.\n\n```bash\nconda install -c apple tensorflow-deps\n```\n\nThe above stands for \"hey conda install all of the TensorFlow dependencies from the Apple Conda channel\" (`-c` stands for channel).\n\nIf it worked, you should see a bunch of stuff being downloaded and installed for you. \n\n12. Now all of the TensorFlow dependencies have been installed, it's time install base TensorFlow.\n\nApple have created a fork (copy) of TensorFlow specifically for Apple Macs. It has all the features of TensorFlow with some extra functionality to make it work on Apple hardware.\n\nThis Apple fork of TensorFlow is called `tensorflow-macos` and is the version we'll be installing:\n\n```bash\npython -m pip install tensorflow-macos\n```\n\nDepending on your internet connection the above may take a few minutes since TensorFlow is quite a large piece of software.\n\n13. Now we've got base TensorFlow installed, it's time to install `tensorflow-metal`.\n\nWhy?\n\nMachine learning models often benefit from GPU acceleration. And the M1, M1 Pro and M1 Max chips have quite powerful GPUs.\n\nTensorFlow allows for automatic GPU acceleration if the right software is installed.\n\nAnd Metal is Apple's framework for GPU computing.\n\nSo Apple have created a plugin for TensorFlow (also referred to as a TensorFlow PluggableDevice) called `tensorflow-metal` to run TensorFlow on Mac GPUs.\n\nWe can install it using:\n\n```bash\npython -m pip install tensorflow-metal\n```\n\nIf the above works, we should now be able to leverage our Mac's GPU cores to speed up model training with TensorFlow.\n\n14. (Optional) Install TensorFlow Datasets. Doing the above is enough to run TensorFlow on your machine. But if you'd like to run the benchmarks included in this repo, you'll need TensorFlow Datasets.\n\nTensorFlow Datasets provides a collection of common machine learning datasets to test out various machine learning code.\n\n```bash\npython -m pip install tensorflow-datasets\n```\n\n15. Install common data science packages. If you'd like to run the benchmarks above or work on other various data science and machine learning projects, you're likely going to need Jupyter Notebooks, pandas for data manipulation, NumPy for numeric computing, matplotlib for plotting and Scikit-Learn for traditional machine learning algorithms and processing functions.\n\nTo install those in the current environment run:\n\n```bash\nconda install jupyter pandas numpy matplotlib scikit-learn\n```\n\n16. Test it out. To see if everything worked, try starting a Jupyter Notebook and importing the installed packages.\n\n```bash\n# Start a Jupyter notebook\njupyter notebook\n```\n\nOnce the notebook is started, in the first cell:\n\n```python\nimport numpy as np\nimport pandas as pd\nimport sklearn\nimport tensorflow as tf\nimport matplotlib.pyplot as plt\n\n# Check for TensorFlow GPU access\nprint(tf.config.list_physical_devices())\n\n# See TensorFlow version\nprint(tf.__version__)\n```\n\nIf it all worked, you should see something like:\n\n```bash\nTensorFlow has access to the following devices:\n[PhysicalDevice(name='\u002Fphysical_device:CPU:0', device_type='CPU'),\nPhysicalDevice(name='\u002Fphysical_device:GPU:0', device_type='GPU')]\nTensorFlow version: 2.5.0\n```\n\n17. To see if it really worked, try running one of the notebooks above end to end!\n\nAnd then compare your results to the benchmarks above.\n\n\n\n\n\n\n","# M1、M1 Pro、M1 Max 机器学习速度测试对比\n\n此仓库包含一些示例代码，用于将新款 M1 MacBook（M1 Pro 和 M1 Max）与其他多种硬件进行基准测试。\n\n此外，还提供了在 M1、M1 Pro、M1 Max、M1 Ultra 或 M2 Mac 上运行这些代码的设置步骤。\n\n## 此仓库适合哪些人？\n\n**您：** 拥有一台新的 M1、M1 Pro、M1 Max、M1 Ultra 或 M2 Mac，并希望在其上开始进行机器学习和数据科学工作。\n\n**此仓库：** 将教您如何在您的设备上安装最常见的机器学习和数据科学软件包，并通过示例代码确保它们能够正常运行。\n\n## 进行的机器学习实验\n\n所有实验均使用相同的代码运行。对于 Apple 设备，TensorFlow 环境是按照以下步骤创建的。\n\n| 笔记本编号 | 实验 |\n| ----- | ----- |\n| [00](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test\u002Fblob\u002Fmain\u002F00_cifar10_tinyvgg_benchmark.ipynb) | 使用 TensorFlow 代码在 CIFAR10 数据集上训练 TinyVGG 模型。 |\n| [01](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test\u002Fblob\u002Fmain\u002F01_food101_effnet_benchmark.ipynb) | 使用 TensorFlow 代码在 Food101 数据集上应用 EfficientNetB0 特征提取器。 |\n| [02](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test\u002Fblob\u002Fmain\u002F02_random_forest_benchmark.ipynb) | 使用 Scikit-Learn 中的 `RandomForestClassifier`，结合随机搜索交叉验证，在加州住房数据集上进行训练。 |\n\n## 结果\n\n请参阅 [results 目录](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test\u002Ftree\u002Fmain\u002Fresults)。\n\n## 步骤（如何测试您的 Apple Silicon 设备）\n1. 创建环境并安装依赖项（[见下文](https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test#how-to-setup-a-tensorflow-environment-on-m1-m1-pro-m1-max-using-miniforge-shorter-version)）\n2. 克隆此仓库\n3. 运行各个笔记本（结果位于笔记本末尾）\n\n## 使用 Miniforge 在 M1、M1 Pro、M1 Max、M1 Ultra、M2 上设置 TensorFlow 环境（简版）\n\n如果您熟悉环境搭建和命令行操作，请按照此版本操作。如果不熟悉，请参阅下方的完整版。\n\n1. 从 https:\u002F\u002Fbrew.sh 下载并安装 Homebrew。安装完成后，按照提示完成后续步骤。\n2. [下载 Miniforge3](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge\u002Freleases\u002Flatest\u002Fdownload\u002FMiniforge3-MacOSX-arm64.sh)（Conda 安装程序），适用于 macOS arm64 芯片（M1、M1 Pro、M1 Max）。\n3. 将 Miniforge3 安装到主目录。\n```bash\nchmod +x ~\u002FDownloads\u002FMiniforge3-MacOSX-arm64.sh\nsh ~\u002FDownloads\u002FMiniforge3-MacOSX-arm64.sh\nsource ~\u002Fminiforge3\u002Fbin\u002Factivate\n```\n4. 重启终端。\n5. 创建一个目录来设置 TensorFlow 环境。\n```bash\nmkdir tensorflow-test\ncd tensorflow-test\n```\n6. 创建并激活 Conda 环境。**注意：** Python 3.8 是使用以下设置时最稳定的版本。\n```bash\nconda create --prefix .\u002Fenv python=3.8\nconda activate .\u002Fenv\n```\n7. 从 Apple Conda 通道安装 TensorFlow 依赖项。\n```bash\nconda install -c apple tensorflow-deps\n```\n8. 安装基础 TensorFlow（Apple 的 TensorFlow 分支称为 `tensorflow-macos`）。\n```bash\npython -m pip install tensorflow-macos\n```\n9. 安装 Apple 的 `tensorflow-metal`，以利用 Apple Metal（Apple 的 GPU 框架）实现 M1、M1 Pro、M1 Max 的 GPU 加速。\n```bash\npython -m pip install tensorflow-metal\n```\n10. （可选）安装 TensorFlow Datasets，以便运行本仓库中包含的基准测试。\n```bash\npython -m pip install tensorflow-datasets\n```\n11. 安装常用的数据科学软件包。\n```bash\nconda install jupyter pandas numpy matplotlib scikit-learn\n```\n12. 启动 Jupyter Notebook。\n```bash\njupyter notebook\n```\n13. 导入依赖项并检查 TensorFlow 版本及 GPU 访问权限。\n```python\nimport numpy as np\nimport pandas as pd\nimport sklearn\nimport tensorflow as tf\nimport matplotlib.pyplot as plt\n\n# 检查 TensorFlow 是否可以访问 GPU\nprint(f\"TensorFlow 可以访问以下设备:\\n{tf.config.list_physical_devices()}\")\n\n# 查看 TensorFlow 版本\nprint(f\"TensorFlow 版本: {tf.__version__}\")\n```\n\n如果一切顺利，您应该会看到类似以下内容：\n\n```bash\nTensorFlow 可以访问以下设备：\n[PhysicalDevice(name='\u002Fphysical_device:CPU:0', device_type='CPU'),\nPhysicalDevice(name='\u002Fphysical_device:GPU:0', device_type='GPU')]\nTensorFlow 版本: 2.8.0\n```\n\n## 使用 Miniforge 在 M1、M1 Pro、M1 Max、M1 Ultra、M2 上设置 TensorFlow 环境（详版）\n\n如果您是环境创建的新手，正在使用新的 M1、M1 Pro、M1 Max 设备，并希望开始运行 TensorFlow 和其他数据科学库，请按照以下步骤操作。\n\n> **注意：** 您将在下面频繁看到“包管理器”一词。您可以这样理解：**包管理器**是一种帮助您安装其他软件包的工具。\n\n### 安装包管理器（Homebrew 和 Miniforge）\n\n1. 从 https:\u002F\u002Fbrew.sh 下载并安装 Homebrew。Homebrew 是一个包管理器，可在您的设备上设置许多有用的东西，包括 Xcode 的命令行工具，您需要它来运行诸如 `git` 之类的工具。安装 Homebrew 的命令可能如下所示：\n\n```bash\n\u002Fbin\u002Fbash -c \"$(curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FHomebrew\u002Finstall\u002FHEAD\u002Finstall.sh)\"\n```\n\n安装过程中会逐步解释其作用以及您需要执行的操作。\n\n2. 从 GitHub 下载与您的设备最兼容的 Miniforge 版本（[Miniforge3-MacOSX-arm64](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge\u002Freleases\u002Flatest\u002Fdownload\u002FMiniforge3-MacOSX-arm64.sh)）——这是针对 conda-forge 的 Conda 极简安装程序，而 Conda 是另一种包管理器，conda-forge 则是一个 Conda 频道。\n\n如果您使用的是 M1 系列 Mac，则应选择 “[Miniforge3-MacOSX-arm64](https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge\u002Freleases\u002Flatest\u002Fdownload\u002FMiniforge3-MacOSX-arm64.sh)”——点击即可直接下载。\n\n点击上述链接后，名为 `Miniforge3-MacOSX-arm64.sh` 的 Shell 文件将被下载到您的“下载”文件夹中（除非另有指定）。\n\n3. 打开终端。\n\n4. 我们现在有一个可以安装 Miniforge 的 Shell 文件，但要执行安装，我们需要修改其权限使其可执行（[参考 Ubuntu 论坛关于 chmod 的说明](https:\u002F\u002Faskubuntu.com\u002Ftags\u002Fchmod\u002Finfo)）。\n\n为此，我们将运行命令 `chmod +x FILE_NAME`，意思是“将 FILE_NAME 的模式更改为可执行”。\n\n然后我们使用 `sh` 命令来执行该程序。\n\n```bash\nchmod +x ~\u002FDownloads\u002FMiniforge3-MacOSX-arm64.sh\nsh ~\u002FDownloads\u002FMiniforge3-MacOSX-arm64.sh\n```\n\n5. 这应该会将 Miniforge3 安装到您的主目录（`~\u002F` 在 Mac 上代表“Home”）。\n\n为了确认这一点，我们可以尝试激活 `(base)` 环境，这可以通过 `source` 命令完成。\n\n```bash\nsource ~\u002Fminiforge3\u002Fbin\u002Factivate\n```\n\n如果成功，您应该会在终端窗口中看到类似以下的内容：\n\n```bash\n(base) daniel@Daniels-MBP ~ %\n```\n\n6. 我们刚刚安装了一些新软件，为了让它们完全生效，我们需要**重启终端**。\n\n### 创建 TensorFlow 环境\n\n现在我们已经安装了所需的包管理器，接下来就可以安装 TensorFlow 了。\n\n让我们创建一个名为 `tensorflow-test` 的文件夹（你可以随意命名），并将所有内容都安装到这个文件夹中，以确保一切正常工作。\n\n> **注意:** **环境** 就像你电脑上的一个虚拟空间。例如，你会在家里用厨房来做饭，因为那里有你需要的所有工具。如果把烤箱放在卧室里就不太合适了。你的电脑也是如此。如果你要处理特定的软件，最好将它们集中在一个地方，而不是分散在其他位置。\n\n7. 创建一个名为 `tensorflow-test` 的目录。这个目录将用于存放我们的环境，而环境中会包含运行 TensorFlow 所需的软件工具。\n\n我们可以使用 `mkdir` 命令来完成这一操作，该命令是“make directory”的缩写。\n\n```bash\nmkdir tensorflow-test\n```\n\n8. 进入 `tensorflow-test` 目录。接下来我们将在这个目录中执行所有命令，因此需要先进入该目录。\n\n我们可以使用 `cd` 命令来完成这一操作，该命令是“change directory”的缩写。\n\n```bash\ncd tensorflow-test\n```\n\n9. 现在我们已经进入了 `tensorflow-test` 目录，接下来使用 `conda` 命令创建一个新的 Conda 环境（该命令是在我们上面安装 Miniforge 时一并安装的）。\n\n我们使用 `conda create --prefix .\u002Fenv` 命令来创建环境，意思是“创建一个名为 `file\u002Fpath\u002Fto\u002Fthis\u002Ffolder\u002Fenv` 的环境”。其中的 `.` 表示当前路径。\n\n例如，如果不使用 `.\u002Fenv`，我的文件路径将会是：`\u002FUsers\u002Fdaniel\u002Ftensorflow-test\u002Fenv`\n\n```bash\nconda create --prefix .\u002Fenv\n```\n\n10. 激活环境。如果 `conda` 成功创建了环境，你应该能够使用 `conda activate path\u002Fto\u002Fenvironment` 来激活它。\n\n简写形式：\n\n```bash\nconda activate .\u002Fenv\n```\n\n完整形式：\n\n```bash\nconda activate \u002FUsers\u002Fdaniel\u002Ftensorflow-test\u002Fenv\n```\n\n> **注意:** 每当你想要处理使用该环境中所安装软件的项目时，务必先激活该环境。例如，你可能会为每个不同的项目创建一个独立的环境，而该项目所需的各种工具都会存储在其对应的环境中。\n\n如果环境激活成功，你的终端提示符应该会显示类似以下内容：\n\n```bash\n(\u002FUsers\u002Fdaniel\u002Ftensorflow-test\u002Fenv) daniel@Daniels-MBP tensorflow-test %\n```\n\n11. 现在我们已经设置好了 Conda 环境，接下来就要安装所需的软件了。\n\n首先，我们来安装 TensorFlow 的各种依赖项（TensorFlow 是一个庞大的软件，依赖于许多其他软件）。\n\n为了避免逐一列出这些依赖项，Apple 提供了一个便捷的命令，只需一行即可安装 TensorFlow 所需的几乎所有依赖项。\n\n```bash\nconda install -c apple tensorflow-deps\n```\n\n上述命令的意思是：“嘿，conda，请从 Apple 的 Conda 通道安装所有的 TensorFlow 依赖项”（`-c` 表示通道）。\n\n如果一切顺利，你应该会看到大量软件被下载并自动安装。\n\n12. 现在 TensorFlow 的所有依赖项都已经安装完毕，接下来我们要安装 TensorFlow 的基础库。\n\nApple 专门为 Apple Macs 创建了一个 TensorFlow 的分支版本。它不仅具备 TensorFlow 的全部功能，还增加了一些额外的功能，使其能够在 Apple 硬件上运行。\n\n这个 Apple 分支版本的 TensorFlow 被称为 `tensorflow-macos`，我们将要安装的就是这个版本：\n\n```bash\npython -m pip install tensorflow-macos\n```\n\n根据你的网络连接情况，上述操作可能需要几分钟的时间，因为 TensorFlow 是一个相当庞大的软件。\n\n13. 现在 TensorFlow 的基础库已经安装完毕，接下来我们要安装 `tensorflow-metal`。\n\n为什么呢？\n\n机器学习模型通常受益于 GPU 加速。而 M1、M1 Pro 和 M1 Max 芯片都配备了非常强大的 GPU。\n\n如果安装了正确的软件，TensorFlow 可以实现自动 GPU 加速。而 Metal 是 Apple 提供的 GPU 计算框架。\n\n因此，Apple 为 TensorFlow 开发了一个插件（也称为 TensorFlow PluggableDevice），名为 `tensorflow-metal`，用于在 Mac 的 GPU 上运行 TensorFlow。\n\n我们可以通过以下命令进行安装：\n\n```bash\npython -m pip install tensorflow-metal\n```\n\n如果安装成功，我们现在就能够利用 Mac 的 GPU 核心来加速 TensorFlow 模型的训练。\n\n14. （可选）安装 TensorFlow 数据集。完成上述步骤后，你已经可以在本地运行 TensorFlow 了。但如果你想运行本仓库中包含的基准测试，就需要安装 TensorFlow 数据集。\n\nTensorFlow 数据集提供了一系列常见的机器学习数据集，可用于测试各种机器学习代码。\n\n```bash\npython -m pip install tensorflow-datasets\n```\n\n15. 安装常用的数据科学工具包。如果你想运行上述基准测试，或者从事其他数据科学和机器学习项目，那么你很可能会用到 Jupyter Notebook、用于数据处理的 pandas、用于数值计算的 NumPy、用于绘图的 matplotlib，以及用于传统机器学习算法和数据处理函数的 Scikit-Learn。\n\n要在当前环境中安装这些工具包，可以运行以下命令：\n\n```bash\nconda install jupyter pandas numpy matplotlib scikit-learn\n```\n\n16. 测试一下。为了确认一切是否正常工作，尝试启动一个 Jupyter Notebook，并导入已安装的包。\n\n```bash\n# 启动 Jupyter Notebook\njupyter notebook\n```\n\nNotebook 启动后，在第一个单元格中输入以下代码：\n\n```python\nimport numpy as np\nimport pandas as pd\nimport sklearn\nimport tensorflow as tf\nimport matplotlib.pyplot as plt\n\n# 检查 TensorFlow 是否可以访问 GPU\nprint(tf.config.list_physical_devices())\n\n# 查看 TensorFlow 版本\nprint(tf.__version__)\n```\n\n如果一切正常，你应该会看到类似以下的输出：\n\n```bash\nTensorFlow 可以访问以下设备：\n[PhysicalDevice(name='\u002Fphysical_device:CPU:0', device_type='CPU'),\n PhysicalDevice(name='\u002Fphysical_device:GPU:0', device_type='GPU')]\nTensorFlow 版本：2.5.0\n```\n\n17. 为了进一步验证是否真的成功，不妨从头到尾运行其中一个笔记本！然后将自己的结果与上述基准测试结果进行比较。","# M1\u002FM2 机器学习测试工具快速上手指南\n\n本指南旨在帮助开发者在 Apple Silicon (M1, M1 Pro, M1 Max, M1 Ultra, M2) 芯片的 Mac 上快速搭建 TensorFlow 机器学习环境，并运行基准测试代码。\n\n## 环境准备\n\n*   **操作系统**: macOS (适配 Apple Silicon 架构)\n*   **硬件要求**: M1, M1 Pro, M1 Max, M1 Ultra 或 M2 系列芯片 Mac\n*   **前置依赖**:\n    *   **Homebrew**: macOS 包管理器，用于安装命令行工具。\n    *   **Miniforge3**: 专为 ARM64 架构优化的 Conda 发行版（比官方 Anaconda 更轻量且对 M1 支持更好）。\n    *   **Python 版本**: 推荐 Python 3.8 (在该环境下最稳定)。\n\n> **注意**：国内用户若下载 Miniforge 或安装依赖较慢，可尝试配置国内镜像源，但本工具核心依赖 `tensorflow-macos` 和 `tensorflow-metal` 需从官方或 Apple 频道获取以保证兼容性。\n\n## 安装步骤\n\n### 1. 安装 Homebrew 和 Miniforge\n\n首先安装 Homebrew，然后下载并安装适用于 ARM64 的 Miniforge3。\n\n```bash\n# 安装 Homebrew\n\u002Fbin\u002Fbash -c \"$(curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FHomebrew\u002Finstall\u002FHEAD\u002Finstall.sh)\"\n\n# 下载 Miniforge3 (ARM64 版本)\ncurl -L -O https:\u002F\u002Fgithub.com\u002Fconda-forge\u002Fminiforge\u002Freleases\u002Flatest\u002Fdownload\u002FMiniforge3-MacOSX-arm64.sh\n\n# 赋予执行权限并安装\nchmod +x Miniforge3-MacOSX-arm64.sh\nsh Miniforge3-MacOSX-arm64.sh\n\n# 激活 base 环境\nsource ~\u002Fminiforge3\u002Fbin\u002Factivate\n```\n\n*安装完成后请重启终端窗口。*\n\n### 2. 创建并配置 TensorFlow 环境\n\n创建一个独立的项目目录和 Conda 环境，避免污染全局环境。\n\n```bash\n# 创建项目目录\nmkdir tensorflow-test\ncd tensorflow-test\n\n# 创建 Conda 环境 (指定 Python 3.8)\nconda create --prefix .\u002Fenv python=3.8\n\n# 激活环境\nconda activate .\u002Fenv\n```\n\n### 3. 安装 TensorFlow 及 GPU 加速插件\n\n按照顺序安装 Apple 提供的 TensorFlow 依赖、macOS 专用版本以及 Metal GPU 加速插件。\n\n```bash\n# 安装 TensorFlow 依赖 (来自 Apple Conda 频道)\nconda install -c apple tensorflow-deps\n\n# 安装 TensorFlow macOS 版本\npython -m pip install tensorflow-macos\n\n# 安装 TensorFlow Metal 插件 (启用 M1\u002FM2 GPU 加速)\npython -m pip install tensorflow-metal\n\n# (可选) 安装数据集库以运行本仓库的基准测试\npython -m pip install tensorflow-datasets\n\n# 安装常用数据科学工具包\nconda install jupyter pandas numpy matplotlib scikit-learn\n```\n\n## 基本使用\n\n### 验证环境配置\n\n启动 Jupyter Notebook 或直接运行 Python，检查 TensorFlow 是否正确识别了 GPU。\n\n```bash\njupyter notebook\n```\n\n在 Notebook 单元格中运行以下代码：\n\n```python\nimport numpy as np\nimport pandas as pd\nimport sklearn\nimport tensorflow as tf\nimport matplotlib.pyplot as plt\n\n# 检查 TensorFlow 是否识别到 GPU\nprint(f\"TensorFlow has access to the following devices:\\n{tf.config.list_physical_devices()}\")\n\n# 查看 TensorFlow 版本\nprint(f\"TensorFlow version: {tf.__version__}\")\n```\n\n**成功标志**：\n输出中应包含 `PhysicalDevice(name='\u002Fphysical_device:GPU:0', device_type='GPU')`，且版本号正常（如 2.8.0 或更高）。\n\n### 运行基准测试\n\n克隆本仓库并运行提供的 Notebooks 进行性能测试：\n\n```bash\n# 返回上级目录或任意工作区\ncd ..\n\n# 克隆仓库\ngit clone https:\u002F\u002Fgithub.com\u002Fmrdbourke\u002Fm1-machine-learning-test.git\ncd m1-machine-learning-test\n\n# 确保已激活之前创建的环境\nconda activate ..\u002Ftensorflow-test\u002Fenv\n\n# 启动 Jupyter 并打开对应的测试文件 (例如 CIFAR10 测试)\njupyter notebook 00_cifar10_tinyvgg_benchmark.ipynb\n```\n\n运行 Notebook 中的单元格即可完成模型训练与速度基准测试，结果将显示在 Notebook 末尾。","一位数据科学家刚入手 M1 Max MacBook Pro，急需验证其能否替代原有工作站进行高效的深度学习模型训练与调优。\n\n### 没有 m1-machine-learning-test 时\n- **环境配置迷茫**：面对 Apple Silicon 架构，开发者不清楚如何正确安装支持 GPU 加速的 TensorFlow，常因误装 Intel 版本导致无法调用 M1 芯片性能。\n- **性能基准缺失**：缺乏针对 M1 系列芯片的标准测试代码，无法量化对比新设备与旧硬件在 CIFAR10 或 Food101 等经典数据集上的训练速度差异。\n- **调试成本高昂**：需手动编写繁琐的基准测试脚本（如 TinyVGG 或 EfficientNetB0），耗费大量时间在环境排查而非核心算法验证上。\n- **硬件潜力未知**：不确定 `tensorflow-metal` 是否成功启用，难以判断模型训练是运行在 CPU 还是利用了 M1 强大的 GPU 加速能力。\n\n### 使用 m1-machine-learning-test 后\n- **一键标准化部署**：直接复用仓库中经过验证的 Miniforge 和 TensorFlow 安装步骤，快速构建出原生支持 M1 GPU 加速的稳定开发环境。\n- **即时性能对标**：运行内置的 Jupyter Notebook（如随机森林或图像分类实验），立即获得与历史硬件对比的直观跑分数据，明确性能提升幅度。\n- **开箱即用的实验模板**：直接调用预置的 TinyVGG 和 EfficientNetB0 测试代码，将原本数天的环境搭建与脚本编写工作缩短至几小时甚至几分钟。\n- **明确的硬件状态反馈**：通过脚本自动检测并打印 TensorFlow 可访问的物理设备列表，确凿证实 M1 GPU 已介入计算，消除性能疑虑。\n\nm1-machine-learning-test 将 M1 系列芯片的机器学习环境搭建从“盲目摸索”转变为“标准化流程”，让开发者能即刻释放苹果硅芯的算力潜能。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fmrdbourke_m1-machine-learning-test_e00fa85d.png","mrdbourke","Daniel Bourke","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Fmrdbourke_c53fa7a6.jpg","Machine Learning Engineer live on YouTube.",null,"www.mrdbourke.com","https:\u002F\u002Fgithub.com\u002Fmrdbourke",[23,27],{"name":24,"color":25,"percentage":26},"Jupyter Notebook","#DA5B0B",99.8,{"name":28,"color":29,"percentage":30},"Python","#3572A5",0.2,535,147,"2026-03-31T18:48:45","MIT",3,"macOS","需要 Apple Silicon GPU (M1, M1 Pro, M1 Max, M1 Ultra, M2)，通过 tensorflow-metal 插件利用 Metal 框架加速，无需 NVIDIA CUDA","未说明",{"notes":40,"python":41,"dependencies":42},"本项目专为配备 Apple Silicon 芯片（M1\u002FM2 系列）的 Mac 设计。必须使用 Miniforge (conda-forge) 创建环境，并通过 Apple 的 conda 频道安装依赖。核心加速依赖于 'tensorflow-metal' 包以调用 Mac GPU。README 中明确指出 Python 3.8 是该配置下最稳定的版本。不支持 Linux 或 Windows，也不支持基于 Intel 的 Mac 或 NVIDIA GPU。","3.8",[43,44,45,46,47,48,49,50,51],"tensorflow-macos","tensorflow-metal","tensorflow-deps","tensorflow-datasets","scikit-learn","pandas","numpy","matplotlib","jupyter",[53],"开发框架",[55,43,56,57],"tensorflow","metal","machine-learning",2,"ready","2026-03-27T02:49:30.150509","2026-04-06T07:11:52.169154",[],[],[65,75,84,92,100,113],{"id":66,"name":67,"github_repo":68,"description_zh":69,"stars":70,"difficulty_score":35,"last_commit_at":71,"category_tags":72,"status":59},3808,"stable-diffusion-webui","AUTOMATIC1111\u002Fstable-diffusion-webui","stable-diffusion-webui 是一个基于 Gradio 构建的网页版操作界面，旨在让用户能够轻松地在本地运行和使用强大的 Stable Diffusion 图像生成模型。它解决了原始模型依赖命令行、操作门槛高且功能分散的痛点，将复杂的 AI 绘图流程整合进一个直观易用的图形化平台。\n\n无论是希望快速上手的普通创作者、需要精细控制画面细节的设计师，还是想要深入探索模型潜力的开发者与研究人员，都能从中获益。其核心亮点在于极高的功能丰富度：不仅支持文生图、图生图、局部重绘（Inpainting）和外绘（Outpainting）等基础模式，还独创了注意力机制调整、提示词矩阵、负向提示词以及“高清修复”等高级功能。此外，它内置了 GFPGAN 和 CodeFormer 等人脸修复工具，支持多种神经网络放大算法，并允许用户通过插件系统无限扩展能力。即使是显存有限的设备，stable-diffusion-webui 也提供了相应的优化选项，让高质量的 AI 艺术创作变得触手可及。",162132,"2026-04-05T11:01:52",[53,73,74],"图像","Agent",{"id":76,"name":77,"github_repo":78,"description_zh":79,"stars":80,"difficulty_score":58,"last_commit_at":81,"category_tags":82,"status":59},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",138956,"2026-04-05T11:33:21",[53,74,83],"语言模型",{"id":85,"name":86,"github_repo":87,"description_zh":88,"stars":89,"difficulty_score":58,"last_commit_at":90,"category_tags":91,"status":59},2271,"ComfyUI","Comfy-Org\u002FComfyUI","ComfyUI 是一款功能强大且高度模块化的视觉 AI 引擎，专为设计和执行复杂的 Stable Diffusion 图像生成流程而打造。它摒弃了传统的代码编写模式，采用直观的节点式流程图界面，让用户通过连接不同的功能模块即可构建个性化的生成管线。\n\n这一设计巧妙解决了高级 AI 绘图工作流配置复杂、灵活性不足的痛点。用户无需具备编程背景，也能自由组合模型、调整参数并实时预览效果，轻松实现从基础文生图到多步骤高清修复等各类复杂任务。ComfyUI 拥有极佳的兼容性，不仅支持 Windows、macOS 和 Linux 全平台，还广泛适配 NVIDIA、AMD、Intel 及苹果 Silicon 等多种硬件架构，并率先支持 SDXL、Flux、SD3 等前沿模型。\n\n无论是希望深入探索算法潜力的研究人员和开发者，还是追求极致创作自由度的设计师与资深 AI 绘画爱好者，ComfyUI 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",107662,"2026-04-03T11:11:01",[53,73,74],{"id":93,"name":94,"github_repo":95,"description_zh":96,"stars":97,"difficulty_score":58,"last_commit_at":98,"category_tags":99,"status":59},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[53,83],{"id":101,"name":102,"github_repo":103,"description_zh":104,"stars":105,"difficulty_score":58,"last_commit_at":106,"category_tags":107,"status":59},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[73,108,109,110,74,111,83,53,112],"数据工具","视频","插件","其他","音频",{"id":114,"name":115,"github_repo":116,"description_zh":117,"stars":118,"difficulty_score":35,"last_commit_at":119,"category_tags":120,"status":59},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,"2026-04-04T04:44:48",[74,73,53,83,111]]