Instructions to use Jackrong/Gemopus-4-31B-it-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jackrong/Gemopus-4-31B-it-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Jackrong/Gemopus-4-31B-it-GGUF") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Jackrong/Gemopus-4-31B-it-GGUF", device_map="auto") - llama-cpp-python
How to use Jackrong/Gemopus-4-31B-it-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Jackrong/Gemopus-4-31B-it-GGUF", filename="Gemopus-4-31B-it-Q3_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Jackrong/Gemopus-4-31B-it-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 Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jackrong/Gemopus-4-31B-it-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 Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jackrong/Gemopus-4-31B-it-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 Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Jackrong/Gemopus-4-31B-it-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 Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Jackrong/Gemopus-4-31B-it-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jackrong/Gemopus-4-31B-it-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": "Jackrong/Gemopus-4-31B-it-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
- SGLang
How to use Jackrong/Gemopus-4-31B-it-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 "Jackrong/Gemopus-4-31B-it-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": "Jackrong/Gemopus-4-31B-it-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Jackrong/Gemopus-4-31B-it-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": "Jackrong/Gemopus-4-31B-it-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use Jackrong/Gemopus-4-31B-it-GGUF with Ollama:
ollama run hf.co/Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
- Unsloth Studio
How to use Jackrong/Gemopus-4-31B-it-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 Jackrong/Gemopus-4-31B-it-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 Jackrong/Gemopus-4-31B-it-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Jackrong/Gemopus-4-31B-it-GGUF to start chatting
- Pi
How to use Jackrong/Gemopus-4-31B-it-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Jackrong/Gemopus-4-31B-it-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Jackrong/Gemopus-4-31B-it-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use Jackrong/Gemopus-4-31B-it-GGUF with Docker Model Runner:
docker model run hf.co/Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
- Lemonade
How to use Jackrong/Gemopus-4-31B-it-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Jackrong/Gemopus-4-31B-it-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Gemopus-4-31B-it-GGUF-Q4_K_M
List all available models
lemonade list
- 🌟 Gemopus-4-31B-it
- 🎯 Development Motivation & Industry Insights
- 🔬 Supporting Evidence
- 💡 Model Features & Alignment Optimization
- 📊 Evaluation Benchmarks (TBD)
- 🛠️ Best Practices
- 📚 Resources & Guides
- 🗺️ Training Pipeline
- ⚠️ Known Issues & Ecosystem Compatibility Statement
- 🍎 Limitations & Usage Recommendations
- 🙏 Acknowledgements
- 🎯 Development Motivation & Industry Insights
🌟 Gemopus-4-31B-it
Gemopus is an attempt at fine-tuning Gemma 4 with a core philosophy of "stability first".
While preserving the original reasoning order of Gemma 4 as much as possible, we conducted targeted refinements for answer quality, structure, clarity, and consistency.
This model was trained in a post-fix Unsloth environment, after Unsloth's official gradient-accumulation and loss-accounting fixes for Gemma-family training. In practice, I used a bug-fixed stack aligned with
unsloth_zoo>=2026.4.6andtransformers==5.5.0, in order to avoid misleading loss inflation under gradient accumulation and to obtain more reliable optimization behavior for Gemma 4 31B fine-tuning.🍎 Therefore, My fine-tuning strategy chose not to follow other teams in aggressive direct distillation from Claude. Instead, we opted for a more conservative and controllable path.
🎯 Development Motivation & Industry Insights
Gemopus-4-31B-it is a supervised fine-tune version based on the Gemma 4 31B Instruction model.
- Although this model has "Opus" in its name, it is more of a continuation of the naming convention.
- The goal here is not to deny that reasoning SFT can generalize under the right conditions, but to avoid naive or superstitious replication of "Claude-style chain of thought (CoT)" from public distillation corpora. Recent evidence suggests that whether reasoning supervision transfers depends on optimization, data quality, and model capability. In practice, many publicly available reasoning traces still do not necessarily reflect the teacher model's true, faithful, and transferable internal process; they are often closer to polished summaries than genuinely connected reasoning. A series of recent studies have also shown that models can exhibit post-hoc rationalization in natural settings, and that CoT faithfulness varies substantially across model families and training regimes. In other words, text that merely looks like reasoning is not automatically a high-quality, transferable supervision signal for reasoning.
🔬 Supporting Evidence
Recent work:
Ren et al., 2026 — Rethinking Generalization in Reasoning SFT: A Conditional Analysis on Optimization, Data, and Model Capability (arXiv:2604.06628)
Short-epoch reasoning SFT can underestimate generalization — in-domain gains may appear early, while out-of-domain improvements often require sufficient optimization.
This paper suggests that generalization in reasoning SFT is not fixed, but conditional — shaped jointly by optimization dynamics, training data quality, and base-model capability.
Key takeaways:
- Reasoning SFT can generalize when sufficiently optimized, often showing a dip → recovery pattern rather than a monotonic curve.
- High-quality long-CoT data can support cross-domain transfer, whereas weak or noisy reasoning traces may not.
- Stronger models are more likely to internalize transferable reasoning structure instead of merely imitating longer outputs.
- The gains are asymmetric: reasoning ability may improve while safety behavior can degrade.
For Gemopus-4-31B-it, this evidence supports a more conditional interpretation of reasoning supervision. My strategy is therefore not based on the simplistic claim that reasoning SFT never generalizes, but on a practical judgment about which kind of reasoning supervision is worth applying to Gemma 4. Since Gemma 4 31B already has a relatively orderly and restrained reasoning-chat prior, I chose not to aggressively overwrite it with public "Claude-style" traces of uneven quality. Instead, the SFT objective focuses on preserving Gemma 4's native reasoning order while improving answer quality, structure, clarity, and interaction consistency.
This also suggests that reasoning SFT should be viewed as a dynamic optimization process, rather than a static training outcome. For this project, that means prioritizing data quality, optimization discipline, and compatibility with the base model's native strengths, rather than assuming that longer visible reasoning alone will automatically produce a better student.
💡 Model Features & Alignment Optimization
Based on the methodological deduction above, I chose to focus my optimization efforts on the lower-risk, more consistently rewarding levels of final answer quality and interactive experience:
- ⚖️ Overall Style Consistency: Eliminated the stiff "machine translation tone" and redundant preaching feel inherent in the base model, making conversations more natural, clear, and organized.
- 📐 Structural & Completeness Enhancements: Significantly optimized the organizational structure of long responses. The model can more proficiently use Markdown syntax (e.g., lists, bolding) for hierarchical structuring and noise reduction, ensuring key points stand out visually and improving the reading experience.
- 🎓 Expressive Rigor & Depth of Explanation: In technical and popular science responses, enhanced the rigor of professional terminology and the ability to explain complex concepts simply, while avoiding mechanical, encyclopedia-like recitation.
📊 Evaluation Benchmarks (TBD)
🛠️ Best Practices
For the best performance, use these configurations and best practices:
1. Sampling Parameters
Use the following standardized sampling configuration across all use cases:
temperature=1.0top_p=0.95top_k=64
2. Thinking Mode Configuration
Compared to Gemma 3, the models use standard system, assistant, and user roles. To properly manage the thinking process, use the following control tokens:
- Trigger Thinking: Thinking is enabled by including the
<|think|>token at the start of the system prompt. To disable thinking, remove the token. - Standard Generation: When thinking is enabled, the model will output its internal reasoning followed by the final answer using this structure:
<|channel>thought\n[Internal reasoning]<channel|> - Disabled Thinking Behavior: For all models except for the E2B and E4B variants, if thinking is disabled, the model will still generate the tags but with an empty thought block:
<|channel>thought\n<channel|>[Final answer]
Note that many libraries like Transformers and llama.cpp handle the complexities of the chat template for you.
📚 Resources & Guides
🚧 The complete fine-tuning code and related notebooks for this model will be updated soon, please stay tuned!
👉 GitHub Repository: Jackrong-llm-finetuning-guide
Welcome to visit this repository to gain a deeper understanding of the codebase and reproduce the training results locally or on Colab.
📥 Core Technical Documentation
🔗 Qwopus3.5-27b Complete Fine-Tuning Guide (PDF)
- Complete Pipeline: Step-by-step operational guide—covering the entire process from downloading the base model, heterogeneous data fusion, to configuring training hyperparameters and finally releasing it to Hugging Face.
- Beginner Friendly: Includes basic starter tutorials for Google Colab and Unsloth.
No one starts out as an expert, but all experts bravely took the first step.
All training and testing for this project are self-funded. If you find this model or guide helpful, giving a Star ⭐️ on GitHub is the greatest encouragement to me. 🙏
🗺️ Training Pipeline
Base Model (google/gemma-4-31B-it)
│
▼
Targeted Supervised Fine-Tuning (SFT)
(Focus on Answer Quality & Structural Alignment, Retaining Restrained CoT)
│
▼
Gemopus-4-31B-it
📚 Dataset Construction & Philosophy
The training data specifically curates highly coherent instruction pairs with optimal structures from the open-source community, alongside natural multi-turn conversations. The goal is to guide the model to learn more mature ways of organizing and presenting conclusions, rather than mechanically imitating "fake chain of thought" without internalized logic.
⚠️ Known Issues & Ecosystem Compatibility Statement
Tool Calling Compatibility: The Gemma 4 series models still have known compatibility issues with tool calling functionality in local inference ecosystems like llama.cpp / LM Studio (including call failures, format mismatches, continuous loops, etc.). This has been widely reported in the community and is not unique to this model. If your workflow heavily relies on tool calling, it is recommended to thoroughly test it before official use, or temporarily consider solutions with more mature ecosystem support.
Regarding Fine-Tuning Characteristics of the Gemma Architecture: From an engineering practice perspective, the Gemma series does exhibit different training dynamics compared to the Qwen series during fine-tuning—including wider loss curve fluctuations and greater sensitivity of gradient stability to hyperparameters. This may be related to Google's model architecture design. Furthermore, the base Gemma 4 model objectively still has a gap compared to the Qwen 3.5 series in certain dimensions of its raw capabilities. We believe that truthfully stating these observations is more beneficial to the technical judgment of the community than selectively avoiding them.
Project Positioning: The core value of Gemopus-4-31B-it lies in providing an engineering exploration reference supported by methodology for SFT fine-tuning under the Gemma 4 architecture, rather than a fully production-ready solution. If you are looking for a productivity model that has undergone more iterative validation and offers more stable ecosystem compatibility, I recommend looking at the Qwopus-3.5-v3 series—its performance after fine-tuning is much more robust.
🍎 Limitations & Usage Recommendations
- Boundaries of Computation & Knowledge: Constrained by parameter size, the breadth of its world knowledge and depth of its mathematical and logical reasoning capabilities are still not entirely equivalent to those of frontier models with hundreds of billions of parameters in the cloud (such as GPT-4 or Claude 3.5 Sonnet).
- Potential Hallucinations: When dealing with extremely highly-specialized domains, obscure knowledge points, or complex high-level math problems requiring multi-step, long-chain calculations, there is still a possibility of logic drifting or hallucinations.
- Best Practices: It is strongly recommended to use it as a local high-quality text processing and daily logic companion assistant, particularly suitable for scenarios demanding high response quality and tight structural organization, such as structural summarization, routine copy arrangement, and interactive coding.
- Disclaimer: This is an experimental weight optimized independently, emphasizing "stability and methodology" in local interactions. Welcome to freely conduct local deployment tests and share academic discussions.
🙏 Acknowledgements
Special thanks to the developers in the open-source community for building such a thriving ecosystem. Thank you to the Unsloth team for providing excellent and highly efficient LLM fine-tuning support, and sincere respect to the Google team for open-sourcing the outstanding Gemma 4 base model. Finally, thanks to all the researchers who have contributed profound insights into CoT Faithfulness and the interpretability of LLM reasoning. It is exactly these rigorous frontier academic discussions that deeply inspired the core fine-tuning methodology of this project.
- Downloads last month
- 1,664
3-bit
4-bit
5-bit
6-bit
8-bit
