Views
No views yet
Cross-platform inference: Trained on macOS (Apple Silicon / Metal), but the GGUF runs on macOS, Linux, and Windows via Ollama or llama.cpp (CUDA, ROCm, Vulkan, or CPU).
| Property | Value |
|---|---|
| Base model | google/gemma-4-E2B-it |
| Fine-tuning method | LoRA (MLX, 16 layers) |
| Training iterations | 600 |
| Trainable parameters | 6.816M (0.147% of 4.63B) |
| Peak memory (training) | ~11.3 GB on M3 Pro 18 GB |
| Val loss (start → end) | 3.665 → 0.097 |
| Quantization | Q4_K_M (llama.cpp) |
| FP16 size | 9.3 GB |
| Q4_K_M size | 3.2 GB (5.88 BPW) |
| Hardware | Apple M3 Pro, 18 GB Unified Memory |
| Training time | ~5 minutes at ~2.4 it/sec |
1# Pull and run directly from this repo
2ollama run hf.co/htunn/gemma-4-e2b-aiops-gguf:Q4_K_M1# Modelfile
2FROM hf.co/htunn/gemma-4-e2b-aiops-gguf:Q4_K_M
3
4SYSTEM """You are an autonomous AIOps orchestrator agent. Evaluate
5telemetry across Kubernetes, Nutanix, VMware, Active Directory, ADFS, and PKI
6infrastructure. Output strict, execution-ready JSON commands."""
7
8PARAMETER temperature 0.3
9PARAMETER top_p 0.9
10PARAMETER top_k 40
11PARAMETER repeat_penalty 1.11ollama create aiops-orchestrator -f Modelfile
2ollama run aiops-orchestrator1llama-cli \
2 -m gemma4-e2b-aiops-Q4_K_M.gguf \
3 --temp 0.3 \
4 -p "[AIOps-Agent] Node k8s-worker-03 status is NotReady. AD service account 'svc_k8s_cluster' authentication failed on ADFS."vllm serve htunn/gemma-4-e2b-aiops-hf --dtype bfloat161from transformers import AutoTokenizer, AutoModelForCausalLM
2model = AutoModelForCausalLM.from_pretrained("htunn/gemma-4-e2b-aiops-hf")[AIOps-Agent] Node k8s-worker-03 status is NotReady.
Active Directory service account 'svc_k8s_cluster' authentication failed on ADFS.1{
2 "action": "remediate_auth",
3 "target_domain": "ADFS",
4 "service_account": "svc_k8s_cluster",
5 "steps": ["check_pki_cert_validity", "rotate_secret_k8s"],
6 "api_call": "POST /api/v1/auth/refresh"
7}[AIOps-Agent] PKI certificate for win-srv-2019-app01 expires in 48 hours.
Certificate Authority 'DC-CA-ROOT' is unreachable via LDAP.1{
2 "action": "renew_certificate",
3 "target_host": "win-srv-2019-app01",
4 "ca_authority": "DC-CA-ROOT",
5 "steps": ["verify_ca_health", "request_cert_renewal", "deploy_via_gpo"],
6 "priority": "high"
7}[AIOps-Agent] Nutanix VM 'win-dc-01' CPU usage exceeds 95%.
VMware host ESXi-02 reports datastore latency.1{
2 "action": "diagnose_hypervisor",
3 "target_vm": "win-dc-01",
4 "infrastructure": ["nutanix", "vmware"],
5 "recommendation": "Live-migrate VM via Prism API to secondary host ESXi-04."
6}1{
2 "text": "<bos><start_of_turn>user\n[AIOps-Agent] <telemetry_event><end_of_turn>\n<start_of_turn>model\n{\"action\": \"...\", \"steps\": [...]}<end_of_turn>"
3}1git clone https://github.com/Htunn/aiops-gemma4.git
2cd aiops-gemma4
3
4# Create Python 3.12 venv and install deps
5make setup
6
7# Fine-tune (requires HF access to google/gemma-4-E2B-it)
8make train
9
10# Fuse + convert to GGUF Q4_K_M
11make quantize
12
13# Upload GGUF to HF Hub (Ollama / llama.cpp)
14make upload
15
16# Upload safetensors to HF Hub (vLLM / Transformers)
17make upload-hf
18
19# Create Ollama model
20make ollama--num-layers (not --lora-layers, removed in mlx-lm ≥ 0.28)mlx_lm.fuse no longer needs --export-hf (HF format is now default)cmake -B build -DGGML_METAL=ON && cmake --build build --target llama-quantizenumpy>=2.0, scipy>=1.13, transformers>=5.0 after installing llama.cpp requirements| Task | Memory | Platform |
|---|---|---|
| Fine-tuning (MLX LoRA) | ~11 GB | macOS Apple Silicon |
| Inference Q4_K_M (Ollama / llama.cpp) | ~3.5 GB | macOS · Linux · Windows |
| Inference FP16 (vLLM / Transformers) | ~9.5 GB | Linux (CUDA recommended) |