Files
mlx-examples/llms/mlx_lm
Derek Lewis 89b0b75250 GPT2 Support (#798)
* GPT-2 model support

* Add test for gpt2 model

* Fix weight sanitizing for quantization

* use approx gelu

---------

Co-authored-by: Awni Hannun <awni@apple.com>
2024-06-02 16:33:20 -07:00
..
2024-06-02 16:33:20 -07:00
2024-06-02 16:33:20 -07:00
2024-02-27 08:47:56 -08:00
2024-05-21 15:58:08 -07:00
2024-05-31 12:54:14 -07:00
2024-06-02 06:38:42 -07:00
2024-01-23 08:44:37 -08:00
2024-05-31 12:54:14 -07:00
2024-04-11 13:18:23 -07:00
2024-05-08 08:18:13 -07:00
2024-01-12 10:25:56 -08:00
2024-05-23 19:47:35 -07:00
2024-06-02 06:38:42 -07:00

Generate Text with MLX and 🤗 Hugging Face

This an example of large language model text generation that can pull models from the Hugging Face Hub.

For more information on this example, see the README in the parent directory.

This package also supports fine tuning with LoRA or QLoRA. For more information see the LoRA documentation.