Loading…
Loading…
This is an ONNX version of mlx-community/SmolLM-135M-Instruct-fp16. It was automatically converted and uploaded using this Hugging Face Space.
See the pipeline documentation for text-generation: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextGenerationPipeline
The Model mlx-community/SmolLM-135M-Instruct-fp16 was converted to MLX format from HuggingFaceTB/SmolLM-135M-Instruct using mlx-lm version 0.15.2.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/SmolLM-135M-Instruct-fp16")
response = generate(model, tokenizer, prompt="hello", verbose=True)
mlx-community/SmolLM-135M-Instruct-fp16