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

osmapi
/
DeepSeek-V4-Flash-6bit-mlx

Text Generation
MLX
Safetensors
English
Chinese
deepseek_v4
deepseek-v4
deepseek
quantized
apple-silicon
mixture-of-experts
Mixture of Experts
affine
conversational
6-bit
Model card Files Files and versions
xet
Community

Instructions to use osmapi/DeepSeek-V4-Flash-6bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use osmapi/DeepSeek-V4-Flash-6bit-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("osmapi/DeepSeek-V4-Flash-6bit-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 osmapi/DeepSeek-V4-Flash-6bit-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 "osmapi/DeepSeek-V4-Flash-6bit-mlx"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "osmapi/DeepSeek-V4-Flash-6bit-mlx"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "osmapi/DeepSeek-V4-Flash-6bit-mlx",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
DeepSeek-V4-Flash-6bit-mlx / encoding
58.9 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
junafinity's picture
junafinity
Add files using upload-large-folder tool
936daf6 verified 1 day ago
  • tests
    Add files using upload-large-folder tool 1 day ago
  • README.md
    8.12 kB
    Add files using upload-large-folder tool 1 day ago
  • encoding_dsv4.py
    27.9 kB
    Add files using upload-large-folder tool 1 day ago
  • test_encoding_dsv4.py
    3.74 kB
    Add files using upload-large-folder tool 1 day ago