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

  • Log In
  • Sign Up

mlx-community
/
OpenCodeInterpreter-DS-33B-hf-4bit-mlx

Text Generation
MLX
Safetensors
English
llama
code
conversational
Model card Files Files and versions
xet
Community

Instructions to use mlx-community/OpenCodeInterpreter-DS-33B-hf-4bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/OpenCodeInterpreter-DS-33B-hf-4bit-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("mlx-community/OpenCodeInterpreter-DS-33B-hf-4bit-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 mlx-community/OpenCodeInterpreter-DS-33B-hf-4bit-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 "mlx-community/OpenCodeInterpreter-DS-33B-hf-4bit-mlx"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "mlx-community/OpenCodeInterpreter-DS-33B-hf-4bit-mlx"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "mlx-community/OpenCodeInterpreter-DS-33B-hf-4bit-mlx",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
OpenCodeInterpreter-DS-33B-hf-4bit-mlx
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
mzbac's picture
mzbac
Update tokenizer_config.json
889f9a1 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    581 Bytes
    Upload folder using huggingface_hub about 2 years ago
  • config.json
    2.46 kB
    Upload folder using huggingface_hub about 2 years ago
  • model-00001-of-00004.safetensors
    5.3 GB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • model-00002-of-00004.safetensors
    5.37 GB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • model-00003-of-00004.safetensors
    5.37 GB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • model-00004-of-00004.safetensors
    3.05 GB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • model.safetensors.index.json
    123 kB
    Upload folder using huggingface_hub about 2 years ago
  • special_tokens_map.json
    482 Bytes
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer.json
    1.37 MB
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer_config.json
    5.16 kB
    Update tokenizer_config.json about 2 years ago
  • zero_to_fp32.py
    23.6 kB
    Upload folder using huggingface_hub about 2 years ago