mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 17:31:18 +08:00
fix response + bump version (#319)
This commit is contained in:
parent
195bec2fa3
commit
b0870ed679
@ -133,9 +133,9 @@ def generate(
|
|||||||
print(s[skip:], end="", flush=True)
|
print(s[skip:], end="", flush=True)
|
||||||
skip = len(s)
|
skip = len(s)
|
||||||
|
|
||||||
tokens = tokenizer.decode(tokens)[skip:]
|
tokens = tokenizer.decode(tokens)
|
||||||
if verbose:
|
if verbose:
|
||||||
print(tokens, flush=True)
|
print(tokens[skip:], flush=True)
|
||||||
return tokens
|
return tokens
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ with open(Path(__file__).parent / "mlx_lm/requirements.txt") as fid:
|
|||||||
requirements = [str(r) for r in pkg_resources.parse_requirements(fid)]
|
requirements = [str(r) for r in pkg_resources.parse_requirements(fid)]
|
||||||
setup(
|
setup(
|
||||||
name="mlx-lm",
|
name="mlx-lm",
|
||||||
version="0.0.2",
|
version="0.0.3",
|
||||||
description="LLMs on Apple silicon with MLX and the Hugging Face Hub",
|
description="LLMs on Apple silicon with MLX and the Hugging Face Hub",
|
||||||
long_description=open("README.md", encoding="utf-8").read(),
|
long_description=open("README.md", encoding="utf-8").read(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
Loading…
Reference in New Issue
Block a user