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

  • Log In
  • Sign Up

shieldstackllc
/
GLM-4.7-Flash-PRISM-mlx-4bit

Text Generation
MLX
Safetensors
English
Chinese
glm4_moe_lite
glm4
Mixture of Experts
prism
abliterated
4bit
quantized
apple-silicon
conversational
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit 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("shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit")
    
    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
  • Pi new

    How to use shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit with Pi:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit"
    Configure the model in Pi
    # Install Pi:
    npm install -g @mariozechner/pi-coding-agent
    # Add to ~/.pi/agent/models.json:
    {
      "providers": {
        "mlx-lm": {
          "baseUrl": "http://localhost:8080/v1",
          "api": "openai-completions",
          "apiKey": "none",
          "models": [
            {
              "id": "shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit"
            }
          ]
        }
      }
    }
    Run Pi
    # Start Pi in your project directory:
    pi
  • MLX LM

    How to use shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "shieldstackllc/GLM-4.7-Flash-PRISM-mlx-4bit",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
GLM-4.7-Flash-PRISM-mlx-4bit
16.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
shieldstackllc's picture
shieldstackllc
Add vMLX logo to README
092b41d verified 3 months ago
  • .gitattributes
    1.57 kB
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • README.md
    2.02 kB
    Add vMLX logo to README 3 months ago
  • chat_template.jinja
    3.12 kB
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • config.json
    2.5 kB
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • generation_config.json
    181 Bytes
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • model-00001-of-00004.safetensors
    5.36 GB
    xet
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • model-00002-of-00004.safetensors
    5.36 GB
    xet
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • model-00003-of-00004.safetensors
    5.36 GB
    xet
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • model-00004-of-00004.safetensors
    768 MB
    xet
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • model.safetensors.index.json
    183 kB
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • tokenizer.json
    20.2 MB
    xet
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • tokenizer_config.json
    791 Bytes
    Add GLM-4.7-Flash-PRISM MLX 4-bit quantization by vMLX 3 months ago
  • vmlx-logo.png
    11.5 kB
    Add vMLX logo 3 months ago