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

  • Log In
  • Sign Up

mlx-community
/
Mellum-4b-sft-python

Text Generation
MLX
Safetensors
llama
code
Eval Results (legacy)
Model card Files Files and versions
xet
Community
1

Instructions to use mlx-community/Mellum-4b-sft-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/Mellum-4b-sft-python 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/Mellum-4b-sft-python")
    
    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/Mellum-4b-sft-python 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/Mellum-4b-sft-python" --prompt "Once upon a time"
Mellum-4b-sft-python
8.05 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
leoho0722's picture
leoho0722
Add files using upload-large-folder tool
7a9fd4b verified 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    2.56 kB
    Add files using upload-large-folder tool 10 months ago
  • config.json
    789 Bytes
    Add files using upload-large-folder tool 10 months ago
  • generation_config.json
    132 Bytes
    Add files using upload-large-folder tool 10 months ago
  • merges.txt
    915 kB
    Add files using upload-large-folder tool 10 months ago
  • model-00001-of-00002.safetensors
    5.33 GB
    xet
    Add files using upload-large-folder tool 10 months ago
  • model-00002-of-00002.safetensors
    2.7 GB
    xet
    Add files using upload-large-folder tool 10 months ago
  • model.safetensors.index.json
    23.6 kB
    Add files using upload-large-folder tool 10 months ago
  • special_tokens_map.json
    1.13 kB
    Add files using upload-large-folder tool 10 months ago
  • tokenizer.json
    7.03 MB
    Add files using upload-large-folder tool 10 months ago
  • tokenizer_config.json
    5.65 kB
    Add files using upload-large-folder tool 10 months ago
  • vocab.json
    1.6 MB
    Add files using upload-large-folder tool 10 months ago