Instructions to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuantFactory/Gemma-2-Ataraxy-9B-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/Gemma-2-Ataraxy-9B-GGUF", dtype="auto") - llama-cpp-python
How to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/Gemma-2-Ataraxy-9B-GGUF", filename="Gemma-2-Ataraxy-9B.Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Gemma-2-Ataraxy-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 QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Gemma-2-Ataraxy-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 QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantFactory/Gemma-2-Ataraxy-9B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantFactory/Gemma-2-Ataraxy-9B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M
- SGLang
How to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "QuantFactory/Gemma-2-Ataraxy-9B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantFactory/Gemma-2-Ataraxy-9B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "QuantFactory/Gemma-2-Ataraxy-9B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantFactory/Gemma-2-Ataraxy-9B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with Ollama:
ollama run hf.co/QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/Gemma-2-Ataraxy-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 QuantFactory/Gemma-2-Ataraxy-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 QuantFactory/Gemma-2-Ataraxy-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 QuantFactory/Gemma-2-Ataraxy-9B-GGUF to start chatting
- Docker Model Runner
How to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Gemma-2-Ataraxy-9B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Gemma-2-Ataraxy-9B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Gemma-2-Ataraxy-9B-GGUF-Q4_K_M
List all available models
lemonade list
QuantFactory/Gemma-2-Ataraxy-9B-GGUF
This is quantized version of lemon07r/Gemma-2-Ataraxy-9B created using llama.cpp
Original Model Card
base_model: - princeton-nlp/gemma-2-9b-it-SimPO - nbeerbower/gemma2-gutenberg-9B library_name: transformers tags: - mergekit - merge license: gemma
Gemma-2-Ataraxy-9B
GGUF / EXL2 Quants
Huge thanks to @mradermacher and @bartowski for making these GGUF quants available to us.
Bartowski quants (imatrix): bartowski/Gemma-2-Ataraxy-9B-GGUF
Mradermacher quants (static): mradermacher/Gemma-2-Ataraxy-9B-GGUF
Mradermacher quants (imatrix): mradermacher/Gemma-2-Ataraxy-9B-i1-GGUF
I think bartowski and mradermacher use different calibration data for imatrix quants, or maybe you prefer static quants. Pick your poison :).
EXL2 quants from CameronRedmore: CameronRedmore/Gemma-2-Ataraxy-9B-exl2
Format
Use Gemma 2 format.
Benchmarks and Leaderboard Rankings
OpenLLM: Pending in Queue
Creative Writing V2 - Score: 82.64 (Rank 1)
https://eqbench.com/creative_writing.html
That's right, much to everyone's surprise (mine included) this model has topped eqbench.com's creative writing benchmark. Big thanks to _sqrkl for taking the time to bother benchmarking this model and adding it ot his leaderboard, and @nbeerbower for entertaining my suggestions for his amazing gutenberg tunes.
Try it out
I will be hosting this model in Q8_0 quant, with 4k context using koboldcpp, for free unlimited use until around the 26th or 27th. This should have up to 32t/s.
Preface and Rambling
My favorite Gemma 2 9B models are the SPPO iter3 and SimPO finetunes, but I felt the slerp merge between the two (nephilim v3) wasn't as good for some reason. The Gutenberg Gemma 2 finetune by nbeerbower is another my favorites. It's trained on one of my favorite datasets, and actually improves the SPPO model's average openllm leaderboard 2 average score by a bit, on top of improving it's writing capabilities and making the LLM sound less AI-like. However I still liked the original SPPO finetune just a bit more.
Someone suggested that merging the base model on top of the gutenberg may help with tame it back down, which gave me a (possibly) better idea; slerp merging the SimPO finetune on top of the Gutenberg finetune, which is similar to the pretty popular Nephilim v3 recipe, using the Gutenberg finetune in place of the SPPO model, which I thought may give us better results since Gutenberg was trained on top of SPPO.
I wasn't entirely too sure, since if nephilim v3 is anything to go by, it was probably going to also end up worse than the parent models. Normally when I try merges like these, they dont go anywhere. I'm pretty picky, and very skeptical usually, so most times I find that the merge is usually just not better than the original models or only marginally better. Tried this merge anyways to see how it goes, and much to my surprise, this time, I feel like I got very good results. Figured I'd share, and hopefully this wont be just me introducing more useless slop into a world that already has way too many unnecessary merges.
If you're looking for a mistral nemo 12B model instead, I HIGHLY recommend Mistral Nemo Gutenberg v2 by nbeerbower. It's head and shoulders above the many other mistral nemo finetunes I've tried (the first version of mistral nemo gutenburg, romulus simpo, and magnum mini 1.1 being close second favorites).
Why Gutenberg?
We use gutenberg 9b, which is finetuned over SPPO cause of how good the gutenberg dpo dataset is. It's not a german dataset like it sounds, it's a dataset based off of project gutenberg, a public domain collection of popular classic fictions, like Moby Dick, for example. This data set also uses LLM generated responses as the negative prompt, to train models to not sounds so much like AI, or your typical LLMs, and more like actual humans (based on the creative works from project gutenberg). This is quality writing, hence quality data, not just random RP logs, or synthetic data. This dataset, when trained for 3 epochs has shown to increase llama 3 average scores on the old openllm leaderboard, from 72 to 73 (nobody really got higher than 73 before the board revamp), and has already again, proven to increase average openllm 2 leaderboard scores, increasing the average score from 21.47 to 22.61, improving on sppo. Thats a huge improvement. That said, I didnt like gutenberg 9b more than original sppo in real use, felt a tiny bit overfit, so we tried this merge. Did not expect much, because of neph v3 turning out worse than either of its parents, but this surprisingly came out great.
Why is it 10b??
See https://github.com/arcee-ai/mergekit/issues/390
Model is not actually 10b, mergekit is randomly adding lm_head for some reason when doing SLERP merge with Gemma 2 models. I believe Nephilim v3 had a similar issue before they used some sort of workaround that I'm not aware of. Doesn't seem like this affects the GGUF quants, as they're the correct size, so I will leave it as is until mergekit gets a commit that addresses this issue.
Merge Details
Merge Method
This model was merged using the SLERP merge method.
Models Merged
The following models were included in the merge:
Configuration
The following YAML configuration was used to produce this model:
base_model: nbeerbower/gemma2-gutenberg-9B
dtype: bfloat16
merge_method: slerp
parameters:
t:
- filter: self_attn
value: [0.0, 0.5, 0.3, 0.7, 1.0]
- filter: mlp
value: [1.0, 0.5, 0.7, 0.3, 0.0]
- value: 0.5
slices:
- sources:
- layer_range: [0, 42]
model: princeton-nlp/gemma-2-9b-it-SimPO
- layer_range: [0, 42]
model: nbeerbower/gemma2-gutenberg-9B
- Downloads last month
- 53
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit


