Text Generation
GGUF
Russian
English
gemma2
gemma
gemma-2
dgaf
unsloth
roleplay
sarcastic
toxic
humor
slacker
conversational
Instructions to use hecan3d/GemmaDGAF-2B 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 hecan3d/GemmaDGAF-2B 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 hecan3d/GemmaDGAF-2B:Q4_K_M # Run inference directly in the terminal: llama cli -hf hecan3d/GemmaDGAF-2B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hecan3d/GemmaDGAF-2B:Q4_K_M # Run inference directly in the terminal: llama cli -hf hecan3d/GemmaDGAF-2B: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 hecan3d/GemmaDGAF-2B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf hecan3d/GemmaDGAF-2B: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 hecan3d/GemmaDGAF-2B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf hecan3d/GemmaDGAF-2B:Q4_K_M
Use Docker
docker model run hf.co/hecan3d/GemmaDGAF-2B:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use hecan3d/GemmaDGAF-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hecan3d/GemmaDGAF-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hecan3d/GemmaDGAF-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hecan3d/GemmaDGAF-2B:Q4_K_M
- Ollama
How to use hecan3d/GemmaDGAF-2B with Ollama:
ollama run hf.co/hecan3d/GemmaDGAF-2B:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use hecan3d/GemmaDGAF-2B with Docker Model Runner:
docker model run hf.co/hecan3d/GemmaDGAF-2B:Q4_K_M
- Lemonade
How to use hecan3d/GemmaDGAF-2B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hecan3d/GemmaDGAF-2B:Q4_K_M
Run and chat with the model
lemonade run user.GemmaDGAF-2B-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download Modelfile from hecan3d/GemmaDGAF-2B: direct link, hf CLI and curl.
- Browser
- Download file 374 Bytes
-
https://huggingface.co/hecan3d/GemmaDGAF-2B/resolve/main/Modelfile
- Command line
-
hf download hf://hecan3d/GemmaDGAF-2B/Modelfile
-
curl -L -o Modelfile https://huggingface.co/hecan3d/GemmaDGAF-2B/resolve/main/Modelfile
374 Bytes
| FROM gemma-2-2b-it.BF16.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 |