Instructions to use MatclassAI/Matclass-Gemma-2b-v1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MatclassAI/Matclass-Gemma-2b-v1-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_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 MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_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 MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use MatclassAI/Matclass-Gemma-2b-v1-GGUF with Ollama:
ollama run hf.co/MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use MatclassAI/Matclass-Gemma-2b-v1-GGUF with Docker Model Runner:
docker model run hf.co/MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M
- Lemonade
How to use MatclassAI/Matclass-Gemma-2b-v1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MatclassAI/Matclass-Gemma-2b-v1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Matclass-Gemma-2b-v1-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download Modelfile from MatclassAI/Matclass-Gemma-2b-v1-GGUF: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/MatclassAI/Matclass-Gemma-2b-v1-GGUF/resolve/main/Modelfile
- Command line
-
hf download hf://MatclassAI/Matclass-Gemma-2b-v1-GGUF/Modelfile
-
curl -L -o Modelfile https://huggingface.co/MatclassAI/Matclass-Gemma-2b-v1-GGUF/resolve/main/Modelfile
376 Bytes
| FROM gemma-2-2b-it.Q4_K_M.gguf | |
| TEMPLATE """<start_of_turn>user | |
| {{ if .System }}{{ .System }} {{ end }}{{ .Prompt }}<end_of_turn> | |
| <start_of_turn>model | |
| {{ .Response }}<end_of_turn> | |
| """ | |
| PARAMETER repeat_penalty 1 | |
| PARAMETER stop "<start_of_turn>" | |
| PARAMETER stop "<end_of_turn>" | |
| PARAMETER penalize_newline false | |
| PARAMETER temperature 1.5 | |
| PARAMETER min_p 0.1 | |
| PARAMETER num_ctx 4096 |