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

sjakek
/
gemma4-12b-mtp-assistant

Text Generation
GGUF
gemma4
mtp
speculative-decoding
draft-model
llama.cpp
Model card Files Files and versions
xet
Community

Instructions to use sjakek/gemma4-12b-mtp-assistant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • llama-cpp-python

    How to use sjakek/gemma4-12b-mtp-assistant with llama-cpp-python:

    # !pip install llama-cpp-python
    
    from llama_cpp import Llama
    
    llm = Llama.from_pretrained(
    	repo_id="sjakek/gemma4-12b-mtp-assistant",
    	filename="gemma-4-12B-it-assistant-BF16.gguf",
    )
    
    output = llm(
    	"Once upon a time,",
    	max_tokens=512,
    	echo=True
    )
    print(output)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use sjakek/gemma4-12b-mtp-assistant with llama.cpp:

    Install from brew
    brew install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf sjakek/gemma4-12b-mtp-assistant:BF16
    # Run inference directly in the terminal:
    llama-cli -hf sjakek/gemma4-12b-mtp-assistant:BF16
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf sjakek/gemma4-12b-mtp-assistant:BF16
    # Run inference directly in the terminal:
    llama-cli -hf sjakek/gemma4-12b-mtp-assistant:BF16
    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 sjakek/gemma4-12b-mtp-assistant:BF16
    # Run inference directly in the terminal:
    ./llama-cli -hf sjakek/gemma4-12b-mtp-assistant:BF16
    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 sjakek/gemma4-12b-mtp-assistant:BF16
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf sjakek/gemma4-12b-mtp-assistant:BF16
    Use Docker
    docker model run hf.co/sjakek/gemma4-12b-mtp-assistant:BF16
  • LM Studio
  • Jan
  • vLLM

    How to use sjakek/gemma4-12b-mtp-assistant with vLLM:

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

    How to use sjakek/gemma4-12b-mtp-assistant with Ollama:

    ollama run hf.co/sjakek/gemma4-12b-mtp-assistant:BF16
  • Unsloth Studio

    How to use sjakek/gemma4-12b-mtp-assistant 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 sjakek/gemma4-12b-mtp-assistant 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 sjakek/gemma4-12b-mtp-assistant to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for sjakek/gemma4-12b-mtp-assistant to start chatting
  • Docker Model Runner

    How to use sjakek/gemma4-12b-mtp-assistant with Docker Model Runner:

    docker model run hf.co/sjakek/gemma4-12b-mtp-assistant:BF16
  • Lemonade

    How to use sjakek/gemma4-12b-mtp-assistant with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull sjakek/gemma4-12b-mtp-assistant:BF16
    Run and chat with the model
    lemonade run user.gemma4-12b-mtp-assistant-BF16
    List all available models
    lemonade list
gemma4-12b-mtp-assistant
1.33 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
sjakek's picture
sjakek
Document parallel-3 MTP benchmark results
e2207f2 verified about 21 hours ago
  • benchmarks
    Add Q4_K_XL parallel-3 MTP benchmark report about 21 hours ago
  • logs
    Add files using upload-large-folder tool about 22 hours ago
  • .gitattributes
    1.66 kB
    Add files using upload-large-folder tool about 22 hours ago
  • README.md
    5.21 kB
    Document parallel-3 MTP benchmark results about 21 hours ago
  • conversion_config.json
    2.84 kB
    Add files using upload-large-folder tool about 22 hours ago
  • gemma-4-12B-it-assistant-BF16.gguf
    862 MB
    xet
    Add files using upload-large-folder tool about 22 hours ago
  • gemma-4-12B-it-assistant-Q8_0.gguf
    465 MB
    xet
    Add files using upload-large-folder tool about 22 hours ago
  • upload_to_hf.py
    613 Bytes
    Add files using upload-large-folder tool about 22 hours ago