Instructions to use himalaya-ai/himalaya-gemma-4-e2b-it-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 himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M
Use Docker
docker model run hf.co/himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use himalaya-ai/himalaya-gemma-4-e2b-it-gguf with Ollama:
ollama run hf.co/himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M
- Unsloth Studio
How to use himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-it-gguf to start chatting
- Pi
How to use himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-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": "himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-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 "himalaya-ai/himalaya-gemma-4-e2b-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 himalaya-ai/himalaya-gemma-4-e2b-it-gguf with Docker Model Runner:
docker model run hf.co/himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M
- Lemonade
How to use himalaya-ai/himalaya-gemma-4-e2b-it-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull himalaya-ai/himalaya-gemma-4-e2b-it-gguf:Q4_K_M
Run and chat with the model
lemonade run user.himalaya-gemma-4-e2b-it-gguf-Q4_K_M
List all available models
lemonade list
Gemma 4 E2B-it Full SFT (Nepali & English)
This repository contains optimized GGUF quantized weights for himalaya-gemma-4-e2b-it. The base model was trained using Full-Parameter SFT over approximately 125,000 steps to achieve deep bilingual proficiency in both English and Nepali.
These GGUF builds are explicitly configured for high-performance local inference using [llama.cpp] and compatible frontends like LM Studio or Ollama.
💾 Provided Quantization Formats File Name Precision File Size Description himalaya_gemma_4_bf16.gguf BF16 ~9.31 GB Native Precision. himalaya_gemma_4_q8.gguf Q8_0 ~4.95 GB Near-Lossless. Standard 8-bit static quantization. himalaya_gemma_4_q4_k_m.gguf Q4_K_M ~3.43 GB Optimal Squeeze (Recommended). Mixed-precision 4-bit K-Quant. himalaya_gemma_4_q4_0.gguf Q4_0 ~3.36 GB
⚙️ Training Details
Unlike standard QLoRA fine-tuning, this model uses Full-Parameter SFT. This means every parameter in the model is trainable.
The training run stabilized beautifully over approximately 125,000 steps. To fit this comprehensive training on a single 1x A100 GPU with a tight memory budget, we utilized:
- 8-bit AdamW optimizer
- Gradient Checkpointing
📚 Datasets
The training data is a 50/50 mix of two high-quality datasets:
- Nepali:
himalaya-ai/nepali-sft-dataset - English:
teknium/OpenHermes-2.5
🚀 How to Use for Benchmarking
You can load and test this model using the Hugging Face transformers library.
1. Install dependencies
First, make sure you have the required libraries installed:
pip install transformers accelerate torch
from transformers import AutoTokenizer, AutoModelForCausalLM import torch
Put the exact Hugging Face repository name here
model_id = "himalaya-ai/himalaya-gemma-4-e2b-it"
1. Load the tokenizer and model
print("Loading model for benchmarking...")
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype=torch.float16
)
2. Set up your prompt
user_prompt = "Write a short poem about the mountains in Nepal."
Apply the chat template
3. Generate the response
print("Generating response...")
outputs = model.generate(
**inputs,
max_new_tokens=256,
do_sample=True,
temperature=0.7
)
4. Print the result
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print("\n--- Output ---\n")
print(response)
- Downloads last month
- 294
