https://github.com/RAHB-REALTORS-Association/mlx-demos
Explore machine learning techniques with Gradio interfaces for Stable Diffusion image generation and LoRA text generation with the Apple MLX framework.
https://github.com/RAHB-REALTORS-Association/mlx-demos
ai apple-metal apple-silicon gradio machine-learning mlx
Last synced: 6 months ago
JSON representation
Explore machine learning techniques with Gradio interfaces for Stable Diffusion image generation and LoRA text generation with the Apple MLX framework.
- Host: GitHub
- URL: https://github.com/RAHB-REALTORS-Association/mlx-demos
- Owner: RAHB-REALTORS-Association
- License: mit
- Created: 2023-12-19T18:31:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T18:31:24.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T03:04:52.687Z (11 months ago)
- Topics: ai, apple-metal, apple-silicon, gradio, machine-learning, mlx
- Language: Python
- Homepage:
- Size: 74.2 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MLX Demos
Welcome to the MLX Demos repository! This repository contains two separate demonstrations of machine learning techniques using MLX: Stable Diffusion and LoRA (Low-Rank Adaptation). Each demo is contained within its own directory and features a Gradio UI for easy interaction. Parts of the code in these demonstrations have been adapted from the [MLX-Examples repository](https://github.com/ml-explore/mlx-examples/) by Apple.
## Directory Structure
- `stable-diffusion/`: Contains the demo for image generation using Stable Diffusion.
- `lora/`: Contains the demo for text generation using LoRA fine-tuning.## Getting Started
To get started with these demos, you will first need to clone this repository:
```bash
git clone https://github.com/RAHB-REALTORS-Association/mlx-demos.git
cd mlx-demos
```Then, navigate to the specific demo you're interested in (`stable-diffusion` or `lora`), and follow the instructions in the respective `README.md` within each folder.
## Stable Diffusion
The `stable-diffusion` directory contains a demo that uses Stable Diffusion for image generation. This demo illustrates the capabilities of MLX in processing and generating images based on textual prompts.
To run the Stable Diffusion demo, navigate to the `stable-diffusion` directory and follow the instructions in its `README.md`.
## LoRA
The `lora` directory contains a demo that demonstrates the use of LoRA for text generation. This demo showcases how MLX can be used to fine-tune models for text generation tasks.
To run the LoRA demo, navigate to the `lora` directory and follow the instructions in its `README.md`.
## Requirements
Each demo has its own set of dependencies. Please refer to the respective `README.md` files in each directory for specific instructions on how to install and run the demos.
## Contributing
Contributions to this repository are welcome. Please feel free to submit issues or pull requests for improvements to the demos.
## License
This project is open sourced under the MIT license. See the [LICENSE](LICENSE) file for more info.