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

  • Log In
  • Sign Up

mlx-community
/
INTELLECT-1-Instruct-8bit

Text Generation
MLX
Safetensors
English
llama
conversational
8-bit precision
Model card Files Files and versions
xet
Community
1

Instructions to use mlx-community/INTELLECT-1-Instruct-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/INTELLECT-1-Instruct-8bit 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/INTELLECT-1-Instruct-8bit")
    
    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/INTELLECT-1-Instruct-8bit 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/INTELLECT-1-Instruct-8bit"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "mlx-community/INTELLECT-1-Instruct-8bit"
    # 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/INTELLECT-1-Instruct-8bit",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
INTELLECT-1-Instruct-8bit
10.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
prince-canuma's picture
prince-canuma
6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37
c42a280 verified over 1 year ago
  • .gitattributes
    1.57 kB
    6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37 over 1 year ago
  • README.md
    1.57 kB
    6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37 over 1 year ago
  • config.json
    1 kB
    6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37 over 1 year ago
  • model-00001-of-00003.safetensors
    5.36 GB
    xet
    50bfb983b21182d6cd1d9b52028e45eeaace5b957bd0a5466795fbd96a9eb646 over 1 year ago
  • model-00002-of-00003.safetensors
    4.93 GB
    xet
    4e78d5b623f8bf943711a67fefbe360fb92d0e663fda18989710fe8d095c7aaf over 1 year ago
  • model-00003-of-00003.safetensors
    558 MB
    xet
    6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37 over 1 year ago
  • model.safetensors.index.json
    83.3 kB
    6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37 over 1 year ago
  • special_tokens_map.json
    459 Bytes
    6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37 over 1 year ago
  • tokenizer.json
    17.2 MB
    xet
    6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37 over 1 year ago
  • tokenizer_config.json
    51.1 kB
    6712a157d3ad199c4ba10a7c019507d627b6283329941b0207683a9aba79bc37 over 1 year ago