Files
mlx-examples/llms/mlx_lm
n8programs 1e05aef344 Add logit soft capping to gemma, and fix precision issues (#857)
* Add logit soft capping to gemma, and fix precision issues

Gemma was babbling nonsense - so I figured out it was due to not having logit softcapping and precision issues causing NaNs (so I implemented the softcapping and added more float32 inference). gemma-27b-it-4bit now works flawlessly (or near-flawlessly, no sliding-window attention).

* get rid of comments

* get rid of last comments (sry lol)

* nits

---------

Co-authored-by: Awni Hannun <awni@apple.com>
2024-07-02 07:52:39 -07:00
..
2024-06-27 10:06:28 -07:00
2024-05-21 15:58:08 -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-06-27 06:38:19 -07:00
2024-01-12 10:25:56 -08: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.