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

senapati484
/
shrnk

Text Generation
Safetensors
MLX
English
shrnk
apple-silicon
custom-architecture
4-bit precision
nvfp4
0.5b
conversational
custom-identity
Model card Files Files and versions
xet
Community

Instructions to use senapati484/shrnk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use senapati484/shrnk 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("senapati484/shrnk")
    
    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 Settings
  • LM Studio
  • Pi

    How to use senapati484/shrnk with Pi:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "senapati484/shrnk"
    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": "senapati484/shrnk"
            }
          ]
        }
      }
    }
    Run Pi
    # Start Pi in your project directory:
    pi
  • Hermes Agent new

    How to use senapati484/shrnk with Hermes Agent:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "senapati484/shrnk"
    Configure Hermes
    # Install Hermes:
    curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
    hermes setup
    # Point Hermes at the local server:
    hermes config set model.provider custom
    hermes config set model.base_url http://127.0.0.1:8080/v1
    hermes config set model.default senapati484/shrnk
    Run Hermes
    hermes
  • MLX LM

    How to use senapati484/shrnk with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "senapati484/shrnk"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "senapati484/shrnk"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "senapati484/shrnk",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
shrnk
285 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
senapati484's picture
senapati484
shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB)
bd6e18b verified about 17 hours ago
  • __pycache__
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago
  • .gitattributes
    1.52 kB
    initial commit about 17 hours ago
  • LICENSE
    1.07 kB
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago
  • README.md
    15.4 kB
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago
  • chat_template.jinja
    2.65 kB
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago
  • config.json
    913 Bytes
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago
  • model.safetensors
    278 MB
    xet
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago
  • shrnk.py
    7.66 kB
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago
  • tokenizer.json
    7.03 MB
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago
  • tokenizer_config.json
    7.5 kB
    shrnk v1: 0.5B custom-identity assistant, MLX-only 4-bit nvfp4 (272MB) about 17 hours ago