mlx-examples/llms/mlx_lm/__init__.py
L Lllvvuu 3082db0143
WIP: most of the merge, minus llms/mlx_lm/utils.py
TODO: Re-implement `batch_generate`
TODO: Update all `generate_step` callsites

NOTE: `generate_step` taking `(bs, seq_len)` instead of `(seq_len,)` is
a breaking change. In particular, `sampler` and `logits_processors` will
need to handle logits of shape `(bs, vocab_size)` instead of `(vocab_size,)`.
2024-12-27 01:17:20 -08:00

10 lines
214 B
Python

# Copyright © 2023-2024 Apple Inc.
import os
from ._version import __version__
os.environ["TRANSFORMERS_NO_ADVISORY_WARNINGS"] = "1"
from .utils import convert, generate, load, stream_generate, batch_generate