Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

mlx-community
/
phi-1_5

Text Generation
MLX
Safetensors
English
phi
nlp
code
Model card Files Files and versions
xet
Community
2

Instructions to use mlx-community/phi-1_5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/phi-1_5 with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    # if on a CUDA device, also pip install mlx[cuda]
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("mlx-community/phi-1_5")
    
    prompt = "Once upon a time in"
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • MLX LM

    How to use mlx-community/phi-1_5 with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Generate some text
    mlx_lm.generate --model "mlx-community/phi-1_5" --prompt "Once upon a time"
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

[WIP] Upload folder using huggingface_hub (multi-commit 5425a1ca37c03532eb2ec34729cc89ef3ad05d72a64d59418e7bc188e212a224)

#2 opened almost 2 years ago by
99DHL
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs