Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ArapCheruiyot
/
pathways-phi3-mini

Text Generation
MLX
Safetensors
English
French
phi3
nlp
code
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use ArapCheruiyot/pathways-phi3-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use ArapCheruiyot/pathways-phi3-mini with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("ArapCheruiyot/pathways-phi3-mini")
    
    prompt = "Write a story about Einstein"
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True
    )
    
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • MLX LM

    How to use ArapCheruiyot/pathways-phi3-mini with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "ArapCheruiyot/pathways-phi3-mini"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "ArapCheruiyot/pathways-phi3-mini"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "ArapCheruiyot/pathways-phi3-mini",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
  • Atomic Chat
pathways-phi3-mini
7.65 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
ArapCheruiyot's picture
ArapCheruiyot
Upload folder using huggingface_hub
01489ea verified 11 days ago
  • .gitattributes
    1.52 kB
    initial commit 11 days ago
  • README.md
    412 Bytes
    Upload folder using huggingface_hub 11 days ago
  • chat_template.jinja
    407 Bytes
    Upload folder using huggingface_hub 11 days ago
  • config.json
    1 kB
    Upload folder using huggingface_hub 11 days ago
  • configuration_phi3.py
    11.2 kB
    Upload folder using huggingface_hub 11 days ago
  • generation_config.json
    181 Bytes
    Upload folder using huggingface_hub 11 days ago
  • model-00001-of-00002.safetensors
    5.36 GB
    xet
    Upload folder using huggingface_hub 11 days ago
  • model-00002-of-00002.safetensors
    2.29 GB
    xet
    Upload folder using huggingface_hub 11 days ago
  • model.safetensors.index.json
    17.2 kB
    Upload folder using huggingface_hub 11 days ago
  • modeling_phi3.py
    73.2 kB
    Upload folder using huggingface_hub 11 days ago
  • sample_finetune.py
    6.4 kB
    Upload folder using huggingface_hub 11 days ago
  • tokenizer.json
    3.62 MB
    Upload folder using huggingface_hub 11 days ago
  • tokenizer_config.json
    408 Bytes
    Upload folder using huggingface_hub 11 days ago