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

  • Log In
  • Sign Up

Ranjit0034
/
finee-phi3-4b

Text Generation
MLX
Safetensors
English
phi3
conversational
custom_code
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use Ranjit0034/finee-phi3-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use Ranjit0034/finee-phi3-4b 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("Ranjit0034/finee-phi3-4b")
    
    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 Ranjit0034/finee-phi3-4b with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "Ranjit0034/finee-phi3-4b"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "Ranjit0034/finee-phi3-4b"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "Ranjit0034/finee-phi3-4b",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
finee-phi3-4b
2.15 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 15 commits
Ranjit0034's picture
Ranjit0034
Upload model.safetensors.index.json with huggingface_hub
a96568f verified 4 months ago
  • .gitattributes
    1.52 kB
    initial commit 4 months ago
  • README.md
    81 Bytes
    Upload README.md with huggingface_hub 4 months ago
  • added_tokens.json
    293 Bytes
    Upload added_tokens.json with huggingface_hub 4 months ago
  • chat_template.jinja
    407 Bytes
    Upload chat_template.jinja with huggingface_hub 4 months ago
  • config.json
    1.16 kB
    Upload config.json with huggingface_hub 4 months ago
  • configuration_phi3.py
    11.2 kB
    Upload configuration_phi3.py with huggingface_hub 4 months ago
  • generation_config.json
    181 Bytes
    Upload generation_config.json with huggingface_hub 4 months ago
  • model.safetensors
    2.15 GB
    xet
    Upload model.safetensors with huggingface_hub 4 months ago
  • model.safetensors.index.json
    32.7 kB
    Upload model.safetensors.index.json with huggingface_hub 4 months ago
  • modeling_phi3.py
    73.2 kB
    Upload modeling_phi3.py with huggingface_hub 4 months ago
  • sample_finetune.py
    6.4 kB
    Upload sample_finetune.py with huggingface_hub 4 months ago
  • special_tokens_map.json
    569 Bytes
    Upload special_tokens_map.json with huggingface_hub 4 months ago
  • tokenizer.json
    3.62 MB
    Upload tokenizer.json with huggingface_hub 4 months ago
  • tokenizer.model
    500 kB
    xet
    Upload tokenizer.model with huggingface_hub 4 months ago
  • tokenizer_config.json
    2.93 kB
    Upload tokenizer_config.json with huggingface_hub 4 months ago