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

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

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

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

  • Libraries
  • MLX

    How to use mlx-community/INTELLECT-1-Instruct-6bit 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-6bit")
    
    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-6bit 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-6bit"
    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-6bit"
    # 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-6bit",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
INTELLECT-1-Instruct-6bit
8.31 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
prince-canuma's picture
prince-canuma
71527b58f958f6ee105ac858820c0cf1979590c12a8286731f5759981a107624
3eb92e5 verified over 1 year ago
  • .gitattributes
    1.57 kB
    71527b58f958f6ee105ac858820c0cf1979590c12a8286731f5759981a107624 over 1 year ago
  • README.md
    1.57 kB
    71527b58f958f6ee105ac858820c0cf1979590c12a8286731f5759981a107624 over 1 year ago
  • config.json
    1 kB
    71527b58f958f6ee105ac858820c0cf1979590c12a8286731f5759981a107624 over 1 year ago
  • model-00001-of-00002.safetensors
    5.34 GB
    xet
    28c21c545cfb5f43383865ed8e2924c49b39f7efee09b7866eeb7be1f7148572 over 1 year ago
  • model-00002-of-00002.safetensors
    2.96 GB
    xet
    95fe6498b5d9f6dc1836be3551f05c2351357a5dab04d7b215d202ad5385f154 over 1 year ago
  • model.safetensors.index.json
    83.3 kB
    71527b58f958f6ee105ac858820c0cf1979590c12a8286731f5759981a107624 over 1 year ago
  • special_tokens_map.json
    459 Bytes
    71527b58f958f6ee105ac858820c0cf1979590c12a8286731f5759981a107624 over 1 year ago
  • tokenizer.json
    17.2 MB
    xet
    71527b58f958f6ee105ac858820c0cf1979590c12a8286731f5759981a107624 over 1 year ago
  • tokenizer_config.json
    51.1 kB
    71527b58f958f6ee105ac858820c0cf1979590c12a8286731f5759981a107624 over 1 year ago