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

MaziyarPanahi
/
MathCoder2-Mistral-7B-GGUF

Text Generation
GGUF
mistral
quantized
2-bit
3-bit
4-bit precision
5-bit
6-bit
8-bit precision
GGUF
Model card Files Files and versions
xet
Community
1

Instructions to use MaziyarPanahi/MathCoder2-Mistral-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • llama-cpp-python

    How to use MaziyarPanahi/MathCoder2-Mistral-7B-GGUF with llama-cpp-python:

    # !pip install llama-cpp-python
    
    from llama_cpp import Llama
    
    llm = Llama.from_pretrained(
    	repo_id="MaziyarPanahi/MathCoder2-Mistral-7B-GGUF",
    	filename="MathCoder2-Mistral-7B.Q5_K_M.gguf",
    )
    
    output = llm(
    	"Once upon a time,",
    	max_tokens=512,
    	echo=True
    )
    print(output)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • llama.cpp

    How to use MaziyarPanahi/MathCoder2-Mistral-7B-GGUF with llama.cpp:

    Install from brew
    brew install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    # Run inference directly in the terminal:
    llama-cli -hf MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    # Run inference directly in the terminal:
    llama-cli -hf MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    Use pre-built binary
    # Download pre-built binary from:
    # https://github.com/ggerganov/llama.cpp/releases
    # Start a local OpenAI-compatible server with a web UI:
    ./llama-server -hf MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    # Run inference directly in the terminal:
    ./llama-cli -hf MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    Build from source code
    git clone https://github.com/ggerganov/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-server llama-cli
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama-server -hf MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    Use Docker
    docker model run hf.co/MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
  • LM Studio
  • Jan
  • vLLM

    How to use MaziyarPanahi/MathCoder2-Mistral-7B-GGUF with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "MaziyarPanahi/MathCoder2-Mistral-7B-GGUF"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "MaziyarPanahi/MathCoder2-Mistral-7B-GGUF",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
  • Ollama

    How to use MaziyarPanahi/MathCoder2-Mistral-7B-GGUF with Ollama:

    ollama run hf.co/MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
  • Unsloth Studio new

    How to use MaziyarPanahi/MathCoder2-Mistral-7B-GGUF with Unsloth Studio:

    Install Unsloth Studio (macOS, Linux, WSL)
    curl -fsSL https://unsloth.ai/install.sh | sh
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for MaziyarPanahi/MathCoder2-Mistral-7B-GGUF to start chatting
    Install Unsloth Studio (Windows)
    irm https://unsloth.ai/install.ps1 | iex
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for MaziyarPanahi/MathCoder2-Mistral-7B-GGUF to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for MaziyarPanahi/MathCoder2-Mistral-7B-GGUF to start chatting
  • Docker Model Runner

    How to use MaziyarPanahi/MathCoder2-Mistral-7B-GGUF with Docker Model Runner:

    docker model run hf.co/MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
  • Lemonade

    How to use MaziyarPanahi/MathCoder2-Mistral-7B-GGUF with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull MaziyarPanahi/MathCoder2-Mistral-7B-GGUF:Q5_K_M
    Run and chat with the model
    lemonade run user.MathCoder2-Mistral-7B-GGUF-Q5_K_M
    List all available models
    lemonade list
MathCoder2-Mistral-7B-GGUF
38.3 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
MaziyarPanahi's picture
MaziyarPanahi
78cb9122395a6b5b24e75de1d46e18e7c3862c83e5b3e1e05fc27004076e7783
842a3be verified over 1 year ago
  • .gitattributes
    1.94 kB
    78cb9122395a6b5b24e75de1d46e18e7c3862c83e5b3e1e05fc27004076e7783 over 1 year ago
  • MathCoder2-Mistral-7B-GGUF_imatrix.dat
    4.99 MB
    xet
    78cb9122395a6b5b24e75de1d46e18e7c3862c83e5b3e1e05fc27004076e7783 over 1 year ago
  • MathCoder2-Mistral-7B.Q5_K_M.gguf
    5.13 GB
    xet
    efea41c07cf9d0c7e8f66fba6a28bfc0972e017f5907f336ff8a2e7d49a0c298 over 1 year ago
  • MathCoder2-Mistral-7B.Q5_K_S.gguf
    5 GB
    xet
    9404ecdbf03e4acc6e87e3716b13f73fb7e2571b7b7339db1753d712bda4dce1 over 1 year ago
  • MathCoder2-Mistral-7B.Q6_K.gguf
    5.94 GB
    xet
    8a9cc704035980b3be818b272ec4be38829d5dc3232651c8c654451a595de1c3 over 1 year ago
  • MathCoder2-Mistral-7B.Q8_0.gguf
    7.7 GB
    xet
    4c249691cb652cfb0ceb1fc3772a5ea9156a6ab895b5307bcbc75e1bd6f30e26 over 1 year ago
  • MathCoder2-Mistral-7B.fp16.gguf
    14.5 GB
    xet
    50ae8ca571efa52b9debb7d47bd6794195c98e1ff3b5695397d86cd5020ed0df over 1 year ago
  • README.md
    3 kB
    78cb9122395a6b5b24e75de1d46e18e7c3862c83e5b3e1e05fc27004076e7783 over 1 year ago