from mlx_lm import load, generate
model, tokenizer = load("Akahsizrr/fuse-1-Lite-MLX", trust_remote_code=True)
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "Write a Python function to check if a number is prime."}],
tokenize=False, add_generation_prompt=True,
)
response = generate(model, tokenizer, prompt=prompt, max_tokens=512)
print(response)
fuse-1-Lite-MLX huggingface.co is an AI model on huggingface.co that provides fuse-1-Lite-MLX's model effect (), which can be used instantly with this Akahsizrr fuse-1-Lite-MLX model. huggingface.co supports a free trial of the fuse-1-Lite-MLX model, and also provides paid use of the fuse-1-Lite-MLX. Support call fuse-1-Lite-MLX model through api, including Node.js, Python, http.
fuse-1-Lite-MLX huggingface.co is an online trial and call api platform, which integrates fuse-1-Lite-MLX's modeling effects, including api services, and provides a free online trial of fuse-1-Lite-MLX, you can try fuse-1-Lite-MLX online for free by clicking the link below.
Akahsizrr fuse-1-Lite-MLX online free url in huggingface.co:
fuse-1-Lite-MLX is an open source model from GitHub that offers a free installation service, and any user can find fuse-1-Lite-MLX on GitHub to install. At the same time, huggingface.co provides the effect of fuse-1-Lite-MLX install, users can directly use fuse-1-Lite-MLX installed effect in huggingface.co for debugging and trial. It also supports api for free installation.