dyngnosis/function_names_v2
Viewer • Updated • 75.6k • 77 • 1
How to use seanmor5/phi-2-function-identification-v0.1-mlx-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir phi-2-function-identification-v0.1-mlx-4bit seanmor5/phi-2-function-identification-v0.1-mlx-4bit
This model was converted to MLX format from seanmor5/phi-2-function-identification.
Refer to the original model card for more details on the model.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("seanmor5/phi-2-function-identification-v0.1-mlx-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
Quantized
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir phi-2-function-identification-v0.1-mlx-4bit seanmor5/phi-2-function-identification-v0.1-mlx-4bit