MyGit
🚩收到GitHub仓库的更新通知

ml-explore/mlx-swift-examples

Fork: 61 Star: 381 (更新于 2024-04-27 16:12:02)

license: MIT

Language: Swift .

Examples using MLX Swift

GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

MLX Swift Examples

Example MLX Swift programs.

  • MNISTTrainer: An example that runs on both iOS and macOS that downloads MNIST training data and trains a LeNet.

  • LLMEval: An example that runs on both iOS and macOS that downloads an LLM and tokenizer from Hugging Face and and generates text from a given prompt.

  • LinearModelTraining: An example that trains a simple linear model.

  • llm-tool: A command line tool for generating text using a variety of LLMs available on the Hugging Face hub.

  • mnist-tool: A command line tool for training a a LeNet on MNIST.

Running

The application and command line tool examples can be run from Xcode or from the command line:

./mlx-run llm-tool --prompt "swift programming language"

See also:

Installation of MLXLLM and MLXMNIST libraries

The MLXLLM and MLXMNIST libraries in the example repo are available as Swift Packages.

Add the following dependency to your Package.swift

.package(url: "https://github.com/ml-explore/mlx-swift-examples/", branch: "main"),

Then add one library or both libraries to the target as a dependency.

.target(
    name: "YourTargetName",
    dependencies: [
        .product(name: "LLM", package: "mlx-swift-examples")
    ]),

Alternatively, add https://github.com/ml-explore/mlx-swift-examples/ to the Project Dependencies and set the Dependency Rule to Branch and main in Xcode.

最近版本更新:(数据更新于 2024-04-27 00:41:15)

主题(topics):

mlx

ml-explore/mlx-swift-examples同语言 Swift最近更新仓库

2024-05-01 02:45:32 pointfreeco/swift-composable-architecture

2024-04-30 19:41:31 wordpress-mobile/WordPress-iOS

2024-04-30 14:05:25 utmapp/UTM

2024-04-24 08:30:46 whoeevee/EeveeSpotify

2024-04-22 21:58:50 Artificial-Pancreas/iAPS

2024-04-22 21:22:15 google-gemini/generative-ai-swift