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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

lopezhansel
/
phined-tuned

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

Instructions to use lopezhansel/phined-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use lopezhansel/phined-tuned 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("lopezhansel/phined-tuned")
    
    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 lopezhansel/phined-tuned with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "lopezhansel/phined-tuned"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "lopezhansel/phined-tuned"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "lopezhansel/phined-tuned",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

[WIP] Upload folder using huggingface_hub (multi-commit 7ca40f01f809dcc61c94abc8ef0b3bc1f1b8fd7f4445c871a3ca5e4fc7103e42)

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