Files
mlx-examples/llms/mlx_lm
Kevin Conner 0ffdb6dd20 Fix object property value in mlx_lm.server chat completions response to match OpenAI spec (#1119)
These were "chat.completions" and "chat.completions.chunk"
but should be "chat.completion" and "chat.completion.chunk"
for compatibility with clients expecting an OpenAI API.

In particular, this solves a problem in which aider 0.64.1 reports
hitting a token limit on any completion request, no matter how small,
despite apparently correct counts in the usage property.

Refer to:

https://platform.openai.com/docs/api-reference/chat/object

> object string
> The object type, which is always chat.completion.

https://platform.openai.com/docs/api-reference/chat/streaming

> object string
> The object type, which is always chat.completion.chunk.
2024-11-24 16:37:37 -08:00
..
2024-11-23 11:06:26 -08:00
2024-11-23 11:47:06 -08:00
2024-10-22 09:56:45 -07:00
2024-09-29 17:12:47 -07:00
2024-09-20 13:33:45 -07:00
2024-01-23 08:44:37 -08:00
2024-10-31 08:17:14 -07:00
2024-01-12 10:25:56 -08:00
2024-11-23 11:47:06 -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.