wizard-math-7b

MAX Model

2 versions

Model focused on math and logic problems

Run this model

  1. Install our magic package manager:

    curl -ssL https://magic.modular.com/ | bash

    Then run the source command that's printed in your terminal.

  2. Install Max Pipelines in order to run this model.

    magic global install max-pipelines
  3. Start a local endpoint for wizard-math/7b:

    max-serve serve --huggingface-repo-id PrunaAI/WizardLM-WizardMath-7B-V1.0-bnb-4bit-smashed

    The endpoint is ready when you see the URI printed in your terminal:

    Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
  4. Now open another terminal to send a request using curl:

    curl -N http://0.0.0.0:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
        "model": "wizard-math/7b",
        "stream": true,
        "messages": [
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Who won the World Series in 2020?"}
        ]
    }' | grep -o '"content":"[^"]*"' | sed 's/"content":"//g' | sed 's/"//g' | tr -d '
    ' | sed 's/\n/
    /g'
  5. 🎉 Hooray! You’re running Generative AI. Our goal is to make this as easy as possible.

About

WizardMath, created by WizardLM, is a language model designed specifically for tackling mathematical problems. Trained on the GSM8k dataset, it excels at solving diverse math-related questions. The model is available in parameter sizes of 7B, 13B, and 70B, catering to varying computational needs. Its latest upgrade to version 7B v1.1 is built on Mistral-7B, delivering state-of-the-art performance with improved benchmark scores compared to earlier versions.

Example prompt

How many 4-digit numbers have the last digit equal to the sum of the first two digits?

References

HuggingFace

DETAILS

MODEL CLASS
MAX Model

MAX Models are extremely optimized inference pipelines to run SOTA performance for that model on both CPU and GPU. For many of these models, they are the fastest version of this model in the world.

Browse 18+ MAX Models

MODULAR GITHUB

Modular

CREATED BY

PrunaAI

MODEL

PrunaAI/WizardLM-WizardMath-7B-V1.0-bnb-4bit-smashed

TAGS

4-bit
autotrain_compatible
bitsandbytes
endpoints_compatible
llama
pruna-ai
region:us
safetensors
text-generation
text-generation-inference
transformers

@ Copyright - Modular Inc - 2024