Instructions to use RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf", filename="Mahou-1.3-gemma2-9B.IQ3_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-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 RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-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 RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-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 RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-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 RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M
Use Docker
docker model run hf.co/RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf with Ollama:
ollama run hf.co/RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M
- Unsloth Studio
How to use RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-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 RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-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 RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf with Docker Model Runner:
docker model run hf.co/RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M
- Lemonade
How to use RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RichardErkhov/flammenai_-_Mahou-1.3-gemma2-9B-gguf:Q4_K_M
Run and chat with the model
lemonade run user.flammenai_-_Mahou-1.3-gemma2-9B-gguf-Q4_K_M
List all available models
lemonade list
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
Mahou-1.3-gemma2-9B - GGUF
- Model creator: https://huggingface.co/flammenai/
- Original model: https://huggingface.co/flammenai/Mahou-1.3-gemma2-9B/
| Name | Quant method | Size |
|---|---|---|
| Mahou-1.3-gemma2-9B.Q2_K.gguf | Q2_K | 3.54GB |
| Mahou-1.3-gemma2-9B.IQ3_XS.gguf | IQ3_XS | 3.86GB |
| Mahou-1.3-gemma2-9B.IQ3_S.gguf | IQ3_S | 4.04GB |
| Mahou-1.3-gemma2-9B.Q3_K_S.gguf | Q3_K_S | 4.04GB |
| Mahou-1.3-gemma2-9B.IQ3_M.gguf | IQ3_M | 4.19GB |
| Mahou-1.3-gemma2-9B.Q3_K.gguf | Q3_K | 4.43GB |
| Mahou-1.3-gemma2-9B.Q3_K_M.gguf | Q3_K_M | 4.43GB |
| Mahou-1.3-gemma2-9B.Q3_K_L.gguf | Q3_K_L | 4.78GB |
| Mahou-1.3-gemma2-9B.IQ4_XS.gguf | IQ4_XS | 4.86GB |
| Mahou-1.3-gemma2-9B.Q4_0.gguf | Q4_0 | 5.07GB |
| Mahou-1.3-gemma2-9B.IQ4_NL.gguf | IQ4_NL | 5.1GB |
| Mahou-1.3-gemma2-9B.Q4_K_S.gguf | Q4_K_S | 5.1GB |
| Mahou-1.3-gemma2-9B.Q4_K.gguf | Q4_K | 5.37GB |
| Mahou-1.3-gemma2-9B.Q4_K_M.gguf | Q4_K_M | 5.37GB |
| Mahou-1.3-gemma2-9B.Q4_1.gguf | Q4_1 | 5.55GB |
| Mahou-1.3-gemma2-9B.Q5_0.gguf | Q5_0 | 6.04GB |
| Mahou-1.3-gemma2-9B.Q5_K_S.gguf | Q5_K_S | 6.04GB |
| Mahou-1.3-gemma2-9B.Q5_K.gguf | Q5_K | 6.19GB |
| Mahou-1.3-gemma2-9B.Q5_K_M.gguf | Q5_K_M | 6.19GB |
| Mahou-1.3-gemma2-9B.Q5_1.gguf | Q5_1 | 6.52GB |
| Mahou-1.3-gemma2-9B.Q6_K.gguf | Q6_K | 7.07GB |
| Mahou-1.3-gemma2-9B.Q8_0.gguf | Q8_0 | 9.15GB |
Original model description:
library_name: transformers license: gemma base_model: - google/gemma-2-9b datasets: - flammenai/FlameMix-DPO-v1 - flammenai/MahouMix-v1 - flammenai/Grill-Flammen-v1_chatML
Mahou-1.3-gemma2-9B
Mahou is designed to provide short messages in a conversational context. It is capable of casual conversation and character roleplay.
Chat Format
This model has been trained to use ChatML format. Note the additional tokens in tokenizer_config.json.
<|im_start|>system
{{system}}<|im_end|>
<|im_start|>{{char}}
{{message}}<|im_end|>
<|im_start|>{{user}}
{{message}}<|im_end|>
Roleplay Format
- Speech without quotes.
- Actions in
*asterisks*
*leans against wall cooly* so like, i just casted a super strong spell at magician academy today, not gonna lie, felt badass.
SillyTavern Settings
- Use ChatML for the Context Template.
- Enable Instruct Mode.
- Use the Mahou preset.
- Recommended Additonal stopping strings:
["\n", "<|", "</"]
Method
Finetuned for 3 epochs using an A100 on Google Colab.
- Downloads last month
- 824
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
