Example of response generation with optional arguments (#853)

* Generate response with optional arguments

* Reference response generation example

* Include transformers and sentencepiece

* Update example to run Mistral-7B-Instruct-v0.3

* Link to generation example

* Style changes from pre-commit
This commit is contained in:
Alex Wozniakowski
2024-07-09 06:49:59 -07:00
committed by GitHub
parent 68e88d42fb
commit 63800c8feb
3 changed files with 43 additions and 1 deletions

View File

@@ -38,6 +38,8 @@ To see a description of all the arguments you can do:
>>> help(generate)
```
Check out the [generation example](https://github.com/ml-explore/mlx-examples/tree/main/llms/mlx_lm/examples/generate_response.py) to see how to use the API in more detail.
The `mlx-lm` package also comes with functionality to quantize and optionally
upload models to the Hugging Face Hub.