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

  • Log In
  • Sign Up

jafermarq
/
finetuned_phi3_mlx

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

Instructions to use jafermarq/finetuned_phi3_mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use jafermarq/finetuned_phi3_mlx 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("jafermarq/finetuned_phi3_mlx")
    
    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
  • LM Studio
  • MLX LM

    How to use jafermarq/finetuned_phi3_mlx with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "jafermarq/finetuned_phi3_mlx"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "jafermarq/finetuned_phi3_mlx"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "jafermarq/finetuned_phi3_mlx",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
finetuned_phi3_mlx
7.64 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
jafermarq's picture
jafermarq
Update README.md
01ff439 verified almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    864 Bytes
    Update README.md almost 2 years ago
  • config.json
    3.97 kB
    Upload 11 files almost 2 years ago
  • configuration_phi3.py
    11.2 kB
    Upload 11 files almost 2 years ago
  • model-00001-of-00002.safetensors
    5.36 GB
    xet
    Upload 11 files almost 2 years ago
  • model-00002-of-00002.safetensors
    2.29 GB
    xet
    Upload 11 files almost 2 years ago
  • model.safetensors.index.json
    17.1 kB
    Upload 11 files almost 2 years ago
  • modeling_phi3.py
    73.2 kB
    Upload 11 files almost 2 years ago
  • sample_finetune.py
    6.4 kB
    Upload 11 files almost 2 years ago
  • special_tokens_map.json
    569 Bytes
    Upload 11 files almost 2 years ago
  • tokenizer.json
    1.84 MB
    Upload 11 files almost 2 years ago
  • tokenizer_config.json
    3.34 kB
    Upload 11 files almost 2 years ago