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

usermma
/
Supra-50M-Reasoning-mlx-4Bit

Text Generation
Transformers
Safetensors
MLX
English
llama
supra
chimera
50m
small
open
open-source
cpu
tiny
slm
reasoning
think
thinking
mlx-my-repo
text-generation-inference
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use usermma/Supra-50M-Reasoning-mlx-4Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use usermma/Supra-50M-Reasoning-mlx-4Bit with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="usermma/Supra-50M-Reasoning-mlx-4Bit")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("usermma/Supra-50M-Reasoning-mlx-4Bit")
    model = AutoModelForCausalLM.from_pretrained("usermma/Supra-50M-Reasoning-mlx-4Bit")
  • MLX

    How to use usermma/Supra-50M-Reasoning-mlx-4Bit 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("usermma/Supra-50M-Reasoning-mlx-4Bit")
    
    prompt = "Once upon a time in"
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • vLLM

    How to use usermma/Supra-50M-Reasoning-mlx-4Bit with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "usermma/Supra-50M-Reasoning-mlx-4Bit"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "usermma/Supra-50M-Reasoning-mlx-4Bit",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/usermma/Supra-50M-Reasoning-mlx-4Bit
  • SGLang

    How to use usermma/Supra-50M-Reasoning-mlx-4Bit with SGLang:

    Install from pip and serve model
    # Install SGLang from pip:
    pip install sglang
    # Start the SGLang server:
    python3 -m sglang.launch_server \
        --model-path "usermma/Supra-50M-Reasoning-mlx-4Bit" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "usermma/Supra-50M-Reasoning-mlx-4Bit",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker images
    docker run --gpus all \
        --shm-size 32g \
        -p 30000:30000 \
        -v ~/.cache/huggingface:/root/.cache/huggingface \
        --env "HF_TOKEN=<secret>" \
        --ipc=host \
        lmsysorg/sglang:latest \
        python3 -m sglang.launch_server \
            --model-path "usermma/Supra-50M-Reasoning-mlx-4Bit" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "usermma/Supra-50M-Reasoning-mlx-4Bit",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • MLX LM

    How to use usermma/Supra-50M-Reasoning-mlx-4Bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Generate some text
    mlx_lm.generate --model "usermma/Supra-50M-Reasoning-mlx-4Bit" --prompt "Once upon a time"
  • Docker Model Runner

    How to use usermma/Supra-50M-Reasoning-mlx-4Bit with Docker Model Runner:

    docker model run hf.co/usermma/Supra-50M-Reasoning-mlx-4Bit
Supra-50M-Reasoning-mlx-4Bit
31.5 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
usermma's picture
usermma
Upload folder using huggingface_hub
1832983 verified about 21 hours ago
  • .gitattributes
    1.52 kB
    initial commit about 21 hours ago
  • README.md
    1.15 kB
    Upload folder using huggingface_hub about 21 hours ago
  • config.json
    988 Bytes
    Upload folder using huggingface_hub about 21 hours ago
  • create-reasoning-dataset.py
    35.3 kB
    Upload folder using huggingface_hub about 21 hours ago
  • generation_config.json
    215 Bytes
    Upload folder using huggingface_hub about 21 hours ago
  • inf-reasoning.py
    2.44 kB
    Upload folder using huggingface_hub about 21 hours ago
  • model.safetensors
    29.2 MB
    xet
    Upload folder using huggingface_hub about 21 hours ago
  • model.safetensors.index.json
    19.7 kB
    Upload folder using huggingface_hub about 21 hours ago
  • sft.py
    6.93 kB
    Upload folder using huggingface_hub about 21 hours ago
  • tokenizer.json
    2.27 MB
    Upload folder using huggingface_hub about 21 hours ago
  • tokenizer_config.json
    240 Bytes
    Upload folder using huggingface_hub about 21 hours ago