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

  • Log In
  • Sign Up

mlx-community
/
OpenCodeInterpreter-SC2-3B-4bit

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

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

  • Libraries
  • MLX

    How to use mlx-community/OpenCodeInterpreter-SC2-3B-4bit with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    # if on a CUDA device, also pip install mlx[cuda]
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("mlx-community/OpenCodeInterpreter-SC2-3B-4bit")
    
    prompt = "Once upon a time in"
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • MLX LM

    How to use mlx-community/OpenCodeInterpreter-SC2-3B-4bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Generate some text
    mlx_lm.generate --model "mlx-community/OpenCodeInterpreter-SC2-3B-4bit" --prompt "Once upon a time"
OpenCodeInterpreter-SC2-3B-4bit
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
muhtasham's picture
muhtasham
Upload folder using huggingface_hub
fed0072 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    587 Bytes
    Upload folder using huggingface_hub about 2 years ago
  • config.json
    2.54 kB
    Upload folder using huggingface_hub about 2 years ago
  • merges.txt
    442 kB
    Upload folder using huggingface_hub about 2 years ago
  • model.safetensors
    2.01 GB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • model.safetensors.index.json
    58.8 kB
    Upload folder using huggingface_hub about 2 years ago
  • special_tokens_map.json
    1.45 kB
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer.json
    2.06 MB
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer_config.json
    8.02 kB
    Upload folder using huggingface_hub about 2 years ago
  • vocab.json
    777 kB
    Upload folder using huggingface_hub about 2 years ago
  • zero_to_fp32.py
    23.6 kB
    Upload folder using huggingface_hub about 2 years ago